Package: pdftk
Version: 1.41-3

echo hi | mpage -1o > input.ps
ps2pdf input.ps input.pdf
echo ho | mpage -1o > stamp.ps

pdftk input.pdf stamp stamp.ps output lala.pdf && echo yo
Error: Failed to open stamp PDF file:
  stamp.ps
  No output created.
yo


^^ see it displayed "yo" because it did not return an error exit code even though an error occured.
that's bad if you try to write scripts...


now i try to just "convert" ps to pdf:

pdftk input.ps output lala.pdf && echo yo
Error: Failed to open PDF file:
  input.ps
Errors encountered.  No output created.
Done.  Input errors, so no output created.

^^ see, it does not display "yo" because it correctly reported error exit code.



so to sum it up: the bug is that pdftk does not report error code if it cannot open stamp input file.


cu
erik



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to