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
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: andersl/ Desktop/ Link_AutoRefrac tor_ProjBook/ RootCause_ Reports/ RootCause_ Report_ CameraFreeze_ bug_181_ 207.pdf" B="/home/ andersl/ Desktop/ Link_AutoRefrac tor_ProjBook/ RootCause_ Reports/ RootCause_ Report_ CameraFreeze_ bug_181_ 207.sig. pdf" cat A1-endN B1-endN output "/home/ andersl/ Desktop/ Link_AutoRefrac tor_ProjBook/ RootCause_ Reports/ gaga.pdf" allow AllFeatures
PDFTK command:
pdftk A="/home/
PDFTK returned: 0
Console output in the second case: andersl/ Desktop/ Link_AutoRefrac tor_ProjBook/ RootCause_ Reports/ RootCause_ Report_ CameraFreeze_ bug_181_ 207.pdf" cat B1-endN A1-endN output "/home/ andersl/ Desktop/ Link_AutoRefrac tor_ProjBook/ RootCause_ Reports/ gaga4.pdf" allow AllFeatures
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/
Input/Output Error - PDFTK returned: 256