How to log unsupported features when converting PDF to SVG with jPDFWeb

In version v2016R2, we’ve added system properties to log unsupported features when converting PDF documents to SVG with jPDFWeb. New System Properties The system properties / vm options to turn off logging of unsupported features are: // turn on low level logging unsupported features -Dqoppa.jpdfweb.unsupported=true // turn on fine level logging of unsupported features -Dqoppa.jpdfweb.unsupported.fine=true […]

Read More

List of JavaScript Functions Supported in qPDF Toolkit

List of JavaScript functions supported in qPDFToolkit: App Methods: alert beep Console Methods: println Doc Methods: calculateNow getField getNthFieldName Properties: calculate numFields URL Field Methods: buttonGetCaption buttonSetCaption clearItems deleteItemAt getArray getItemAt insertItemAt isBoxChecked setAction setItems Properties: borderStyle borderWidth calcOrderIndex charLimit comb commitOnSelChange currentValueIndices defaultValue delay display doc doNotScroll doNotSpellCheck editable exportValues fileSelect fillColor hidden lineWidth […]

Read More

v2016R1 PDF Library Build Notes

Below are the build notes for v2016R1 Fix Branch / Minor Releases for Qoppa’s PDF Library Products. Java PDF Libraries: jPDFProcess, jPDFAssemble, jPDFFields, jPDFImages, jPDFPrint, jPDFSecure, jPDFText 2016R1.16 – June 2 2017 JPDF-988 – IndexOutOfBoundsException due to GlyphVector storing multiple glyphs per character JPDF-978 – Added support for custom huffman tables in symbol dictionaries for […]

Read More

v2016R1 PDF Component Build Notes

Below are the release notes for the v2016R1 fix branch / minor releases for Qoppa’s PDF components. Java PDF Components: jPDFViewer, jPDFNotes, jPDFEditor 2016R1.19 – July 6 2017 JPDF-1028 – On certain conditions we can attempt to read past the end of file when using a URLOnDemandPDFSource 2016R1.18 – June 14 2017 JPDF-1016 – Document […]

Read More

Is there a way to get support for jPDFWriter?

Q: Do you offer support for jPDFWriter? A: There is no way to subscribe to a support contract for jPDFWriter. Since Qoppa Software team is interested in providing a good collection of Java sample programs that demonstrates the capabilities of jPDFWriter, we try our best to answer questions regarding the free library in this context. […]

Read More

Customizing icon sizes in Qoppa’s PDF Components

Q: Is it possible to customize the size of the icons (to make them smaller or larger) in Qoppa’s PDF components? A: Yes, Qoppa’s components ship with 4 different icons sizes: small, medium, large and extra large. Here is a sample code showing how to adjust the size of the component’s icons: // call this […]

Read More

Touch Mode in Qoppa’s PDF components for smaller / touch-enabled screens

Qoppa’s PDF viewing components (jPDFEditor, jPDFNotes, jPDFViewer) feature a Touch Mode that makes editing and annotating PDF documents more friendly on touch screen enabled laptops, PCs and tablets such as the Windows Surface Pro, Dell Venue 11, or Lenovo Yoga 3 Pro. This feature was added in v2016R1. What are the Touch Mode Features? Enlarged […]

Read More

Validate PDF compliance with sub-formats PDF/X-1a and PDFX-3

This is a sample showing how to validate a PDF document against PDF/X sub-format using Qoppa’s jPDFPreflight library. PDF/X is the format for Prepress Graphics File Interchange. Validate against PDF/X-1a:2001: PreflightResults results = pdfPreflight.verifyDocument(new PDFX_1a_2001(), null);PreflightResults results = pdfPreflight.verifyDocument(new PDFX_1a_2001(), null); Validate against PDF/X-1a:2003: PreflightResults results = pdfPreflight.verifyDocument(new PDFX_1a_2003(), null);PreflightResults results = pdfPreflight.verifyDocument(new PDFX_1a_2003(), null); […]

Read More

What are the PDF/A conversion options

When converting a document to PDF/A, the following changes are made to a document by default: Graphics will be converted to a device-independent format. If any device dependent color spaces are used, the corresponding color profile will be embedded. Non-embedded fonts will be embedded. Transparency will be removed. Unsupported annotations (e.g., video, audio, 3D) will […]

Read More

What are the PDF/A Validation and Conversion Results?

These are the validation results returned by Qoppa’s jPDFPreflight library. Items that are not PDF/A compliant and that can not be fixed by PDF/A conversion. Items that are not PDF/A compliant and that could be fixed by PDF/A conversion. Users have chosen to be warned about this item in PDF/A settings. Items that are not […]

Read More

What are the Workaround for Unsupported Features in PDF/A Conversion?

The following documents can not be converted to PDF/A: When the PDF document contains non-embedded, non standard system fonts, the library will try to find the font or a substitute font on the system and embed it. Sometimes the library may not find any adequate substitute font for embedding. The PDF document is secured / […]

Read More

Validate PDF compliance with sub-formats PDF/A-1b, PDF/A-2b, PDF/A-3b

This is a sample showing how to validate a PDF document against PDF/A sub-format using Qoppa’s jPDFPreflight library. PDF/A is the format for PDF for Long-term Preservation. Validate against PDF/A-1b: PreflightResults results = pdfPreflight.verifyDocument(new PDFA_1_B_Verification(), null);PreflightResults results = pdfPreflight.verifyDocument(new PDFA_1_B_Verification(), null); Validate against PDF/A-2b: PreflightResults results = pdfPreflight.verifyDocument(new PDFA_2_B_Verification(), null);PreflightResults results = pdfPreflight.verifyDocument(new PDFA_2_B_Verification(), null); […]

Read More

