Resolve Error “JCE Provider does not support SHA hash algorithm”

Q: I am building a web application to sign a PDF document with a given .pfx key store. I am running Spring Boot and using Qoppa’s PDF library jPDFSecure. I am getting an exception which states “JCE Provider does not support SHA hash algorithm”. How can I resolve this error? com.qoppa.pdf.PDFException: JCE Provider does not […]

Read More

Java Sample Code to Recognize (OCR) and Add Text to a PDF Document

Here is a simple small Java program that uses Qoppa’s PDF library jPDFProcess and the Tesseract libraries to recognize text in a PDF and add it as invisible text on each PDF page: // Load a PDF that contains scanned pages needing to be OCRed PDFDocument pdfDoc = new PDFDocument("C:/test/test.pdf", null); // initialize the OCR […]

Read More

Clearing out a job’s working files in PDF Workflow Module

Qoppa PDF Automation Server Workflow Module will keep files that are being processed in a working folder, so that the server can resume file processing after it is stopped and restarted. Sometimes, you might need to clear a file from the working folder for a given job. You can find the instructions below. Working files […]

Read More

Setup the PAS REST Service to use Alfresco Document Storage

Starting with the 2018R2 release the PAS REST module comes with built in integration with the Alfresco Document Management server. This integration allows the PAS REST service to provide permission based access at the user level to documents. Note: the Alfresco storage integration is only available for the PAS REST services NOT the Automation Server. […]

Read More

IDs and class names in SVG Element Structure

Starting with v2018R1, when converting from PDF to SVG using jPDFWeb, the library will used the following standardized names for IDs and class names in the SVG output for clarity. The new SVG element structure looks like this: <svg id=”qoppa_document” … > # Top level SVG element that holds the document <g id=”qoppa_viewxform” … > […]

Read More

Sample Postman request to add a new page to a PDF

Here is a sample Postman sample showing how to add a new page to a PDF using Qoppa PDF REST API. The width and height are defined in points at 72 DPI so an 8.5 inches x 11 inches page are defined as 612 x 792. It’s a form data that is being sent with one […]

Read More

Sample Java Program to Print to a given printer

This is a sample Java program to check Java printer connections on your machine. It will print a page with a yellow image on it to the first print service found. package test;   import java.awt.Color; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.image.BufferedImage; import java.awt.print.PageFormat; import java.awt.print.Printable; import java.awt.print.PrinterException; import java.awt.print.PrinterJob; import javax.print.PrintService;   public class […]

Read More

Crop pages in a PDF using Java PDF library jPDFProcess

This is a sample Java program showing how to crop a page in Java using Qoppa’s PDF library jPDFProcess. This small snippet shows how to open a PDF, get the first page, set a new crop box and save the cropped PDF to a new file name.   // Open PDF file PDFDocument pdfDoc = new […]

Read More