Modesty Zhang
                                            Modesty Zhang
                                        
                                    seems like a buffer issue, please test it with latest master (v3.1.5 w/ https://github.com/modesty/pdf2json/commit/bcbebdbb3f6aec20713d300596bd0ea06f2e5918 )
as the error msg states, emojis is not supported, yet. exception is correctly thrown and caught.
fix is pushed to feat/eslintNtypescript, will be included in v3.1.3
can you upload the sample pDF?
can you upload the example PDF?
how did you run pdf2json? if you run it via cmd line, or as a web service, this error should not occur.
pdj2json is designed to run outside browser, and never tested with embedded browser (as in electron framework). 3 options here: - invoke cmd line to run pdf2json from your app...
cannot repo with v3.1.2 PDF is saved to test/pdf/misc, covered by `npm run test:misc`
the testing pdf is downloaded and save in test/pdf/misc/ as i64_schedule_generator.pdf. Then run cmd line: node pdf2json.js -f test/pdf/misc/i64_schedule_generator.pdf -o test/target/misc/ it parses then writes out i64_schedule_generator.json correctly. node -v:...
TS is 'Text Style', line 332 in pdffont.js: let TS = [this.faceIdx, this.fontSize, this.bold?1:0, this.italic?1:0]. Since embedded font is not supported in parser, bounding box is determined by rendering platform....