4

Every day I get a large number of PDF files (100+) I need to concat and duplex print. Unfortunately they don’t all have an even number of pages so the print doesn’t duplex correctly.

Is there a way in a batch file to look at the number of pages in a PDF and add a blank page if the PDF has an odd number of pages?

4
  • 3
    Is it an option not to concattenate all PDFs and then print them, but to simply print them one by one? (IIRC just control-A on the folder, right click, print). That would print each file and start on a fresh paper for each file. – Hennes Sep 17 '15 at 16:48
  • 1
    What are you using to concat the files? – heavyd Sep 17 '15 at 17:06
  • @ Hennes It is too time consuming to print them one by one. – Ruth Sep 17 '15 at 23:22
  • @heavyd We are using pdftk to concat them. – Ruth Sep 17 '15 at 23:22
3

Sejda's console can help (disclaimer: I'm one of the developers):

./bin/sejda-console merge --addBlanks --directory my_files --output my_merged_files.pdf

The --addBlanks option will append a blank page if the number of pages in the pdf is odd.

This sample command merges all pdf files in the folder my_files.

Download the latest release from here: https://github.com/torakiki/sejda/releases

Hope it helps!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.