How do I write to a PDF file using iText?
Author: Deron Eriksson
Description: This Java tutorial describes how to write to a PDF file using the iText library.
Tutorial created using: Windows XP || JDK 1.5.0_09 || Eclipse Web Tools Platform 1.5.1
(Continued from page 1)
Our itext-test.pdf document gets written to the root level of our project. If we open the file, we see the following.
In addition, if we go to the document properties in the File menu of Adobe Reader, we can see the document metadata (Title and Author) that we created.