mandiberg / printwikipedia

30 stars 11 forks source link

Add blank pages to addPrologue method #5

Closed mandiberg closed 8 years ago

mandiberg commented 11 years ago

I need to add a blank page to the addPrologue method in PdfTitleWrapper.java, so that there is an extra blank left side page for page 2 and page 4 of the table of contents. This will be replicated for the main volumes as well.

Documentation from http://itextpdf.com/examples/iia.php?id=99 implies that you use use pdfWriter.setPageEmpty(false); after(?) declaring the new page with pdfDocument.newPage(); but that throws an error at the last instance of .newPage, around line 235.