这个主题几乎没有时间用于创建pdf。我的问题不同,因为我使用htmlconverter从html创建pdf。 所以我的html有很多大表,我希望在将表转发到下一页时复制表的标题。 用htmlconverter可以做到吗??? 提前致谢 kor6k
答案 0 :(得分:1)
如果标题位于def gauth(id_dipartimento):
d={}
json_url = os.environ['SERVICE-ACCOUNT.json']
scopes = ['https://www.googleapis.com/auth/drive.file']
credentials = erviceAccountCredentials.from_json_keyfile_name(json_url, scopes=scopes)
## The service account creates ua delegated object with current user credentals
delegated_credentials = credentials.create_delegated(<CURRENT_USER>)
http_auth = delegated_credentials.authorize(httplib2.Http())
return http_auth
def upload_file():
http_auth = gauth()
drive_service = discovery.build('drive', 'v3', http=http_auth)
folder_id = <folder_id_here>
body = {
'name': filename,
'mimeType': mime_type,
'useDomainAdminAccess':True,
'parents':folder_id
}
media = MediaFileUpload(filepath,
mimetype=mime_type,
resumable=True)
file = drive_service.files().create(body=body,
media_body=media,
fields='id,originalFilename').execute()
new_permission = {
'type': "anyone",
'role': "reader",
}
try:
drive_service.permissions().create(fileId=file["id"], body=new_permission).execute()
except errors.HttpError, error:
print 'An error occurred: %s' % error
的{{1}}内,则会自动重复标题。例如:
<thead>