I want to use Python 3 to convert XFA forms to AcroForms through this API. asposepdfcloud version I am using is 23.5.0. The source filr is 财务报表-广东地区.pdf (57.9 KB).The source code is
apiKey = "xxxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # sepcify App Key
appSid = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" # sepcify App SID
data_folder = pdf_dir
temp_folder = "TempPdfCloud"
pdf_api_client = asposepdfcloud.api_client.ApiClient(appSid, apiKey)
pdf_api = PdfApi(pdf_api_client)
pdf_api.upload_file(
temp_folder + '/' + sample_name + '.pdf',
str(data_folder.joinpath(f"{sample_name}.pdf")),
)
opts = {"folder": temp_folder}
response = pdf_api.get_xfa_pdf_in_storage_to_acro_form(sample_name + '.pdf', **opts)
The file has been uploaded successfully.But the error message that occurred at the last line of execution
host: https://api.aspose.cloud/v3.0
tokenUrl: https://api.aspose.cloud/connect/token
2023-06-26 14:14:10,064 WARNING Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='api.aspose.cloud', port=443): Read timed out. (read timeout=300)")': /v3.0/pdf/%E8%B4%A2%E5%8A%A1%E6%8A%A5%E8%A1%A8-%E5%B9%BF%E4%B8%9C%E5%9C%B0%E5%8C%BA.pdf/convert/xfatoacroform?folder=TempPdfCloud
2023-06-26 14:19:10,928 WARNING Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='api.aspose.cloud', port=443): Read timed out. (read timeout=300)")': /v3.0/pdf/%E8%B4%A2%E5%8A%A1%E6%8A%A5%E8%A1%A8-%E5%B9%BF%E4%B8%9C%E5%9C%B0%E5%8C%BA.pdf/convert/xfatoacroform?folder=TempPdfCloud