The most common CMaps are packaged directly into our library jars, including: 83pv-RKSJ-H, 90msp-RKSJ-H, 90ms-RKSJ-H, 90ms-RKSJ-V, B5pc-V, CNS-EUC-H, CNS-EUC-V, GB-EUC-H, Identity-H, Identity-V, KSC-EUC-H, KSC-EUC-V, KSCpc-EUC-H. Additional CMaps, used to read and display character encodings in CJK (Chinese, Japanese, Korean) fonts are contained in the cmaps.jar filest. This jar file should be included in your classpath when you need to render PDF documents containing these type of fonts. The PDF reference (Chapter 4.6.4 CMaps) […]
All posts by admin
OCR Languages Download Links
OCR Language Download Links Required Data File for All Languages Orientation and script detection Common Languages English – English French – Français German – Deutsch Spanish – Español Italian – Italiano Chinese (Simplified) – 中文简体中文 Chinese (Traditional) – 中文繁體 All Other Languages – This file contains all the languages available (large file) tessdata_fast.zip
Self-hosted Web Document Viewer to Display PDF, Word, Excel
Do you need to create your own self-hosted document viewer? Does your company handle confidential documents? Do you need to keep control of your documents? Do you need to be able to access your own document storage or database? Do you need to render PDF documents and Microsoft Office documents in the browser on all […]
2017R1 PDF Automation Server Release
Download PDF Automation Server v2017R1 Version 2017R1 – September 14 2017 This version of PDF Automation Server adds new features to the Web PDF Viewer & Markup and to the REST API including: Interactive Form Filling, Redaction, Text Markups, Rubber Stamps, and Drag & Drop to Rearrange Pages. The new version also includes all parsing and […]
Troubleshooting PAS REST Server Connection Issues
Q: When I try to connect to the PDF Automation Server Rest Module I get an error saying “This site cannot be reached”. How can I fix this? A: Follow the troubleshooting steps below to get connected to your server Make sure the PAS service is running First check to make sure that the server […]
Retrieving signature information from a signed PDF
This java sample program shows how to open a signed PDF and retrieve signature information from it such as signer’s name, sign reason, location, date, etc…. This sample uses Qoppa’s Java PDF Library jPDFSecure but can be easily changed to use jPDFProcess. // Load the signed document PDFSecure pdfDoc = new PDFSecure ("C:\\test\\output.pdf", null); if(pdfDoc.getSignatureFields() […]
Signing a PDF with a p12 file in Java
This is a sample java program showing how to sign a PDF document using a certificate loaded from a p12 file. The signature appearance is customized with an image, signer’s name and date. A signature field is added to the PDF document and then signed. This code uses jPDFSecure library but could very easily be adapted […]
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, […]
v2017R1 PDF Library PDF Component Build Notes
Below are the build notes for v2017R1 Fix Branch / Minor Releases for the following Qoppa PDF libraries and components. Java PDF Components: jPDFViewer, jPDFNotes, jPDFEditor Java PDF Libraries deriving from jPDFProcess: jPDFProcess jPDFAssemble, jPDFFields, jPDFImages, jPDFPrint, jPDFSecure, jPDFText Version v2017R1.20 – August 16 2018 JPDF-1272 – Document Specific: Out of Memory error when flattening a form with thousands […]
2017-08 v2017R1 PDF Library PDF Component Release Notes
Release Date: August 01 2017 Version number: v2017R1 Java PDF Components: jPDFViewer, jPDFNotes, jPDFEditor API Changes (from previous version) Java PDF Libraries deriving from jPDFProcess: jPDFProcess jPDFAssemble, jPDFFields, jPDFImages, jPDFPrint, jPDFSecure, jPDFText API Changes (from previous version) Other Java PDF Libraries: jPDFOptimizer, jPDFPreflight, jPDFWeb Feature Highlights 4K High Resolution Display Support Annotations Rich Text & Multi-Language Support Page Labels Resize PDF […]
Getting optimization results programmatically when optimizing a PDF file in Java
When running Qoppa Java PDF library jPDFOptimizer to optimize a PDF document and reduce its file size, it is possible to get optimization results of all performed functions as an object called OptimiseResults which allows to programmatically analyze the results and/or output them to a console or to an XML file. Output Optimizer Results to […]
Setting Page Labels in a PDF document
With version v2017R1, jPDFProcess API has a new function to set page labels in a PDF documents. Look at the method called setPageLabels in the PDFDocument class. setPageLabels(int[] indices, String prefix, String style, int offset) throws PDFException Sets a page label to identify each page visually on the screen or in print. Consecutive pages create a labeling range using […]
Auditing a PDF for Optimizing (Analyze Objects and Sizes)
Before optimizing a PDF file, it can be useful to audit the PDF to identify what objects are present in the PDF (such as images, fonts, document info, bookmarks, links, content streams, etc…) and what significant is their size in the document. In v2017R1, jPDFOptimizer added an audit function to do just this. // Load […]
Add a PAdES signature to a PDF document using Java library jPDFSecure, jPDFProcess
PDF 2.0 defines a new filter (Adobe.PPKLite) and sub-filter (ETSI.CAdES.detached) for PAdES signatures, which are compliant with the European eIDAS regulation. Support for PAdES was added in v2017R1 of Qoppa’s Java PDF libraries. This sample shows how to add a PAdES signature to a PDF document using Qoppa’s Java PDF library jPDFSecure. It is easy […]
Scaling your Java Application for 4K High DPI Displays support on Mac, Windows, Linux
4k support in Qoppa PDF Components In version v2017R1, support for 4K monitors was added in Qoppa PDF components jPDFViewer, jPDFNotes and jPDFEditor. The user interface was completely revised to support 4k HiDPI Display monitors with automatic DPI scaling for all dialogs and toolbars as well as newly designed vector icons that render crisp at any resolution. Customers integrating […]
Imposition of PDF pages using Java library jPDFProcess
This sample will open an existing PDF document, reorganize pages by putting 4 pages of any size onto one single page in letter format (8.5 x 11) and save them as a new PDF document. The pages are organized sequentially in 2 columns and 2 rows, called a sequential imposition layout. // Load document PDFDocument srcDoc = […]
How to resize pages in a PDF document with Java library jPDFProcess
Starting with v2017R1, Qoppa Java PDF library jPDFProcess offers an API to easily resize or change page sizes in a PDF document. The resize options are as follow: Media Box – new media box for the PDF Page. Center – option to center the page contents in the new media box (off by default) Auto […]
How to print a PDF document in the Browser from a Web application
Q: We have a Web application that needs to print PDF documents from the browser without downloading them. What Qoppa product should we be looking at? A: You can use our Java library called jPDFWeb on your server to convert PDF documents into HTML. The HTML can then be printed on the client using any […]
Error handling versus exception thrown when rendering PDF pages in jPDFImages and jPDFPrint
When rendering pages in a PDF document, jPDFPrint and jPDFImages may run into errors. In this case, the libraries will render the page with a red X drawn across the page, together with a message explaining what failed, such as “Error Handling Page: Missing Font”. Customers can choose to throw an exception instead, if they […]
jai image jars are not loading on some J2EE servers (need to scan for plugins)
Q: Even after adding the jai_imageio.jar and jai_codec.jar in the classpath, I am still getting an error when trying to save as Tiff and getting the “No TIFF Writers Available” exception. Any idea? A: There are some J2EE servers (such as Websphere?) that do not find ImageIO plugins automatically. Try any of the 2 calls […]
How to add additional languages to PDF Automation Server (including non-Latin, CJK)
PDF Automation Server v2017R1 added support for non-Latin and CJK languages as well as new Latin languages. Click here for the Download Links for OCR Languages. In order to use the new OCR language packs, they have to be manually installed on the server by following the directions below: Import additional languages into PDF Automation Server […]
Java 9+ Support in Qoppa’s Java PDF Libraries and Components
Q: Are Qoppa’s libraries and components Java 9 compliant? A: Qoppa’s latest library and component tools version (v2018R1) released in August 2018 is fully compatible with Java 9, Java 10 and Java 11. Java 9 was officially released by Oracle on September 21 2017.
Paint / print a panel and other Swing components to a PDF document
You can use the free library jPDFWriter to print or paint a JPanel and other Swing components to a PDF document. Here is sample java code to do so: public class PrintPanelToPDF implements Printable { public static void main (String [] args) { try { // create a PDF Printer Job PDFPrinterJob printer = (PDFPrinterJob)PDFPrinterJob.getPrinterJob […]
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 […]
PDF Automation Server now available on Amazon AWS marketplace
Qoppa’s PDF Automation Server is now available on the Amazon AWS marketplace making it easy for companies to automate their document workflows in the cloud! The powerful server can be up and running in just a few clicks, letting users define their own workflow jobs and making calls to upload and process documents through REST calls. Download […]
Check if a PDF file contains any text content
Here is a Java sample program that uses Qoppa’s jPDFText library to determine if a PDF file contains any text content. The method “findTextInPDF” will return true of text was found on any page in the PDF, false if no text was found on any page. public static boolean findTextInPDF(String absoluteFilePath) throws PDFException, FileNotFoundException, IOException […]
Embed a font in a PDF and write text content with the new font
This little sample code shows how to add a font to a PDF document and than add some text content to the PDF using this newly embedded font, using Qoppa’s PDF library jPDFProcess. // Create a blank document and add a page PDFDocument pdf = new PDFDocument(); PDFPage newPage = pdf.appendNewPage(8.5 * 72, 11 * […]
Two ways to add a barcode to a PDF document in Java using jPDFProcess
You can add barcodes to PDF documents with jPDFProcess in a couple of ways: You can use a barcode font, a font whose characters look like the barcode, and then add text to the document using this font. When the document is displayed, it will show the barcode (drawn using the font), and will have […]
Validate keys and get server information for combined jars
If you have a special combined build jar with multiple products you will need to validate the license for each product in the combined jar. Follow the steps below to get the version info and/or validate the license keys for the combined jar files. The below examples are for the jPDFProcess and jWordConvert combined jar. However, the […]