Comment 5 for bug 1048045

Revision history for this message
Lutz Andersohn (landersohn-m) wrote : Re: PDF Chain errors when attempting to concatenate PDF files

I just encountered the same problem. Trying to concatenate two PDF files: one file generated with LibreOffice, the other scanned.
If I use the LibreOffice PDF file as first file followed by the scanned file, PDF Chain works. The other way around (scanned PDF first, followed by the LibreOffice PDF file), PDFChain/pdftk fails. Both files are located in the same directory, so I doubt it's a $PATH problem

Console Output in the first case:
PDFTK command:
pdftk A="/home/andersl/Desktop/Link_AutoRefractor_ProjBook/RootCause_Reports/RootCause_Report_CameraFreeze_bug_181_207.pdf" B="/home/andersl/Desktop/Link_AutoRefractor_ProjBook/RootCause_Reports/RootCause_Report_CameraFreeze_bug_181_207.sig.pdf" cat A1-endN B1-endN output "/home/andersl/Desktop/Link_AutoRefractor_ProjBook/RootCause_Reports/gaga.pdf" allow AllFeatures
PDFTK returned: 0

Console output in the second case:
PDFTK command:
Error: Given handle has no associated file:
   B, used here: B1-endN
   Exiting.
Errors encountered. No output created.
Done. Input errors, so no output created.
pdftk A="/home/andersl/Desktop/Link_AutoRefractor_ProjBook/RootCause_Reports/RootCause_Report_CameraFreeze_bug_181_207.pdf" cat B1-endN A1-endN output "/home/andersl/Desktop/Link_AutoRefractor_ProjBook/RootCause_Reports/gaga4.pdf" allow AllFeatures
Input/Output Error - PDFTK returned: 256