pdftocairo does not report some errors
Submitted by a3n..@..nm.net
Assigned to poppler-bugs
Description
The pdftocairo command line tool does not report certain errors. The cases which I have observed are:
-
when specifying the -scale-to option for conversions to types that do not accept it (e.g., for SVG), the option and its value are ignored with no error message
-
when only one of -paperw and -paperh are specified, both are silently ignored
-
when giving to -paperw or -paperh a non-integer value (e.g., "42.3"), or indeed any other erroneous value that cannot be parsed as an integer, the conversion is aborted and no error message is displayed (only the exit code reflects that something went wrong); by contrast negative integers do not make the conversion fail but mean that -paperw and -paperh are silently ignored.
I think pdftocairo should display an error when the conversion was not actually performed, and display warnings (or display an error and fail) when some parameters were ignored.