modesty / pdf2json

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

Console WARN SPAM #295

Closed NatanB4 closed 1 year ago

NatanB4 commented 1 year ago

image

I can disable this?

version: "pdf2json": "^2.0.0"

modesty commented 1 year ago

try '-s' command line param

NatanB4 commented 1 year ago

But this is in file (require = "pdf2json)... not CLI

jeffstieler commented 1 year ago

It would be nice to add a verbosity argument to the parseBuffer() function for non-CLI usage.

For now I'm hacking around it by doing:

// pdf2json adds methods to util
import pdfJsonNodeUtil from 'util'
// reduce the verbosity of pdf2json
if (typeof pdfJsonNodeUtil['verbosity'] === 'function') {
    pdfJsonNodeUtil['verbosity'](0)
}
NatanB4 commented 1 year ago

thank you! :)