In the directory "DynamicPDF_ForJava10~/ceTeSoftware/examples/Merger/servlets" we have provided examples to show how DynamicPDF Merger for Java can be used in Servlets.
Since loading of a servlet is a Servlet Engine or Java Application Server dependent process, we are providing you with a general installation process. Please check your Servlet Engine or Java Application Server manual if you need help in loading Servlets.
Compile MergePDFs.java file located under "DynamicPDF_ForJava10~/ceTeSoftware/examples/Merger/servlets" and place the MergePDFs.class file under to the working directory of your Servlet Engine or Java Application Server. Please make respective changes into your web.xml to handle the servlet mapping and copy "DynamicPDF_ForJava10~/ceTeSoftware/examples/Merger/pdfs" folder to application root (level of WEB-INF). Calling this Servlet from a web browser will cause "MergePDFs.pdf" to be downloaded on the client machine. This Servlet needs DocumentA.pdf, DocumentB.pdf, DocumentC.pdf & DocumentD.pdf to be found under "DynamicPDF_ForJava10~/ceTeSoftware/examples/Merger/pdfs".
Similarly you can run other servlet 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.
*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.
*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.
*TextExtraction.java
Shows how to extract the text from an existing PDF document.