Code Sample: Convert PDF to Postcript in Java

A Java program that uses jPDFPrint to convert a PDF file to Postscript. The program queries the JVM for any print services that support Postscript output. At least one such services is always available in a Sun JVM. It then prints the PDF document, using jPDFPrint, to that print service, which will ouptut a Postcript file. ocFlavor […]

Read More

jPDFNotes component to implement a PDF workflow review cycle

Q: The way we have implemented jPDFNotes the document is passed around a number of reviewers on a “workflow”. Each reviewer can add notes. Is it possible to “lock up” previous markups, so that new markup data can be added but previous markup data can not be modified? A: Yes it can be done, but […]

Read More

Compare two PDF documents side by side with loupe

Q: Can jPDFNotes, Qoppa’s Java PDF markup component, be used to compare 2 PDF documents side by side? Our customers are architectural and engineering professionals who need to examine small details in a blueprints and drawings. A: Qoppa’s jPDFNotes comes with a side by side comparison component which lets you compare 2 PDF documents in […]

Read More

Exporting and Merging PDF annotations in FDF and XFDF format

By default, jPDFNotes saves annotations within the PDF document. Qoppa’s PDF tools are fully compliant with the PDF format specs, so all annotations created by jPDFNotes are usable by other PDF applications (such as Adobe Reader), and vice-versa. The PDF format also defines two other file formats to store annotations separate from the PDF document, they […]

Read More

jPDFNotes Localization Languages

jPDFNotes comes in 5 languages: English, French, German, Italian, Spanish. jPDFNotes being built on top of our viewer-only component jPDFViewer, the localization for jPDFNotes works the same as for jPDFViewer. See our entry in the jPDFViewer knowledge base. The only differences is that there are 2 files to localize: ViewerLabels.properties AND NotesLabels.properties. The label files can be […]

Read More

What is jPDFNotes?

jPDFNotes is a PDF Reader / Annotator / Form Filler / Digital Signer for Java. It is a Java Swing component to view and markup PDF documents with all kind of graphical or markup annotations as well as fill interactive PDF forms and sign PDF documents. jPDFNotes is just the component but it can be […]

Read More

Side panels visibility: Attachments, Thumbnails, Bookmarks, Signatures, Comments

How can I hide or show side panels / tabs (such as Thumbnails, Bookmarks, Signatures or Comments) in the left split panes in the PDFNotesBean? Customizing Default Behavior Use com.qoppa.pdfViewer.InitialViewSettings to customize the default behavior when opening a document. For example, the code below will change the default behavior to open always open the document […]

Read More

Running jPDFNotes PDF component within an applet

Q: We would like to enable our users to annotate PDF documents “online” and deploy jPDFNotes within an applet. Can jPDFNotes run in Internet browsers such as IE6 or Firefox or Safari? What are the best practice instructions on how to configure the applet for optimal performance and minimal user-intervention? A: jPDFNotes can run in […]

Read More

Non-Latin character in form fields

Q: When I type in non-Latin characters in interactive PDF form fields, some characters vanish or disappear. Why is that so? What can I do to fix this? A: The problem with non-Latin characters (Greek, Russian, Arabic, Hebrew) disappearing after being entered in an interactive text field has to do with the way that fonts […]

Read More

jPDFNotes Java API

Q: Where can I find jPDFNotes javadoc API? A: You can find the API specification for the latest version of our library jPDFNotes on our website at this link. jPDFNotes is a java bean to display and annotate PDF documents and fill interactive PDF forms in Java applications and applets.

Read More

Configuring webeditor, webnotes, webviewer with a config xml file

Q: How can I configure the sample applets PDFWebEditor, PDFWebNotes, PDFWebViewer that Qoppa provides as samples? A: You can configure the applets through a config.xml file by adding it to the applet parameter tag of the HTML: Config:”config.xml” The config.xml file can be used to customize any of our 3 sample applets PDFWebViewer, PDFWebNotes and […]

Read More

Can jPDFNotes delete or insert pages within PDF documents?

Q: Can jPDFNotes delete or insert pages within a PDF document? How about flattening annotations or form fields? A: If you’d like the option for your users to delete/ insert pages or flatten annotations or fields within PDF documents, it is possible to do so using jPDFNotes. The interface MutableDocument allows document manipulation within jPDFNotes. This interface is […]

Read More

Better PDF Viewer Annotator for Oracle IPM

Qoppa Software offers a standalone PDF renderer and annotator for Oracle® Webcenter Content Imaging, formerly known Oracle Imaging and Process Management (Oracle I/PM). Our Oracle IPM PDF renderer is faster and more reliable than the built-in Oracle IPM viewer and can be used as an alternative or a substitution. And our licensing is affordable when […]

Read More

Annotations not visible in other PDF viewers

Q: We have noticed PDF documents edited with jPDFNotes do not show their annotation when rendered in a PDF viewer used by one of our applications. This may be a limitation of the other viewer rather than your component. If this is the case, can your component be configured to render directly onto the underlying […]

Read More

jPDFImages Java API

Q: Where can I find jPDFImages javadoc API? A: You can find the API specification for the latest version of our library jPDFImages on our website at this link. jPDFImages is a java library to convert PDF documents to images and to create PDF documents from images in java.

