The directory "DynamicPDF_ForJava10~/ceTeSoftware/examples/Generator/" contains examples for DynamicPDF Generator for Java.
Open the "DynamicPDF_ForJava10~/ceTeSoftware/examples/Generator" directory, run the command javac *.java to compile all the examples, and then test the HelloWorld example by running the command java HelloWorld. A file named HelloWorld.pdf should be present in the "DynamicPDF_ForJava10~/ceTeSoftware/examples/Generator" folder which will indicate that the product has been successfully installed. Similarly you can run other java files to see their respective output. Brief descriptions of the examples are given below:
*HelloWorld.java
This example shows how to generate a simple PDF document.
*HelloWorld_Aes256BitEncrypted.java
This example shows how to generate a PDF document with 256 bit encryption. Password is "password". This example requires Acrobat 9.0 or a compatible PDF viewer.
*HelloWorld_RC4128BitEncrypted.java
This example shows how to generate a PDF document with 128 bit encryption. User password is "user" and owner password is "owner". This example requires Acrobat 5.0 or a compatible PDF viewer.
*HelloWorldLanguages.java
This example displays the International font capabilities. This example requires the Acrobat Asian Font Pack. If the output looks corrupted or you get the "File not found" exception then please check that the "unicodeFont" variable is pointing to correct font and the font you provided has Asian language support.
*AllPageElements.java
This example shows how to use all of the page elements that are available with Generator for Java. It also demonstrates how to build a custom page element.
*TimeMachine.java
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.
*SourceView .java
This example reads and displays the source code of a java page, with color coding.
*TiffToPDF.java
This example shows how to generate a PDF file from a Tiff Image. This is a good example of how a multipage tiff image can be converted into a PDF file.
*USEnvelope.java
This example shows how to address an envelope and use the Postnet barcode.
*FormattedTextContinuation.java
This example shows how to use the text overflow functionality.
*SimpleXMLReport.java
This example shows how to generate a simple report from XML data.
*Charting.java
This example shows how to generate a simple chart.
*DigitalSignature.java
This example shows how to Digitally sign a document.
*HelloWorldTaggedPdf.java
This example shows how to generate a PDF document with tagging.
*ImageWithAltText.java
This example shows how to add Alternate Text for images.
*TaggedPdfWithStructureElements.java
This example shows how to tag PDF documents that use lists and structured elements.
*TimeMachineTaggedPdf.java
This example shows how to tag PDF documents.
*TableCalendar.java
This example shows how to generate and use tables.
*HtmlAreaTags.java
This example shows how to use simple tags in HTML Area.
*HtmlAreaTagsAndStyles
This example shows how to use HTML tags with styles in HTML Area.
*Watermark
This example shows how to add watermark to the PDF.
*PackagePdf.java
This example shows how to create a package PDF.
The following examples need to be configured to connect with the Microsoft SQL Server "Northwind" database. Modify the value of the connection setting in the respective java file's constructor found in the "examples" directory:
*SimpleReport.java ( Need MS SQL Server )
This example shows how to generate a simple report.
*ContactList.java ( Need MS SQL Server )
This example shows how to generate a report with grouping.
*Invoice.java ( Need MS SQL Server )
This example shows how to generate invoices with barcodes.
*TableReport.java ( Need MS SQL Server )
This example shows how to generate a report using the Table page element.
*MailingLabels.java ( Need MS SQL Server )
This example shows how to create mailing labels from database data. It is coded for Avery label number 5160 but the variables can easily be changed to accommodate many other label formats.