ghostscript - Merging PDFs skipping corrupted PDFs -


currently using ghostscript merge list of pdfs downloaded. issue if 1 of pdf corrupted, stops merging of rest of pdfs.

is there command must use skip corrupted pdfs , merge others?

i have tested pdftk facing same issue.

or there other command line based pdf merging utility can use this?

thanks in advance

you try mupdf, try using mupdf 'clean' repair files before try merging them. if pdf file badly corrupted ghostscript can't repair won't work either.

there no facility ignore pdf files badly corrupted can't repaired. hard see how work in current scheme, since ghostscript doesn't 'merge' files anyway, interprets them, creating brand new pdf file sequence of graphic operations. when file badly enough corrupted provoke error abort because may have written parts of file could, , if tried ignore , continue both interpreter , output pdf file in indeterminate state.


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -