Red Hat Bugzilla – Bug 495574
pdftk reading from standard input still fails with pipes
Last modified: 2009-05-09 00:13:26 EDT
Description of problem:
Bug #49268 fixed reading from standard input for the most part.
The following works:
# pdftk foo.pdf - cat output foo1.pdf < foo.pdf
(foo1.pdf contains two copies of foo.pdf)
However, the following fails:
# cat foo.pdf | pdftk foo.pdf - cat output foo1.pdf
Error: Failed to open PDF file:
Errors encountered. No output created.
Done. Input errors, so no output created.
Version-Release number of selected component (if applicable):
100% of the time.
Reported issue could verified.
It will be nice, if you can tryout itext-2.1.5-2 and pdftk-1.41-17 from rawhide.
This releases should fix your reported bug.
Hmm, those rawhide RPMs have all sorts of other dependencies, such as on gcc, so I'd rather not upgrade my machine at this time.
However, if you have verified those RPMs fix the bug, I can wait until Fedora 11 to try this out.
One question, if I rebuild the rawhide source RPMs on Fedora 10, will the bug be fixed? Or is the fix dependent on some other RPMs?
You should be able to build them yourself on F-10. Note that you *have* to build pdftk against itext-2.1.5-2, for which you can download the SRPM from koji also.
I rebuilt the source RPMs on F10 and can confirm this problem is fixed with itext-2.1.5-2 and pdftk-1.41-17.
itext-2.1.5-2.fc10,pdftk-1.41-17.fc10 has been submitted as an update for Fedora 10.
itext-2.1.5-2.fc10, pdftk-1.41-17.fc10 has been pushed to the Fedora 10 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
su -c 'yum --enablerepo=updates-testing update itext pdftk'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F10/FEDORA-2009-3902
itext-2.1.5-2.fc10, pdftk-1.41-17.fc10 has been pushed to the Fedora 10 stable repository. If problems still persist, please make note of it in this bug report.