Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Getting error while using Extract PDF api

DeepikaWe2code
Level 1
Level 1

Hello,

I am trying to use Adobe api to extract data from the PDF,
I have created JWT and access token, and with this details if I call the extract service I got the errors,
https://documentcloud.adobe.com/document-services/index.html#post-extractPDF
this is the api doc which I am following,
I am using this post - 
URL - https://cpf-ue1.adobe.io/ops/:create

--------------------------------------------------------------------------
here is the postman json - 

{
"id": "e84d2f82-5285-32e0-6680-533a9c2a4aab",
"name": "extract-pdf",
"description": "",
"order": [
"f3e21f91-cc26-27d0-90fb-3532cdc13ba0"
],
"folders": [],
"folders_order": [],
"timestamp": 1636541801954,
"owner": 0,
"public": false,
"requests": [
{
"id": "f3e21f91-cc26-27d0-90fb-3532cdc13ba0",
"headers": "Authorization: Bearer eyJhbGciOiJSUzI1NiIsIng1dSI6Imltc19uYTEta2V5LTEuY2VyIn0.eyJpZCI6IjE2MzY1NDE5NjEyMDhfZjhmNDdkMWMtMmU2NC00ODA1LWJmMzEtN2I3MWJkMDA4MjUxX3VlMSIsInR5cGUiOiJhY2Nlc3NfdG9rZW4iLCJjbGllbnRfaWQiOiIwYTYyYzE3ZWY5NTk0MjQzYWY3ZmI0M2JjMzFjZWYyOSIsInVzZXJfaWQiOiI2MTcwMzY0RTYxODhFMzA1MEE0OTVGODRAdGVjaGFjY3QuYWRvYmUuY29tIiwiYXMiOiJpbXMtbmExIiwiYWFfaWQiOiI2MTcwMzY0RTYxODhFMzA1MEE0OTVGODRAdGVjaGFjY3QuYWRvYmUuY29tIiwiZmciOiJWNVlKR0U3R0hMRTdMWFdHSDZRUlJIUUFZWT09PT09PSIsIm1vaSI6IjdmYzQ0ODBhIiwiZXhwaXJlc19pbiI6Ijg2NDAwMDAwIiwiY3JlYXRlZF9hdCI6IjE2MzY1NDE5NjEyMDgiLCJzY29wZSI6Im9wZW5pZCxEQ0FQSSxBZG9iZUlELHJlYWRfb3JnYW5pemF0aW9ucyxhZGRpdGlvbmFsX2luZm8ub3B0aW9uYWxBZ3JlZW1lbnRzIn0.Je9QeqErIwIetlD7PbEUTUdC-BQCvDISB4wc3-Ejv3abTHfwT7N3sGsrbDzj7OVSGAC7oOXXKxCEWTSvfYeiDqzV091hnDkS--4QRZq7mlovtSRfkiOO1EbNgpP5vT8GZXIsg4UQZnkVoqHgKGdXNT6BnErjOIjMvSZ9fxiJQy4KcrIv-kNHmIVM3g1CwSdaO3cRn4EuuZMg5jSp5gmKXLvh6qbS-SfwY_zu62WO6oP_62gumNfE2tFrMAMJuKHSCWv8c4s2cyq-KaYlwi5cmHxHVfbKkS-fyjsd9nPTFyS1LJORZHD4PeR3WnjoddfL0uMlQ35fNl8CqR3aFxBdlw\nAccept: application/json, text/plain, */*\nx-api-key: 0a62c17ef9594243af7fb43bc31cef29\nPrefer: respond-async,wait=0\n",
"headerData": [
{
"key": "Authorization",
"value": "Bearer eyJhbGciOiJSUzI1NiIsIng1dSI6Imltc19uYTEta2V5LTEuY2VyIn0.eyJpZCI6IjE2MzY1NDE5NjEyMDhfZjhmNDdkMWMtMmU2NC00ODA1LWJmMzEtN2I3MWJkMDA4MjUxX3VlMSIsInR5cGUiOiJhY2Nlc3NfdG9rZW4iLCJjbGllbnRfaWQiOiIwYTYyYzE3ZWY5NTk0MjQzYWY3ZmI0M2JjMzFjZWYyOSIsInVzZXJfaWQiOiI2MTcwMzY0RTYxODhFMzA1MEE0OTVGODRAdGVjaGFjY3QuYWRvYmUuY29tIiwiYXMiOiJpbXMtbmExIiwiYWFfaWQiOiI2MTcwMzY0RTYxODhFMzA1MEE0OTVGODRAdGVjaGFjY3QuYWRvYmUuY29tIiwiZmciOiJWNVlKR0U3R0hMRTdMWFdHSDZRUlJIUUFZWT09PT09PSIsIm1vaSI6IjdmYzQ0ODBhIiwiZXhwaXJlc19pbiI6Ijg2NDAwMDAwIiwiY3JlYXRlZF9hdCI6IjE2MzY1NDE5NjEyMDgiLCJzY29wZSI6Im9wZW5pZCxEQ0FQSSxBZG9iZUlELHJlYWRfb3JnYW5pemF0aW9ucyxhZGRpdGlvbmFsX2luZm8ub3B0aW9uYWxBZ3JlZW1lbnRzIn0.Je9QeqErIwIetlD7PbEUTUdC-BQCvDISB4wc3-Ejv3abTHfwT7N3sGsrbDzj7OVSGAC7oOXXKxCEWTSvfYeiDqzV091hnDkS--4QRZq7mlovtSRfkiOO1EbNgpP5vT8GZXIsg4UQZnkVoqHgKGdXNT6BnErjOIjMvSZ9fxiJQy4KcrIv-kNHmIVM3g1CwSdaO3cRn4EuuZMg5jSp5gmKXLvh6qbS-SfwY_zu62WO6oP_62gumNfE2tFrMAMJuKHSCWv8c4s2cyq-KaYlwi5cmHxHVfbKkS-fyjsd9nPTFyS1LJORZHD4PeR3WnjoddfL0uMlQ35fNl8CqR3aFxBdlw",
"description": "",
"enabled": true
},
{
"key": "Accept",
"value": "application/json, text/plain, */*",
"description": "",
"enabled": true
},
{
"key": "x-api-key",
"value": "0a62c17ef9594243af7fb43bc31cef29",
"description": "",
"enabled": true
},
{
"key": "Prefer",
"value": "respond-async,wait=0",
"description": "",
"enabled": true
}
],
"url": "https://cpf-ue1.adobe.io/ops/:create",
"queryParams": [],
"preRequestScript": null,
"pathVariables": {
"create": ""
},
"pathVariableData": [
{
"key": "create",
"value": ""
}
],
"method": "POST",
"data": [
{
"key": "contentAnalyzerRequests",
"value": "{\n \"cpf:engine\": {\n \"repo:assetId\": \"urn:aaid:cpf:58af6e2c-1f0c-400d-9188-078000185695\"\n },\n \"cpf:inputs\": {\n \"documentIn\": {\n \"cpf:location\": \"InputFile0\",\n \"dc:format\": \"application/pdf\"\n },\n \"params\": {\n \"cpf:inline\": {\n \"elementsToExtract\": [\n \"text\", \"tables\"\n ],\n \"renditionsToExtract\": [ \"tables\", \"figures\"]\n }\n }\n },\n \"cpf:outputs\": {\n \"elementsInfo\": {\n \"cpf:location\": \"jsonoutput\",\n \"dc:format\": \"application/json\"\n },\n \"elementsRenditions\": {\n \"cpf:location\": \"fileoutpart\",\n \"dc:format\": \"text/directory\"\n }\n }\n} ",
"type": "text"
},
{
"key": "InputFile0",
"type": "file",
"src": "{{Placeholder for input file (absolute path)}}",
"value": "0839CS15MT12 SUMESH GAUD.pdf"
}
],
"dataMode": "params",
"version": 2,
"tests": null,
"currentHelper": "normal",
"helperAttributes": {},
"time": 1636542146521,
"name": "https://cpf-ue1.adobe.io/ops/:create",
"description": "",
"collectionId": "e84d2f82-5285-32e0-6680-533a9c2a4aab",
"responses": []
}
]
}

-------------------------------
<html>
<head>
<title>404 Not Found</title>
</head>
<body>
<center>
<h1>404 Not Found</h1>
</center>
<hr>
<center>openresty</center>
</body>
</html>
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->


This error I am getting. Help me to resove this. 
Thanks

1 Reply
tmj
Level 2
Level 2

Hi @DeepikaWe2code

 

Unfortunately, the Adobe Developer Console team would be unable to help with any Product API specific questions. While, I can try to find someone relevant internally and pass your question on to them - I'd suggest that you reach out to the customer success rep assigned to your company.

 

Thanks,
Manik