As of now xpdf errors/warnings/logs are sent to stdout and only way to partially control it is with Config.error_quiet. Also pyxpdf in most cases cannot detect errors in xpdf sources as there is no error callback or logging mechanism implemented.
Ideas:-
libxpdf has an error callback which can be utilized for log/error reporting.
As of now xpdf errors/warnings/logs are sent to stdout and only way to partially control it is with
Config.error_quiet
. Also pyxpdf in most cases cannot detect errors in xpdf sources as there is no error callback or logging mechanism implemented.Ideas:- libxpdf has an error callback which can be utilized for log/error reporting.
Also take a look at lxml's logging mechanism, their use case is also similar to us https://github.com/lxml/lxml/blob/master/src/lxml/xmlerror.pxi