Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Export to DOCX leads to corrupted file

New Here ,
Jun 30, 2021 Jun 30, 2021

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!

272
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jul 02, 2021 Jul 02, 2021
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources