by Qoppa Software - Product Type: Component / Java Class
You can find current information from the links below
in PDF
If you need to buy a license for this specific version, please contact us for availability and pricing.
Other information on this page is shown for historical reference only and may have changed considerably since.
Manipulate PDF files from your Java applications. jPDFProcess is a Java library that can be used to deliver customized PDF content to your users or to process and manipulate incoming PDF content. jPDFProcess has a simple interface to work with PDF documents and is designed to be integrated easily and seamlessly into your PDF document workflow. jPDFProcess provides functionality for printing, setting permissions and security, creating and assembling documents, digital signing, working with form fields, extracting text and more. jPDFProcess can work with PDF documents from files, URLs and input streams and can save documents to files and output streams. It can serve documents from a J2EE application directly to a client browser without any temporary files. jPDFProcess is platform independent, so it can be used in any environment that supports Java, including Windows, Mac OSX and Linux.
What's new in jPDFProcess V4.30?
These libraries now allow editing unicode text in annotations content and within document properties (author, subject, description). This will be of special interest to customers using non-latin characters such as Arabic, Asian (Chinese, Japanese and Korean), Greek, or Cyrillic characters.
jPDFProcess is a Java library that can be used to create, modify and manipulate PDF documents. After modifying the document, the library can then save the document to the file system or to a Java OutputStream. When working within a J2EE application server the library can work within a servlet to serve the modified PDF documents directly to the browser client. The library can work with existing or new documents and provides a variety of functions that can be performed on the documents. With jPDFProcess, your application or server can customize and process PDF documents to deliver customized content to your customers or to automatically manage PDF content repositories.
jPDFProcess Main Features
jPDFProcess Merging and Splitting
PDFDocument defines a PDF document as a number of page objects. Some of the functions available in the library are accessible at a page level. For instance, when merging two documents, the host application would retrieve the pages from one document and add it to the other document. Splitting works in a similar fashion.
jPDFProcess Drawing Onto a Document
jPDFProcess lets the host application draw content on top of existing content as well as on brand new pages in a document. This feature can be used to watermark existing documents, to create PDF documents from scratch and more. To draw the content, the library provides an object that derives from the standard java Graphics2D object and overrides all methods to draw onto the PDF rather than onto a screen.
jPDFProcess Encryption and Permissions
jPDFProcess can add or modify encryption and permission settings in a document. To do this, the library provides a method, setSecurity, that takes the new passwords and permission settings. One thing to note is that a PDF file can have two different passwords, a permissions or owner password and an open or user password. The permissions password is only required when changing the permissions of a PDF file and is not required to open and view a document. The open password is required to open a document. You can clear all security in a document by calling the PDFDocument.clearSecurity method. This method takes the current permissions password as a parameter, this parameter can be left to null if the document doesn't have a permissions password.
jPDFProcess Exporting to Images
jPDFProcess can create images from any of the pages in a PDF document. Using this functionality, an application can export the document into a series of images.
jPDFProcess Printing a Document
jPDFProcess provides the ability to print PDF documents with or without showing the printer dialog or any other user intervention. The PDFDocument object provides a couple of print methods to achieve this. The first version of the method will display a printer dialog to let the user choose the printer and printer properties. The second version of the method will print the document to the named printer without showing a dialog. If the printer name is null, the library will print to the default printer. The second parameter, PrintSettings, controls the way that jPDFProcess will print each page. The object has several properties that can be set by the calling application:
jPDFProcess Printable / Pageable
In addition to providing print methods, for added flexibility, PDFDocument implements both the Printable and Pageable interfaces. By using PDFDocument in this manner, the calling application can create its own PrinterJob, set any options that it needs to, and then set PDFDocument as the job's Printable or Pageable object. This can be useful when the application needs to use print request attributes (javax.print.attribute.PrintRequestAttribute) for finer control of printing options such as choosing the paper size or media tray, printing in color and others.
jPDFProcess Digitally Signing a PDF document
There are 3 steps to add a new digital signature to a PDF document with jPDFProcess: create a new digital signature field, load digital id from a keystore to create a SignatureInformation object and apply the signature.
jPDFProcess Working with Form Fields
Fields in a PDF file are contained in what Adobe calls an AcroForm. jPDFProcess provides access to an AcroForm object from the PDFDocument class and through this object, the host application can get the fields present in the document and get or set their data. To get a reference to the AcroForm, the host application needs to call PDFDocument.getAcroForm. The method returns an object of type com.qoppa.pdf.form.AcroForm. The host application can then use this object to get the list of fields in the PDF document and to get individual fields by name. The field objects in turn have methods to get or set their current value. After the application is done setting or getting values from fields, it can call the PDFDocument saveDocument method to save the updated document. You can flatten form fields in a PDF file by calling the PDFDocument.flattenFields method. This method paints the content of the fields directly into the pages and removes the fields themselves from the document. flattenFields takes a boolean as a parameter to indicate wether to paint the push buttons or not. Usually, you would want this flag to be set to false.
jPDFProcess Working within J2EE
jPDFProcess can be used within a servlet in a J2EE server to load documents from a repository, customize the documents according to the state of a user connection and serve the modified document directly to a browser. The first step is to create a servlet class that responds to GET and / or POST requests. Using this method, there are no temporary files necessary on the server or the client, enhancing security and performance when delivering PDF contents.
jPDFProcess Distribution and JAR Files
jPDFProcess is packaged entirely in a single jar file, jPDFProcess.jar that gets installed with the evaluation sample. When deploying an application that contains jPDFProcess, the jPDFProcess.jar file needs to be installed and included in the class path when running the application. To support JPEG 2000 images, jPDFProcess uses the Java Advanced Imaging (JAI) classes. Since this API is only available for Java 1.4.2, jPDFProcess needs to run in Java 1.4.2 or above when working with PDF documents that contain JPEG 2000 images. The API can be installed separately in the target machine or the jai_imageio.jar file (included in the sample program installation) can be installed independently and included in the class path. To export TIFF images using the PDFPage.savePageAsTIFF, jPDFProcess also requires the Java Advance Imaging codec classes. These classes are packaged in jai_codec.jar that is also included in the evaluation program installation.
ComponentSource offers a unique global service, used by over 1,000,000 software developers worldwide.