Export to DOCX leads to corrupted file
Copy link to clipboard
Copied
Hello,
I am not to using the Adobe PDF tools API.I am using the curl examples provided by the documentation. When using the API to export a very simple PDF file to DOCX, I get a corruption error when opening the DOCX file. After allowing Word to fix it, I do see the proper file.
What am I doing wrong?
I succesfully call the 'https://cpf-ue1.adobe.io/ops/:create' endpoint where I provide the PDF as input, and ask to export to DOCX.
When pulling the results and story the response body in a file via:
curl --location --request GET -s 'https://cpf-ue1.adobe.io/ops/id/xxx' \
--header 'Authorization: Bearer xxx' \
--header 'x-api-key: xxx' -o test.docx
I end up with a corrupted file.
I hope you can help!
Copy link to clipboard
Copied
Could you share the PDF and Word doc (before you fix it) with us?

