PDF/UA Validation Java Sample

This is a Java sample program using Qoppa’s PDF Preflight library jPDFPreflight. It opens PDF, validates against the PDF/UA sub-format (ISO 14289), then adds annotations on the PDF where errors are found and attaches a Preflight validation report at the end of the PDF and saves it as a new file. Note: This PDF/UA verification […]

Read More

Extract XML invoice data file from ZUGFeRD PDF invoice

A ZUGFeRD invoice data is saved in xml format within a PDF document as a file attachment so that it can be programmatically parsed and processed. Qoppa’s PDF library jPDFProcess allows to extract the xml file. Here is some sample code to extract the ZUGFeRD xml file contained in a PDF and save it to […]

Read More

CharSet and CIDSet Verification in PDF/A-1 and PDF/A-2

Here is technical information about how Qoppa’s PDF library jPDFPreflight validates CharSet and CIDSet when checking against PDF/A-1 and PDF/A-2 standards. The PDF technical specs are very ambiguous on this subject. We reviewed the PDF Association technote which reads on page 22: “Requirements on the use of CharSet and CIDSet entries in font dictionaries of […]

Read More

How to add a ZUGFeRD invoice to a PDF document in Java using jPDFProcess

As of v2017R1.04, Qoppa’s Java PDF library jPDFProcess supports adding an electronic invoice in ZUGFeRD format to a PDF document as an XML file attachment or embedded file. Sample Java program showing how to attach an XML ZUGFeRD invoice to a PDF document using jPDFProcess: // Load the PDF document PDFDocument pdfDoc = new PDFDocument […]

Read More

Digital signatures and PDF/A compliance

Converting to PDF/A an existing Signed Document It is not possible to convert an existing PDF document that is already signed to PDF/A. This is because any changes that you make to a PDF even if it’s only adding PDF/A tags information in the metadata would invalidate the signature. If your PDF is already signed, […]

Read More

Create, Merge and Convert PDF documents with Mule in an automated Worklow

Qoppa’s Java PDF libraries can be used within Mule ESB to automate PDF document processes within a workflow. PDF files can be transmitted as an input stream to any of our Java libraries. Follow the detailed steps showing how to integrate Qoppa’s PDF library jPDFProcess within a Mule flow. The following PDF functions available in […]

Read More

jPDFPreflight Java API

Q: Where can I find jPDFPreflight javadoc API? A: You can find the API specification for the latest version of our library jPDFPreflight on our website at this link. jPDFPreflight is a java library to validate PDF documents against sub-format such as PDF/A and PDF/X as well as convert them to the sub-format.

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

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

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

Java library to verify PDF/A compliance and convert PDFs to PDF/A

Qoppa’s jPDFPreflight is a Java API for PDF/A verification and conversion to PDF/A.  It provides PDF/A preflight and compliance verification as well as the ability to save / convert files in the PDF/A format. Download and try our demo application!   What is PDF/A? PDF/A is a strict subset of the ISO PDF specifications which […]

Read More