Problem connecting to PDF Extract API using Postman

New Here ,
Jun 12, 2021 Jun 12, 2021

Copy link to clipboard

Copied

Hello,

I am very new to using postman to make API Calls. I have started my trial for PDF Extract API and downloaded the REST API Postman collection file Extract.json. Imported the same in Postman as a collection and get the Submit and Poll requests. I have updated my Client ID as x-api-key value and pasted the jwt token after Bearer in the autorization key value. I have provided value for the inputfile0.

My url: "https://cpf-ue1.adobe.io/ops/:create?respondWith=%7B%22reltype%22%3A%20%22http%3A%2F%2Fns.adobe.com%..."

Now when i send the request i get the below message:

{"error": {"code": "Not Found", "message": "Oops. Something went wrong. Check your URI and try again.", "details": { "error_code": "404404" } } }

 

Please advise what am i doing wrong? 

Views

788

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 12, 2021 Jun 12, 2021

Copy link to clipboard

Copied

Hello,

 

I found the issue i was facing. Postman when imported the collection, was treating :create in the url as a path variable. In path variables in the params section, i just put the same value ":create" as value of the variable and now i am able to send the request and also get the response as 202 in progress. when i poll back with the x-request-id, i am getting the response.

 

I have two issues:

1. the response is a stream of characters and text representing the png files content and the jason files content. It does not save the files on my hard disk in postman working directory or the path where the input pdf was provided from. Just comes as a response stream of characters. How to save the individual files?

 

2. I want the tabular data in the pdf as csv files for each table, but all of it is returned as json only. 

 

if anyone has faced same problem and has been able to get an answer, please let me know.

 

Thank you very much!

 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 28, 2021 Nov 28, 2021

Copy link to clipboard

Copied

have a nice day

https://cpf-ue1.adobe.io/ops/:create?respondWith=%7B%22reltype%22%3A%20%22http%3A%2F%2Fns.adobe.com%...
I made a  post request like you did.

response :

{
"cpf:status": {
"completed": false,
"type": "",
"title": "In Progress",
"status": 202
},
"cpf:engine": {
"repo:assetId": "urn:aaid:cpf:58af6e2c-1f0c-400d-9188-078000185695"
},
"cpf:inputs": {
"documentIn": {
"cpf:location": "InputFile0",
"dc:format": "application/pdf"
},
"params": {
"cpf:inline": {
"elementsToExtract": [
"text",
"tables"
],
"renditionsToExtract": [
"tables",
"figures"
]
}
}
}
}
*******
for get request
x-request-id, where do I find its value
 
Thank you very much!

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 28, 2021 Nov 28, 2021

Copy link to clipboard

Copied

LATEST

https://cpf-ue1.adobe.io/ops/:create?respondWith=%7B%22reltype%22%3A%20%22http%3A%2F%2Fns.adobe.com%...

I found the answer. When we send a post request, xxx is given in the header.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources