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

Page: < 1 2

(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.

itext-test.pdf in Acrobat Reader

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.

Document Properties

This tutorial has showcased just a few of the possibilities that iText has to offer. It is an excellent JavaSW library, and it's free!

Page: < 1 2