Skip to main content
Participant
Jul 17, 2022 10:41 AM UTC
Question

EMBED PDF Rest API Issue

I am using following EMBDE PDF REST API GIVEN BY ADOBE

curl --location --request POST 'https://cpf-ue1.adobe.io/ops/:create?respondWith=%7B%22reltype%22%3A%20%22http%3A%2F%2Fns.adobe.com%2Frel%2Fprimary%22%7D' \
--header 'Authorization: Bearer ' \
--header 'Accept: application/json, text/plain, */*' \
--header 'x-api-key: ' \
--header 'Prefer: respond-async,wait=0' \
--form 'contentAnalyzerRequests="{
\"cpf:inputs\": {
\"documentsIn\": [{
\"pageRanges\": {
\"cpf:inline\": [{
\"start\": 1,
\"end\": 4
}]
},
\"documentIn\": {
\"cpf:location\": \"InputFile0\",
\"dc:format\": \"application/pdf\"
}
}, {
\"pageRanges\": {
\"cpf:inline\": [{
\"start\": 1,
\"end\": 25
}]
},
\"documentIn\": {
\"cpf:location\": \"InputFile1\",
\"dc:format\": \"application/pdf\"
}
}, {
\"pageRanges\": {
\"cpf:inline\": [{
\"start\": 1
}, {
\"end\": 25
}, {
\"start\": 1,
\"end\": 25
}]
},
\"documentIn\": {
\"cpf:location\": \"InputFile2\",
\"dc:format\": \"application/pdf\"
}
}]
},
\"cpf:engine\": {
\"repo:assetId\": \"urn:aaid:cpf:Service-916ee91c156b42349a7847a7d564fb13\"
},
\"cpf:outputs\": {
\"documentOut\": {
\"cpf:location\": \"OutputFile\",
\"dc:format\": \"application/pdf\"
}
}
}"' \
--form 'InputFile0=@""' \
--form 'InputFile1=@""' \
--form 'InputFile2=@""'

 

ISSUE:

WHEN I POSTING THROUGH THE POST MAN BY GIVING CORRECT TOKEN , API KEY & THE FILES PARAMETERS TO BE EMBEDDED, I AM GETTING MESSAGE "202-ACCEPTED" BUT THE PROCESS IS NOT COMPLETED. IT IS SAYING "The reqeust has been accepted for processing , but the processing has not been completed.The request might or might not be evnetually acted upon, as it might be disallowed when processing actually takes place".

 

Please kindly provide the solution.

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

3 replies

Bernd Alheit
Community Expert
Community Expert
Jul 18, 2022 3:20 PM UTC

Looks like that you are in a wrong forum.

Translate
Participant
Jul 19, 2022 9:33 AM UTC

Which Forum I need to post this question?

Translate
Bernd Alheit
Community Expert
Community Expert
Jul 19, 2022 10:23 AM UTC

In the forum for Document Services API.

Translate