Problems with Merge pdf files with pdftk
Posted: Tue Jul 12, 2011 2:32 am
I am having 10 pdf file in a folder. Using pdftk i'm merging it.
It was working fine still all the pdf files are in good condition. If out of 10 one file is corrupted we will get an Error saying the file cannot open and it will stop merging files.
I'm using script to do this and it will exit with out merging the file if any one of the pdf is corrupted.
Is there any way to make the pdftk to merge the pdf files which are in good conditions and exclude corrupted ones ???
Code: Select all
pdftk *.pdf cat output Newpdf.pdfI'm using script to do this and it will exit with out merging the file if any one of the pdf is corrupted.
Is there any way to make the pdftk to merge the pdf files which are in good conditions and exclude corrupted ones ???