Skip to main content
Participating Frequently
May 24, 2024 3:16 PM UTC
Question

Status Code : 400 "code": "CORRUPT_DOCUMENT", "message": "The input file appears to be corrupted

Hello,

  I am trying to use Adobe API for PDF processing, but I receive an error: 


{
"error": {
"code": "CORRUPT_DOCUMENT",
"message": "The input file appears to be corrupted and cannot be processed.; requestId=09b7def5-1615-4584-9551-d925e7e12b42"
}
}


 My request body is:
  
{
"$content-type": "multipart/form-data",
"$multipart": [
{
"headers": {
"Content-Disposition": "form-data; name=\"inputFileName\""
},
"body": "OoPdfFormExample.pdf"
},
{
"headers": {
"Content-Disposition": "form-data; name=\"intent\""
},
"body": "PDF_TO_EXCEL"
},
{
"headers": {
"Content-Disposition": "form-data; name=\"targetFormat\""
},
"body": "XLSX"
},
{
"headers": {
"Content-Disposition": "form-data; name=\"InputFile0\""
},
"body": "base64Content"
}
]
}
  
  If I decode the base64Content, I can regenerate my PDF file back, so I don't think there is an issue on the file side.

  I also tried with other sample files, but everytime I have same error code in response.

 

Can I know the root cause of this issue ?

This topic is closed to new replies. Start a new post to keep the conversation going.

10 replies

Participating Frequently
May 27, 2024 3:24 PM UTC

Request and response files are attached

Translate
Raymond Camden
Community Manager
Community Manager
May 24, 2024 3:43 PM UTC

This is not at all how the REST API works. Did you use the docs here? https://developer.adobe.com/document-services/docs/apis/

Translate
Participating Frequently
May 25, 2024 8:17 AM UTC

Hello,

  No, I didn't use the docs you mentioned here, as I am acesssing from Azure Logic App through my clientID and token, to access path: /operation/v1/exportPDFToExcel.

  Do you also need the raw request (header & body) if the request ID isn't enough to diagnose the issue ?

  

  

Translate
Raymond Camden
Community Manager
Community Manager
May 28, 2024 1:02 PM UTC

We don't support that version of the API anymore - so you are going to need to switch to the one I linked to.

Translate