any actions to covert PDF to JSON?

Need to convert a PDF to JSON, anyone done this?


Gary Winzeler


6 Answers

These are two different things. PDF is a file format, whereas JSON (the "JavaScript Object Notation") is a data exchange format.

What exactly in the PDF do you want to convert to JSON?

I am not aware of anything that would do this for you, but you can always use a PDF parser and then output the relevant information in whatever format you want.

Karl Heinz Kremer
PDF Acrobatics Without a Net
PDF Software Development, Training and More...
http://www.khkonsulting.com


Karl Heinz Kremer   

I want to convert all the data in the pdf to a json file. Does anyone have a script already written?


Gary Winzeler   

What "data" do you mean? A PDF file contains a lot of different things, what exactly is it you want to extract?


Karl Heinz Kremer   

Not sure how to be any clearer "All the data" on the PDF and convert it to JSON.
The question is any script already written of any type for this type conversion?


Gary Winzeler   

You can save a PDF as XML with Adobe Acrobat. JSON is not an option but once you have the XML file there are several XML to JSON converters out there.
To save a PDF as XML through Acrobat UI you can go to menu File -> Save As Other... -> More Options -> XML 1.0. You can also automate such task by accessing Acrobat API, you can download Acrobat SDK from here: http://www.adobe.com/devnet/acrobat.html.


Almir R V Santos   

Hi
Try to use PDF2json.exe ,it easy to create js file form pdf .Try this link
https://code.google.com/p/pdf2json/
And download exe form left pane and try insruction.

Regards
Aravind


Aravind Aravind   


Please specify a reason: