dsanson / termpdf

barebones graphical pdf/djvu/cbr/image viewer that works inside iTerm2 2.9+ and Kitty
MIT License
637 stars 24 forks source link

Send stderr of pdfseparate to /dev/null #27

Closed mrquincle closed 2 years ago

mrquincle commented 3 years ago

There are a few tools, pdfseparate, gs, etc. of which stderror is displayed. In particular pdfseparate generates the following warning:

Syntax Warning: PDFDoc::markDictionnary: Found recursive dicts

This stems from the poppler source code. In the PDFDoc::writeDictionnary function in poppler/PDFDoc.cc.

Alternatively, write to log file.

For now, I followed the same strategy as with other CLI commands in the same file.