Skip to main content
Participant
June 12, 2021
Question

convert response from PDF Extract API to image and csv files

  • June 12, 2021
  • 2 replies
  • 2822 views

Hello All,

 

I am using the PDF Extract API by making a REST call using postman. The call is successful and i am able to Poll and get the contentAnalyserResponse in text format. How do i get this as separate files that can get downloaded to my disk as images and/or csv/json files for text and tables. Can i receive the response as object(s) that can be written to different files with the proper extensions to achieve this. I remember reading somewhere but now cannot locate it again that the response can be received as a single downloadable zip file with all the separate files in a fixed folder structure...

 

If anyone has tried or achieved this, please could you share how you have done it.

 

Thanks and regards,

Adi

This topic has been closed for replies.

2 replies

Participant
August 7, 2021

Hi, 

I'm at the same spot right now and could use some guidance.

From looking at the json, it appears that I'm getting good results, but now I need to get it displayed properly. 

I'm beginning to think that I'm unable to render the response in postman and need to install the sdk to visualize the extraction. I'm hoping to send the GET responses directly into a db to display on website.

Any input on next steps would be greatly appreciated.

 

 

 

Raymond Camden
Community Manager
Community Manager
August 9, 2021

If you are getting the JSON, then you are good - I mean, as far as I can help. How you use the JSON depends on what your building. But at that point, it's outside the API/SDK and in your hands in terms of what you do with the JSON. Right?

Participating Frequently
August 14, 2021

Ah, so Extract can return the images in the PDF (along with tabular data too), so I think you are seeing Postman maybe fail to try to render that. Normally you would take the multipart form response and save out the binary files and the JSON. The SDK does all of this for and makes it much easier, so if you *do* have access to that, I'd suggest it.


Hi Raymond,

 

Normally you would take the multipart form response and save out the binary files and the JSON. The SDK does all of this for and makes it much easier - In the SDK, there is no such option for .Net, then we we can save out the binary files & JSON using REST API?

Raymond Camden
Community Manager
Community Manager
June 14, 2021

It should be a multipart form response. I haven't done that myself with Postman, but does that give you some help?