Sample Code to Convert PDF to PDF/A-1b, PDF/A-2b, PDF/A-3b

Here is a sample code to convert a PDF document to PDF/A using Qoppa’s jPDFPreflight library. If the conversion was successful, a success message is shown and the PDF-A compliant document is saved as output. If the conversion was unsuccessful, a failure message is shown and the original document is saved with annotations appended to […]

Read More

How to print PDF pages with a 180 degrees orientation with jPDFPrint

This Java sample shows how to use jPDFPrint printable to implements your own Printable interface which can be useful when you need a finer control over the printing of PDF pages. In this sample, we’re changing the rotation of the page printouts by -180 degrees. package jPDFPrintSamples;   import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.print.PageFormat; import […]

Read More

Extract Images from PDF Document using Java

Q: How can I export all the images contained in a PDF document? A: Here is a sample Java code to list all images embedded in a PDF document and save / export them using Qoppa’s jPDFProcess library. This example shows how to save the images in png format but it can simply be changed […]

Read More

List Resource Fonts in a PDF document

Q: How can I list all the resource fonts in a PDF document? A: Here is a sample Java code to list all fonts referenced in a PDF document using Qoppa’s jPDFProcess library. Some fonts may only be referenced by name and other fonts may be embedded in the document. In version v2016R1, a new […]

Read More

Rotate Pages in a PDF document using Java

This Java sample code will open a PDF and rotate each page of the document by a 180 degrees. It then prints and saved the rotated PDF document to a different file. This sample uses jPDFProcess, Qoppa’s Java PDF library to manipulate PDF documents. package jPDFProcessSamples;   import com.qoppa.pdf.PrintSettings; import com.qoppa.pdfProcess.PDFDocument; import com.qoppa.pdfProcess.PDFPage;   public […]

Read More

How to remove a button from the toolbar in QPDFNotesView or QPDFViewerView

Q: How can I remove the save button from the toolbar in QPDFNotesView? A: Please see the below sample code for removing the “save” button. The relevant line of code is below: qpdfNotesView.getToolbar().removeView(qpdfNotesView.getToolbar().getIbSave());qpdfNotesView.getToolbar().removeView(qpdfNotesView.getToolbar().getIbSave()); package com.qoppa;   import android.app.Activity; import android.os.Bundle; import com.qoppa.notes.QPDFNotesView;   public class RemoveSaveButtonActivity extends Activity { public QPDFNotesView qpdfNotesView;   protected void […]

Read More

2016-08 v2016R1 PDF Component Release Notes

Release Date: August 17 2016 Version number: v2016R1 Java PDF Components: jPDFViewer, jPDFNotes, jPDFEditor API Changes (from previous version) Note: There are quite a few API differences between this version and the previous one. One reason is that Qoppa’s libraries are now compiled in Java 6 and make use of Generics. The other reason is […]

Read More

2016-08 v2016R1 PDF Library Release Notes

Release Date: August 17 2016 Version number: v2016R1 Java PDF Libraries: jPDFProcess, jPDFAssemble, jPDFFields, jPDFImages, jPDFPrint, jPDFSecure, jPDFText API Changes (from previous version) Note: There are quite a few API differences between this version and the previous one. One reason is that Qoppa’s libraries are now compiled in Java 6 and make use of Generics. […]

Read More

2016-08 v2016R1 jPDFOptimizer Release & Build Notes

First Release Date: August 17 2016 Version number: v2016R1 Java PDF Library: jPDFOptimizer Note: There may be a few API differences between this version and the previous one because Qoppa’s jPDFOptimizer library is now compiled in Java 6 and make use of Generics. It is important to bring the new jars into your IDE and […]

Read More

2016-08 v2016R1 jPDFPreflight Release

Release Date: August 17 2016 Version number: v2016R1 Java PDF Library: jPDFPreflight jPDFPreflight JPDF-702 – Support for PDF/A-2b Verification and Conversion JPDF-703 – Support for PDF/A-3b Verification and Conversion JPDF-621 – Embed system fonts when converting PDF to PDF/A JPDF-711 – Demo Mode: Watermarks Added to Document are not compliant with PDF/A JPDF-802 – Updating […]

Read More

Reassembling a zip file that is split into multiple files

A: I received a PDF file sent over multiple zip files. How can I reassemble the zip files into one zip file? A: Assuming a zip file called file.zip was split into 3 different zip files: file.zip.001, file.zip.002 and file.zip.003, you can reassemble the original zip file by using the copy command. It is useful […]

Read More

Embed fonts when converting PDF to PDF/A

As of version v2016R1, Qoppa’s jPDFPreflight will try and embed fonts when converting PDF documents to PDF/A whenever possible. Font embedding is supported for: Non-embedded Standard 14 PDF fonts with MacRomanEncoding, No Encoding or WinAnsiEncoding. Non-embedded simple fonts with MacRomanEncoding or WinAnsiEncoding Non-embedded composite fonts (often CJK) using a predefined CMap encoding (other than Identity-H/V) […]

Read More

How to add a rubber stamp with preview to the existing stamp menu

Here is Java sample code to create a menu item that will display a preview of a rubber stamp and that can added to any JMenu. The method AnnotToolbar.createStampMenuItem to create this preview menu item was added in version v2016R1 of Qoppa’s PDF components jPDFNotes and jPDFEditor. try { // Create a menu item with […]

Read More

Remove Border around Pages in Qoppa’s PDF Components

Q: Is it possible to remove the black border around pages in Qoppa’s PDF component? See screenshot below. A: Yes, it is. See code sample below. Modifying the border we use on page view components can be done with an IPDFListener after the document is opened.  Also the documentChanged() method needs to  be overwritten to modify the […]

Read More