You can allocate more memory to any of Qoppa’s PDF Libraries Demo Application by editing the file that ends with a “vmoptions” extension in the installation folder of the Application. For instance, to allocate more memory to Qoppa’s Demo Application for jPDFOptimizer library, go to the installation folder “C:\Program Files\jPDFOptimizer-v2017R1” (On Windows) and edit the […]
All posts by admin
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 […]
File attachments handling in attachment pane in Qoppa PDF components
Qoppa’s PDF Swing components jPDFViewer, jPDFNotes and jPDFEditor have a side tab / pane that will show all file attachments that were added to a PDF document. Handling of File Attachments When double-clicking on one of the file attachment, Qoppa’s PDF components will by default handle the documents in the following way: PDF documents will […]
Add a header image logo to an existing PDF
Here is a sample java program showing how to open a PDF, add a company logo image at the top of each page, then save the document using Qoppa’s PDF library jPDFProcess. // Load document PDFDocument pdfDoc = new PDFDocument ("C:\\myfolder\\input.pdf", null); // Load foreground image BufferedImage logoImage = ImageIO.read(new File("C:\\myfolder\\logo.jpg")); for (int […]
Rest API PDF/A PDF/X Conversion and Verification
Convert a PDF to PDF/A (Profiles supported: pdfa1b, pdfa2b, pdfa3b) POST http://{host}:{port}/qoppapdf/v1/documents/mydir/mydoc.pdf (sample JSON in message body) { “PDFAConvertAction”:{ “profile”: “pdfa1b”, “unsupportedAnnots”: 1, “embeddedFiles”: 1, “transparency”: 1, “appendReport”: true, “addAnnots”: true, “savePath”: “mydoc_converted.pdf” } } PDF/A Verification (Profiles supported: pdfa1b, pdfa2b, pdfa3b, pdfa1a, pdfa2u, pdfx1a2001, pdfx1a2003, pdfx32002, pdfx32003) GET http://{host}:{port}/qoppapdf/v1/documents/mydir/mydoc.pdf/preflight-results?profile=pdfa1b
GradientPaint and TexturePaint supported when creating PDFs with jPDFWriter
Qoppa PDF Library jPDFWriter defines a PDFGraphics class which extends Java Graphics2D. Many of the Graphics2D functions are supported (though not all), allowing users to get a graphics object from a PDF page (calling page.createGraphics()) and then drawing onto the page in the same way you would draw to Graphics2D. Graphics2D has a setPaint() method […]
JVM crash on Graphics2d.draw(Shape) / Recursive PathDasher.appendCubic
Today one of our customer ran into a known JVM bug when trying to render a PDF document that crashed the JVM using our PDF library jPDFProcess … The bug is reproducible always but we had to run the same sample many times before we were able to get Java to create an hs_err_pid.log file […]
JVM crash due to call to kcms.CMM.cmmColorConvert
Q: On a very specific PDF, our JVM crashes when converting PDF to images using Qoppa’s PDF library jPDFProcess. We’re running Java 1.7. This is a part of the hs_err_pid.log file. Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) J 6438 sun.java2d.cmm.kcms.CMM.cmmCombineTransforms([Lsun/java2d/cmm/kcms/ICC_Transform;Lsun/java2d/cmm/kcms/ICC_Transform;)I (0 bytes) @ 0x00007ffff3fa6243 [0x00007ffff3fa61e0+0x63] J 5050 C2 java.awt.image.ColorConvertOp.updateBITransform(Ljava/awt/color/ICC_Profile;Ljava/awt/color/ICC_Profile;)V (275 bytes) @ 0x00007ffff3ac2254 […]
Extracting fields data and positions from invoices and statements using jPDFText
With Java PDF library jPDFText, you can obtain strings and positions from invoices and statements using the PDFText.getLinesWithPosition method. Knowing the rectangular coordinates and location of each text string allows you to do content analysis of the invoice or statement and get data values for specific fields such as invoice date, customer name, customer address, […]
Create a PDF with text and image using Free Java jPDFWriter library
This sample java program uses jPDFWriter to create a new PDF file, add a page to it and draw an image and text on the page. // create document PDFDocument pdfDoc = new PDFDocument (); // create a PageFormat of standard letter size // with no margins Paper p = new Paper (); p.setSize(8.5 […]
Convert .dotx files to PDF in Java using jOfficeConvert
Q: Can Qoppa’s Java library jOfficeConvert open and convert .dotx files to PDF? A: Yes. dotx files are template files created by Microsoft’s Word processing programs. They are saved in the same XML format as the docx Word files but are named with a dotx extension to signify that they are templates.
v2017R1 PDF Automation Server Build Notes
Below are the build notes for v2017R1 Fix Branch / Minor Releases for Qoppa’s PDF Automation Server. Download PDF Automation Server v2017R1 Version v2017R1.05 & v2017R1.06 – December 23 2017 PAS-356 – Web PDF Markup: Annotations broken in EDGE PAS-355 – REST API: All Permissions: Add Signature Permissions to Response PAS-348 – REST API: Add […]
Upgrading from jWordConvert to jOfficeConvert
jWordConvert is now jOfficeConvert and now includes our new Excel to PDF feature! With the addition of the new Excel to PDF feature, jWordConvert is now jOfficeConvert. Our pricing model for jOfficeConvert (formerly jWordConvert) has changed to cover the cost of the new Excel to PDF feature. The new price, which will include both Word to PDF and Excel to […]
How to follow Qoppa and stay updated about latest product releases
Q: Is there any notification or newsletter sent out to existing customers regarding updates and new product releases? A: At the moment, Qoppa does not send out a newsletters to existing users or customers. However, we do announce new releases through social media, and customers can subscribe or like our pages to receive these notifications: […]
v2017R1 jOfficeConvert Build Notes
Below are the build notes for v2017R1 Fix Branch / Minor Releases for Qoppa’s PDF Library jOfficeConvert. Download 2017R1 Builds Version v2017R1.07 – July 13 2018 JOFFICE-406 – Word spacing in converted text for Time New Roman font on Linux Version v2017R1.06 – June 2 2018 JOFFICE-404 – Document Specific: Fix infinite loop when converting […]
Setting View Mode for Android PDF Viewer QPDFViewerView
The view mode can be set at the time the QPDFViewerView is constructed. See below sample for how to set it initially, it is not possible to change it while viewing a document with our current API. If the view mode is null, QPDFViewerView.VIEW_MODE.VERTICAL_CONTINUOUS is used. package com.qoppa; import android.app.Activity; import android.os.Bundle; import […]
v2017R1 jPDFOptimizer Build Notes
Below are the build notes for v2017R1 Fix Branch / Minor Releases for Qoppa’s PDF Library jPDFOptimizer. Download 2017R1 Builds Version v2017R1.04 – March 23 2018 JPDF-1171 – Duplicate images were not always removed / merged correctly when optimizing Version v2017R1.03 – February 13 2018 JPDF-1151 – Corrupted image (displayed with an X) when optimizing […]
v2017R1 jPDFPreflight Build Notes
Below are the build notes for v2017R1 Fix Branch / Minor Releases for Qoppa’s PDF Library jPDFPreflight. Download 2017R1 Builds v2017R1.13 – June 19 2018 JPDF-1225 – Old version of Tahoma.ttf is not embeddable for PDF/A conversion – Reinterpret embeddable permission when multiple bits set v2017R1.12 – May 24 2018 JPDF-1206 – Fix for ConcurrentModificationException […]
v2017R1 jPDFWeb Build Notes
Below are the build notes for v2017R1 Fix Branch / Minor Releases for Qoppa’s PDF Library jPDFWeb. Download 2017R1 Builds Version v2017R1.04 – April 21 2017 JPDF-1189 – Implement Gouraud Freeform gradients Version v2017R1.03 – March 27 2017 JPDF-1172 – Not handling color spaces and bits per pixel correctly in JPEG 2000 images Version v2017R1.02 […]
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 […]
Excel to PDF Conversion Options
When converting an Excel spreadsheet to PDF using jOfficeConvert, there are a few options that can be set through the ExcelConvertOptions class: Option to create a bookmark for each worksheet Option to set the layout of the page (fit to page, width or height) Option to set a maximum number for the output PDF Here […]
Alternative to discontinued Crocodoc to view and annotate documents
Box has announced that they will soon discontinue the Crocodoc service that they acquired 3 years ago. “We will end-of-life (EOL) Crocodoc and the legacy Box View API services on January 15, 2018. For customers looking for an alternative, Qoppa Software is offering its Web PDF Markup module that comes packaged with Qoppa PDF Automation […]
Convert an Excel worksheet to a Tiff Image in Java using jOfficeConvert
This Java sample program uses jOfficeConvert to convert an Excel spreadsheet to a multi page Tiff image. // Load the document ExcelDocument ed = new ExcelDocument("input.xlsx", new ExcelConvertOptions()); // Save the document as a multi-page TIFF file ed.saveDocumentAsTIFF("output.tif", new TIFFOptions(150, TIFFOptions.TIFF_FAX_GROUP4));// Load the document ExcelDocument ed = new ExcelDocument("input.xlsx", new ExcelConvertOptions()); // Save the […]
Print an Excel spreadsheet in Java using jOfficeConvert
jOfficeConvert allows to print an Excel spreadhsheet and send it either to the default printer or to a named printer. // Load the document ExcelDocument ed = new ExcelDocument("input.xlsx", new ExcelConvertOptions()); // Print to the default printer ed.printToDefaultPrinter(null); // Print to a named printer ed.print("my printer", null);// Load the document ExcelDocument ed = […]
Sample Java code to convert Excel to PDF using jOfficeConvert
To convert an excel spreadsheet to PDF using Qoppa’s library jOfficeConvert, it takes only 2 lines of code: // Load the document ExcelDocument excelDoc = new ExcelDocument("input.xlsx", new ExcelConvertOptions()); // Save the document as a PDF file excelDoc.saveAsPDF("output.pdf");// Load the document ExcelDocument excelDoc = new ExcelDocument("input.xlsx", new ExcelConvertOptions()); // Save the document as a […]
Difference between PKCS11 and PKCS12
Though the names are very similar, PCKS11 and PKCS12 are actually defining 2 very different things and this can create some confusion. PKCS11 is a protocol used to access hardware encryption devices such as USB tokens, smart card or vaults (such as Azure Vault). Keystore API in Java allows to abstract access to the PKCS11 […]
Determine if text search occurrences in a PDF are visible on the displayed page / within the cropbox
As of v2017R1, the text position objects returned when searching text through a PDF document using Qoppa PDF library jPDFProcess (using PDFPage.findText() method), are given in cropbox coordinates (i.e in view or display coordinates when the page is displayed on the screen). For most PDF documents, media box and crop box are the same. But […]
v2017R1 jOfficeConvert Release
Version: v2017R1 Original Release Date: September 14 2017 PDF Library: jOfficeConvert Download 2017R1 Builds This version includes all fixes and improvements added to Qoppa’s PDF parsing and rendering engine, jPDFViewer v2017R1. Information for existing jWordConvert Customers jWordConvert evolved into jOfficeConvert, which can not only convert Word to PDF but also Excel to PDF. Existing jWordConvert customers […]
Transform from view coordinates to PDF coordinates to take into account cropbox and rotation on a PDF page
Q: When I add text markup annotations at the location returned by findText(), sometimes, the location of the text markup is off. This seems to happen when the PDF is cropped or rotated. Can you explain how to fix this? A: When a page has a rotation or a crop box, PDF coordinates and display […]
Convert Microsoft Excel to Adobe PDF in Java
Released September 2017! Qoppa Software library jOfficeConvert is a 100% Java library which can render Excel Spreadsheets (xlsx), convert Excel Spreadsheets to PDF or to images. jOfficeConvert can also render and convert Microsoft Word Documents (*.doc, *.docx) to PDF or images. Try Excel to PDF Conversion Now!