Im trying to concatenate a huge number of PDF files to create a print-ready file, so that I don't have to print them one by one. The print-ready file I want needs to be duplex, so for the documents I have which are only 1 page, I need to add a blank page for the "back" of the document, otherwise the following document is messed up.
Is there any way to add blank pages while concatenating files using PdfSmartCopy? I know PdfWriter can easily add blank pages, but it isn't made for merging a large number of files, which is why I'm not using it.
I've read the answer to the question How to add blank pages in exist PDF in java? However, in this case I can't use PdfStamper
either because I require a small file size and it seems PdfSmartCopy
is the only viable option for that, unless I have missed something.
Is my only hope using a 1 paged blank PDF file and inserting that when I need a blank page?
Edit: I'm using the java version, not sure if it matters for this question.