Encrypt a PDF / Set Permissions with Mule ESB

Encrypt a Document / Set Permissions & Passwords The following workflow watches a folder for incoming documents, encrypts the document with a password and restricts permissions using Qoppa PDF Automation Server, and saves the document to an output folder. Download the Mule flow XML source: pas-encrypt.xml

Read More

Add a Watermark to PDF with Mule ESB

Add a Watermark The following Mule workflow watches a folder for incoming documents, adds a watermark to the documents using Qoppa PDF Automation Server, and saves them to an output folder. Download the Mule flow XML source: pas-addwatermark.xml

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

Third Party Libraries / Jars: Info and Download Links

These are all the third party libraries / jars that are used in Qoppa PDF library and component products. They will need to be added to your classpath for specific features to be supported. Library Description bcpkix-jdk14-154.jar, bcprov-jdk14-154.jar These jar files contain the Bouncycastle security libraries. They are used to verify and apply digital signatures, […]

Read More

Invalid colors for CMYK images when cmykProfile.jar missing in classpath

Update: As of version v2019R1, cmykProfile.jar is now packaged inside Qoppa’s library jars and no longer requires to be added to the classpath. When rendering or optimizing images with a CMYK color space (DeviceCMYK), Qoppa’s PDF libraries and components need the cmykProfile.jar to be present in the classpath. If you forget to include this jar, […]

Read More

Selecting an annotation on a page in Qoppa’s PDF components

Q: How can I select a given annotation on a page in jPDFViewer, jPDFNotes or jPDFEditor? A: You will need to work with the IAnnotationManager, which manages the selection cycle for annotations. IAnnotationManager annotmanager = viewerBean.getAnnotationManager();IAnnotationManager annotmanager = viewerBean.getAnnotationManager(); This interface manages the selection cycle for annotation components on a page and allows to programmatically […]

Read More

Different options to render and markup PDFs on Android and iOS

Q: What are the options to display / render PDF documents in Android using Qoppa’s PDF products? A: You may use a few of our products: PDF Automation Server: This is an easy to install server that can run on your web-server to convert PDF documents to HTML5 and serve them to any browser on […]

Read More

Clear and delete signature fields in a PDF document using Java

This is sample Java program showing how to clear and delete signature fields in a PDF using Qoppa’s PDF library jPDFProcess. The jPDFProcess’ public API does not give a direct access to deleting fields in a PDF, but when deleting widgets which are the annotation associated with a field on a PDF page, it will […]

Read More

Search Text and Add Text Highlights & Markups in a PDF document

This java sample shows how to search text in a PDF and add text highlights or text markup annotations (underline, strikeout, squiggly) on top of the text using Qoppa’s PDF library jPDFProcess. // Open the document PDFDocument inDoc = new PDFDocument ("c:/input.pdf", null);   // Loop through the pages, searching for text for (int pageIx […]

Read More

Convert PDF document to PNG image files

This java program uses Qoppa’s jPDFImages to convert a PDF to PNG image files. A PNG image is created for each page contained in the PDF document. // open PDF document PDFImages pdfDoc = new PDFImages ("C:\\myfolder\\input.pdf", null); // loop through pages for (int count = 0; count < pdfDoc.getPageCount(); ++count) { // convert current […]

Read More

Custom Job: Clear Digital Signatures in PDF

Here are the steps to create a custom job in Qoppa PAS that clears any signatures on the document. Make sure to change the output file path below. 1. Create a custom job through Qoppa Job Creator Wizard and open the job properties to edit the code section. 2. Replace the import section with the […]

Read More

Filling field data in a PDF form programmatically with Java

To fill in the fields with data, you can use the getField() method to get a field by field name and then use the setValue() method to set the data. To set values in combo boxes and list fields, use values from the field’s export options and not the display options. To save the PDF […]

Read More

Search text in a PDF and add hyperlinks on top of the text found

This Java sample shows how to search text in a PDF document and add link annotations (that go to a specific URL) on top of the text occurrences found. This sample uses Qoppa’s PDF library jPDFProcess. // Load the document PDFDocument pdfDoc = new PDFDocument ("C:\\myfolder\\input.pdf", null);   // this is my search label that […]

Read More

Pure PDF to HTML conversion versus PDF to SVG

Q: It seems that jPDFWEb is converting from PDF to SVG format and when choosing to save as HTML, jPDFWeb simply writes an HTML wrapper around the converted SVG format. Can jPDFWeb convert PDF documents directly to HTML without the use of SVG? jPDFWeb can not convert PDF to pure HTML commands. It has to […]

Read More

Search Labels and Redact Text in a PDF

This Java sample shows how to search a text label within a PDF document and then remove the text following that label. This is done by adding a redaction annotation and burning it which remove any content below the redaction annotation. This sample is using Qoppa’s PDF library jPDProcess In the sample code below, we’re […]

Read More

Setting relative size when converting PDF to SVG

As of v2016R2.05 of jPDFWeb, when converting a page to SVG, there are multiple zoom / sizing options for the output SVG file. These options determine how the SVG element will fit into a parent container: Normal zoom mode (this is the default mode) means that the scale remains the same when the viewer is […]

Read More

Convert PDF to HTML from PHP

To integrate Qoppa’s PDF library jPDFWeb with PHP, the simplest approach is to create a small command line application in Java that makes the appropriate calls to jPDFWeb, and then to call that application from your PHP scripts. Here is a sample command line interface (CLI) application on our website here: PDFWebCLI.java – The main […]

Read More

Extract Text from a PDF using Android Java

Sample Android program to extract text content from a PDF document as a String using Qoppa’s Android toolkit qPDF Toolkit. This program will extract the text from all pages of the PDF. //must be called before utilizing qPDF Toolkit StandardFontTF.mAssetMgr = getAssets();   //load the PDF document you want to extract text from File file […]

Read More

Convert DOCM files to PDF using jOfficeConvert

Q: Is it possible to convert DOCM Word files to PDF using jOfficeConvert? A: If you change the extension from docm to docx, Qoppa’s Java library jOfficeConvert will be able to open the Word files and convert them to PDF. DOCM files are similar to DOCX files, but they contain macros and VBA scripting. Like […]

Read More

Support for PDF Digital Signatures in HTML5 Viewer

Q: Do you support validating and applying digital signatures in your HTML5 PDF Markup Module? We need to add the ability to view and sign PDF documents from any browser and platform within our web-based application. A: The current version of Qoppa’s HTML PDF Viewer and Markup Module supports the validation and display of exiting […]

Read More

Deleting all bookmarks from a PDF document

To delete all bookmarks in a PDF document, simply create a new empty root bookmark. With jPDFProcess, use PDFDocument.createRootBookmark(); With jPDFAssemble, use PDFAssemble.createRootBookmark(); With jPDFEditor, use PDFEditorBean.getDocument().createRootBookmark(); Here is sample code to do so: // Load the document PDFDocument pdfDoc = new PDFDocument ("input.pdf", null); // Get the root bookmark, create one if necessary Bookmark […]

Read More