I have scanned a 9 page document using simple-scan, one page at a time. This has created .pdf files which I can open and view using Okular.
What I now wish to do is combine these files into a single multipage pdf file. This is not possible using Okular so I am using pdftk to do this. Here is the result of my efforts so far:-
alastair@ibmserv2:~> pdftk /home/alastair/scanned_docs/EICR_Tnf_1_of_9.pdf /home/alastair/scanned_docs/EICR_TnF_2_of_9.pdf /home/alastair/scanned_docs/EICR_TnF_3_of_9.pdf /home/alastair/scanned_docs/EICR_TnF_4_of_9.pdf /home/alastair/scanned_docs/EICR_TnF_5_of_9.pdf /home/alastair/scanned_docs/EICR_TnF_6_of_9.pdf /home/alastair/scanned_docs/EICR_TnF_7_of_9.pdf /home/alastair/scanned_docs/EICR_TnF_8_of_9.pdf /home/alastair/scanned_docs/EICR_TnF_9_of_9.pdf cat output EICR_TnF_combined.pdf
Error: Unable to find file.
Error: Failed to open input PDF file:
/home/alastair/scanned_docs/EICR_Tnf_1_of_9.pdf
Errors encountered. No output created.
Done. Input errors, so no output created.
alastair@ibmserv2:~>
I have already tried to use the full path to the files and I can open them without difficulty. I assume I have made a silly mistake but the command looks OK to me. Where am I going wrong please?
Hi Malcolm,
I had tried that first from that directory but same response, hence the full path but neither works so far. Both command failures do show the correct first file of my list so I am not clear what is happening.
There are some informations available that such an error get thrown when there are file permission problems. That means, make sure that you have right owner/group permissions on these files…
Hi,
I am as sure as I can be that permissions are OK. I installed pdftk using yast and believe it is from Packman repo so I assume all dependencies are OK.
A workaround has been suggested (for which many thanks,) so will try that for the time being but I do wish to get the command to work in due course.
Hi and many thanks for this workaround. All good as far as it goes, a neat solution I would never have found without your help. I do have one problem though; having put all the pages into the one document I could only save it as an .odg file not pdf. How can I save it as a pdf as you suggest? I need this as others may not be familiar with Libreoffice etc.
You can also try PDF Mix Tool, you can find it in the Publishing repo: it works quite well and being a graphical program you just need to use a file picker to select the files you want to combine.