Question
Error message while opening the docx document converted from PDF
After converting the PDF to docx word using adobe PDF service API. On opening the word document, it is giving me below popup. How to get rid of this pop up?
POP UP Message
Word found unreadable content in test.docx. Do you want to recover the contents of this document? If you trust the source of this document, click Yes.
Python Code
import requests
url = "https://cpf-ue1.adobe.io/ops/id/pT3OLAc5dCEFZesBkzpIxl6CcZNOh8ca"
payload={}
headers = {
'Authorization': 'Bearer eyJhbGciOiJSUzI1NiIsIng1dSI6Imltc19uYTEta2V5LTEuY2VyIn0.eyJpZCI6IjE2NDA1ODA4NDkxNDNfNTdjZjBjYzEtNzU0NS00MDEyLTg4NTUtYzdhMjMyNTMwMDBjX3VlMSIsInR5cGUiOiJhY2Nlc3NfdG9rZW4iLCJjbGllbnRfaWQiOiJhNWFhMjY0Y2JlMGM0OTE3ODI2MmZhZmQ5YjgxMTU2NyIsInVzZXJfaWQiOiIxRjYzN0REMTYxQzQ0MEVBMEE0OTVDRkJAdGVjaGFjY3QuYWRvYmUuY29tIiwiYXMiOiJpbXMtbmExIiwiYWFfaWQiOiIxRjYzN0REMTYxQzQ0MEVBMEE0OTVDRkJAdGVjaGFjY3QuYWRvYmUuY29tIiwiZmciOiJXQjNZTkRUV0hMRTdJN1dDRk9SRlJIUUFMTT09PT09PSIsIm1vaSI6ImE5OTQzNDc2IiwiZXhwaXJlc19pbiI6Ijg2NDAwMDAwIiwic2NvcGUiOiJvcGVuaWQsRENBUEksQWRvYmVJRCxhZGRpdGlvbmFsX2luZm8ub3B0aW9uYWxBZ3JlZW1lbnRzIiwiY3JlYXRlZF9hdCI6IjE2NDA1ODA4NDkxNDMifQ.fqMy_A-Vao4NRj5Exrw5NYhyDzxAOLY2cke1uo8OCGt-WZHeJJMxG4AcEqNFA2aPqFlrpYb0uyC50i5N3jOH91BQ1SQLhBBorzvFj5IaZm9lmvOfKlgUA0zkQCOT2PUsZnyROhgUE1H7-Gm1uIe91RpT-lupWHu1hKO0kDWg5k2FKkHNeY0QtPCaLzkJaUPRLVqoQnwhDtF1HfRmDsZEkOia5OT300FoLnMLFxo5ycwNQffIDKi2sU5ePJ7roqZQdevWmank03ulwf51PpAuYzlndCPPa6JvfI6bywv435pBJc-RUJ8T-dGSoHLajvLA9BnDDgQQ2LM9uNez3_AVqg',
'x-api-key': 'a5aa264cbe0c49178262fafd9b811567'
}
response = requests.request("GET", url, headers=headers, data=payload)
file = open("sample.docx", "wb")
file.write(response.content)
file.close()
