In this example, a PDF invoice is generated on the fly using several different page elements (Label, Image, TextArea, Rectangle, Line, Barcode etc.). Template class is used to add data (company logo, address etc.) that is common to all pages and page numbers are added using PageNumberingLabel element.
In this example, TextArea page element is used to create Avery 5160 labels with data retrieved from a database. This is a good example that illustrates how to use the DynamicPDF API to place text at a desired location on the PDF page.
This example demonstrates the font capabilities of DynamicPDF API. Several different fonts are used to add text to the PDF in various languages. In order to view the PDF generated by this example Acrobat Asian Font Pack is required.
In this example, a basic PDF report that displays a list of products is generated with data retrieved from Northwind database. Template class is used to add the report header on all pages and Rectangle and Label page elements are used to add the products details.
Digitally signed PDFs can be easily generated with a few lines of code. In this example a Signature field is added to the PDF and the digital signature is applied using a Personal Information Exchange (.pfx) file.
This example shows how to generate a simple PDF document.
This example shows how to generate a report with grouping.
This example shows how to generate a manuscript. This is a good example of how to use the overflow text methods to flow text to multiple pages.
This example shows how to convert a multi page TIFF to PDF.
This example shows how to generate a simple report from XML data.
This example shows how to generate a report using the Table Page Element.
This example shows how to use a table to generate a calendar.
This example shows how to use all 50 of the page elements that are available with Generator for Java. It also demonstrates how to build a custom page element.
This example shows how to create charts.
This example shows how to address an envelop and use the Postnet bar code.
This example shows how to use the text overflow functionality.
This example shows how to generate a PDF document with RC4 128 bit encryption. User password is "user" and owner password is "owner".
This example shows how to generate a PDF document with 256 bit encryption. Password is "password". This example requires Acrobat 10.0 or compatible PDF viewer.
Note: To run this example, you may need to install the "Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files". You will need to replace the policy JAR files located in the lib/security directory of your JRE with the unlimited strength jurisdiction policy files.
This example shows how to tag PDF documents that use lists and structured elements.
This example shows how to generate a PDF document with tagging.
This example shows how to add Alternate Text for images.
This example shows how to tag PDF documents.
This example adds all the html tags using the HtmlArea to the PDF document.
This example adds all the html tags and styles using the HtmlArea to the PDF document.
An Acro PDF form can be opened and form fields collection can be easily accessed and filled. In this example, input to an HTML form is used to fill the PDF form fields on the server and the resulting PDF is streamed back to the browser.
This example demonstrates how to use an existing PDF document as a template to generate an invoice. Data is retrieved from the Northwind database and is placed on top of the existing PDF using Label and TextArea page elements.
In this example, ImportedPageArea class is used to import multiple pages from an existing PDF. The pages are then rotated and placed on a single page and saved as a separate PDF.
Extracting text from an existing PDF can be easily done using the PdfDocument class. Read in the PDF using the PdfDocument class and call GetText() method to extract text content from the PDF as shown in this example.
Shows how to merge multple PDF documents into one.
Shows how to merge pages from different PDF documents into one and add a cover page.
Shows how to load an existing PDF document and place Page Elements on the pages.
Shows how to flatten Acro Form fields on an existing PDF document.
Shows how to flatten individual Acro Form fields on an existing PDF document.
Shows how to add a watermark to an existing PDF document.
Shows how to read the Acro Form fields of an existing PDF document.