I am sure there is a good explanation for this, but it appears as though
the new blank pages that I add to the document with "document.newPage()"
are not added to the HelloWorld.pdf (see code snippet below).
This is purely a test in order to understand when a page is actually
created in the final PDF file that I am creating. I assumed that when
you use "document.open()" that a new page is automatically given to the
document, but it does not appear that a new page is added to the
document in this method or even within the document's constructor.
Any help would be appreciated.
Thanks,
Sean
Document document = new Document();
try {
PdfWriter.getInstance(document, new
FileOutputStream("HelloWorld.pdf"));
document.open();
document.add(new Paragraph("Hello World"));
document.newPage();
document.newPage();
document.newPage();
...
}
...
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/