Skip to main content
Participant
Jan 18, 2024 7:49 AM UTC
Answered

PDF To Word

 

 

I want to convert PDF to word document in Swift ios. With the help of rest API.
I follow the steps

1. genrate token -> https://pdf-services.adobe.io/token

2. genrate upload uri -> https://pdf-services.adobe.io/assets

3. upload the pdf file at the given path

4. again export pdf in docx -> get response 201 https://pdf-services.adobe.io/operation/exportpdf
5. now I am unable to check the status https://pdf-services.adobe.io/operation/compresspdf/urn:aaid:AS:UE1:d88e30be-1f8e-4ac3-b9cb-436d70a32693/status
6. and i have also no idea about how i can download docx file

This topic is closed to new replies. Start a new post to keep the conversation going.
madalinad32529237Correct answer
Participant
Jan 18, 2024 8:28 AM UTC

You need to use 'x-request-id' from the Export PDF response in the last url. Not the Asset ID. 

You can get the full url from your previous response (step 4) -> 'location' header.

i.e.

https://pdf-services.adobe.io/operation/exportpdf/x-request-id/status

2 replies

Raymond Camden
Community Manager
Community Manager
Jan 18, 2024 2:03 PM UTC

Eh, I'm not sure about that answer. Technically, when you create the job, you should check the Location header in the response. That's a URL that can be used as is - ie just hit the URL (with a x-api-key containing your client id and authorization bearer token).

Translate
madalinad32529237Correct answer
Participant
Jan 18, 2024 8:28 AM UTC

You need to use 'x-request-id' from the Export PDF response in the last url. Not the Asset ID. 

You can get the full url from your previous response (step 4) -> 'location' header.

i.e.

https://pdf-services.adobe.io/operation/exportpdf/x-request-id/status

Translate