Thursday, 15 September 2016

Introduction to itext

Itext is open source Java API to work with PDF (Portable document format) files. Itext library released under AGPL license.(Affero General Public License) If you want to use itext for commercial purpose, you better need to purchase license. To guard your intellectual property, receive professional support and take advantage of iText's advanced features, however, a commercial license is required. In this tutorial series, I am going to cover basic itext apis.

I am going to use following maven dependency.
<dependencies>
  <dependency>
    <groupId>com.itextpdf</groupId>
    <artifactId>itextpdf</artifactId>
    <version>5.5.9</version>
  </dependency>

  <dependency>
    <groupId>org.apache.logging.log4j</groupId>
    <artifactId>log4j-api</artifactId>
    <version>2.5</version>
  </dependency>

  <dependency>
    <groupId>org.apache.logging.log4j</groupId>
    <artifactId>log4j-core</artifactId>
    <version>2.5</version>
  </dependency>
</dependencies>

What can I do with itext library?
By using itext library, you can
a.   Create PDF documents
b.   Read PDF documents
c.    Write data to PDF documents
d.   Manipulate existing PDF documents
e.   Generate PDF files from XML file (or) from the data from database (like SQL tables).
f.    You can add page numbers, bookmarks, watermarks etc.,
g.   Fill out the data in interactive forms and lot more

Reference



Previous                                                 Next                                                 Home

No comments:

Post a Comment