Sandeepvedam / pdf2json

Automatically exported from code.google.com/p/pdf2json
1 stars 0 forks source link

Special characters break JSON file #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. pdf2json sample.pdf sample.js
2. validate sample.js using a validator of your choice

What is the expected output? What do you see instead?
Expected output is a valid JSON file. Actual result is a JSON file that cannot 
be decoded due to presence of special control characters

What version of the product are you using? On what operating system?
Version 0.51 on Windows 7

Please provide any additional information below.

Original issue reported on code.google.com by pavle.pr...@gmail.com on 2 Aug 2012 at 3:39

Attachments:

GoogleCodeExporter commented 8 years ago
you can set the encoding from the command line.

eg

pdf2json -enc UTF-8 sample.pdf sample.js

Original comment by daveturn...@gmail.com on 17 Nov 2012 at 10:17

GoogleCodeExporter commented 8 years ago

Original comment by pdf2j...@devaldi.com on 17 Feb 2013 at 9:47