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 […]
Category: jPDFPreflight: Validate Convert PDF/A, PDF/X
jPDFPreflight is a Java library to verify PDF/A and PDF/X compliance as well as convert PDF documents to PDF/A
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 […]
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 […]
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 […]
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, […]
Ignore existing metadata tags for version and conformance when verifying PDF/A documents
Normally when verifying that a PDF is PDF/A compliant, the verification process will check that the document has the correct conformance and version tags saved in the XML metadata of the document. We’ve been asked by customers to add an option in Qoppa PDF library jPDFPreflight to ignore these tags when verifying PDF/A documents. The […]
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 […]
Terminate the PDF preflight verification / conversion process depending on the problem(s) found
This sample Java code using jPDFPreflight shows how to cancel the verification process once a failure of verification is found. The com.qoppa.pdfPreflight.PDFPreflight interface gives access to a class called ResultRecord that contains a lot of information about the issue found. So it is possible to adapt this sample to cancel the verification or conversion process […]
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.
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); […]
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 […]
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 […]
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 / […]
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); […]
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 […]
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 […]
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) […]
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 […]