Skip to main content
Participant
August 30, 2022
Question

unable to convert doc to pdf using Adobe PDF Services API

  • August 30, 2022
  • 0 replies
  • 434 views

want to convert doc file to pdf file using Adobe pdf service api

In short it has two parts:
1. make a post request ( providing require parameters  ) and from header take x-request-id  
2. make a get request ( providing require parameters  ) and as responce you will get your pdf documet 

it is working fine for docx to pdf, but for doc to pdf it is showing this responce instead of pdf document

{
    "cpf:inputs": {
        "documentIn": {
            "cpf:location": "InputFile0",
            "dc:format": "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
        }
    },
    "cpf:engine": {
        "repo:assetId": "urn:aaid:cpf:Service-1538ece....caac2a07799503a430"
    },
    "cpf:status": {
        "completed": true,
        "type": "",
        "title": "For application/vnd.openxmlformats-officedocument.wordprocessingml.document mime-type The input file appears to be corrupted and cannot be processed.; transactionId=XcYuSVqy7s80GL897ZHhQGU5nEl0D5Xp",
        "status": 400,
        "report": "{\"error_code\":\"CORRUPT_DOCUMENT\"}"
    }
}

PS1 - i tryed d/f -2 doc files but not working for any of that 
PS2 - in document it is saying that this api can convert doc to pdf click me to see documentation 

This topic has been closed for replies.