Read More

Code Sample: Convert PDF page into BufferedImage in Java

A Java program that gets images from a PDF (one image per page) as Java BufferedImage objects using Qoppa’s library jPDFImages. Once images are available as BufferedImage objects, they can easily be modified before saving using Java Graphics2D. For instance here a watermark is applied to the images. Sample code, which uses jPDFImages library but can also be changed […]

Read More

Code Sample: Convert a PDF file to Tiff in java

A Java program to convert a PDF file to a single, multi-page TIFF file using Qoppa’s library Java PDF image library jPDFImages. import com.qoppa.pdf.TIFFOptions; import com.qoppa.pdfImages.PDFImages; public class PDFToTIFF { public static void main (String [] args) { try { PDFImages pdfDoc = new PDFImages ("input.pdf", null); TIFFOptions options = new TIFFOptions (150, TIFFOptions.TIFF_PACKBITS); pdfDoc.saveDocumentAsTIFF("output.tif", options); […]

Read More

Code Sample: Convert a PDF document to JPEG files in Java

This Java program converts a PDF file to multiple JPEG files using Qoppa’s library Java PDF image library jPDFImages. This program loops through the pages contained in a PDF document and outputs a JPEG image for each PDF page. In this program, the resolution is set to 150 dpi and the JPEG quality to 0.8. Both […]

Read More

Activate OCR in jPDFEditor

As of version 2013R2, jPDFEditor, Qoppa’s Java PDF editing component, has an optional OCR function available. OCR is also available in jPDFNotes and the steps for integration are the same as for jPDFEditor. Follow the instructions below to add an “OCR” button to the toolbar so your users can perform OCR on PDF documents open in   Qoppa’s visual […]

Read More

What is jPDFEditor

jPDFEditor is a PDF Reader / Annotator / Form Filler / Editor for Java. It is a Java Swing component to: View and markup PDF documents with all kind of graphical or text markup annotations Fill interactive PDF forms. Digitally sign PDF documents Edit or Redact content in PDF document (Text, Image, Path objects) jPDFEditor is […]

Read More

jPDFFields Java API

Q: Where can I find jPDFFields javadoc API? A: You can find the API specification for the latest version of our library jPDFFields on our website at this link. jPDFFields is a java library to import and export form fields data into / from interactive PDF forms in Java.

Read More

Code Sample: Import form field data into a PDF form in Java

Simple Java program to import form field data into a PDF form from an FDF file using Qoppa’s library Java PDF form fields library jPDFFields. jPDFFields can also import XDP and XFDF data. // Load the document PDFFields pdfDoc = new PDFFields ("input.pdf", null);   // Import the data in FDF format pdfDoc.importFDF("input.fdf");   // Save the […]

Read More

Code Sample: Flatten form field data in a PDF in Java

This Java program “flattens” PDF form field data into the PDF content layer using Qoppa’s Java PDF form field library jPDFFields. This means that the field contents will become part of the PDF content and so the document will not be editable anymore. // Load the document PDFFields pdfDoc = new PDFFields ("input.pdf", null); // Flatten fields […]

Read More

Code Sample: Extract form field data programmatically from a PDF form in Java

This Java program loads a PDF document and echoes information about all the fields in the form, including field name, type, value, default value, etc… This sample uses Qoppa’s  Java PDF form fields library jPDFFields. // Load the document PDFFields pdfDoc = new PDFFields ("C:/myfolder/form04.pdf", null);   // get list of fields Vector<FormField> fields = pdfDoc.getFieldList(); […]

Read More

Code Sample: Export PDF field data to FDF in Java

Simple Java program to export PDF form field data in FDF format using Qoppa’s library jPDFFields. jPDFFields is also able to export data in XFDF and XDP formats, you can simply switch the export method to use the appropriate output format. // Load the document PDFFields pdfDoc = new PDFFields ("input.pdf", null);   // Export field data […]

Read More

Code Sample: Split a PDF document in 2 in Java

This Java program splits one PDF document into two PDF files using Qoppa’s library jPDFAssemble: a first PDF document (“split1”) which contains the first and second page and a second PDF document (“split2”) which contains the third and fourth page of the original PDF. // Load the original PDF document PDFAssemble pdfDoc1 = new PDFAssemble […]

Read More

Code Sample: Merge 2 PDF files into one in Java using jPDFAssemble

This Java program merges two PDF files into a single one using Qoppa’s library jPDFAssemble. It is doing so by first opening the 2 PDFs and then appending the second one to the first one and saving the resulting document. // Load the two PDF documents PDFAssemble pdfDoc1 = new PDFAssemble ("doc1.pdf", null); PDFAssemble pdfDoc2 = […]

Read More

Code Sample: Add PDF Bookmarks

Working with Bookmarks jPDFAssemble and jPDFProcess allow to create new bookmarks or manipulate existing bookmarks in PDF documents. Here is an example on how to add bookmarks for each page of a PDF document: // Get current bookmark root Bookmark rootBK = pdfDoc.getRootBookmark();   // Create a root bookmark if it’s null if(rootBK == null) { rootBK = […]

Read More