ceTe Software Help Library for Java August - 2020
DynamicPDF Merger for Java / Getting Started / Examples / Java source code Examples
In This Topic
    Java source code Examples
    In This Topic

    The directory "DynamicPDF_ForJava10~/ceTeSoftware/examples/Merger/" contains examples for DynamicPDF Merger for Java. (Note: Since the Merger product includes the Generator product, please refer to the Generator examples above also.)

    Open the "DynamicPDF_ForJava10~/ceTeSoftware/examples/Merger" directory, run the command javac *.java to compile all the examples, and then test the MergePDFs example by running the command java MergePDFs. A file named MergePDFs.pdf should be present in the "DynamicPDF_ForJava10~/ceTeSoftware/examples/Merger" folder which will indicate that the product has been successfully installed. In case of an error, please check that /pdfs folder under /Merger  contains DocumentC.pdf and DocumentD.pdf which are resources for this merging example.

    Similarly you can run other java files to see their respective output. Brief descriptions of the examples are given below:

    *MergePDFs.java
    Shows how to merge multiple PDF documents into one.

    *SelectPages.java
    Shows how to merge pages from different PDF documents into one.

    *FormFill.java
    Shows how to load an existing PDF document and place Page Elements on the pages from it.

    *FormFlattening.java
    Shows how to flatten the Acro Form fields of an existing PDF document.

    *FieldLevelFlattening.java
    Shows how to flatten individual Acro Form fields on an existing PDF document.

    *AcroFormFill.java
    Shows how to load an existing PDF document and place text over AcroForm fields.

    *Invoice.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.

    *PlacePDFs.java
    Shows how to place multiple pages from a PDF document onto a single page and rotate the imported data.

    *StampPDF.java
    Shows how to add a watermark to an existing PDF document.

    *FormFieldReader.java
    Shows how to read the Acro Form fields of an existing PDF document.

    *TextExtraction.java
    Shows how to extract the text from an existing PDF document.