modesty / pdf2json

converts binary PDF to JSON and text, for server-side PDF processing and command-line use.
https://github.com/modesty/pdf2json
Other
2.02k stars 377 forks source link

Best practices for pdf conversion #187

Open GuiJordao21 opened 5 years ago

GuiJordao21 commented 5 years ago

I have a performance question.

if i have a array of buffers and want to use .parseBuffer() inside a for loop, is it ok to instantiate pdfParser = new PDFParser(); on every iteration?

NatanB4 commented 1 year ago

I think it doesn't have much of a problem although maybe there are better ways