Skip to main content
Participant
June 30, 2021
Question

Export to DOCX leads to corrupted file

  • June 30, 2021
  • 1 reply
  • 320 views

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!

    This topic has been closed for replies.

    1 reply

    Raymond Camden
    Community Manager
    Community Manager
    July 2, 2021

    Could you share the PDF and Word doc (before you fix it) with us?