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

List image properties of image contained in a PDF (color space, compression, width, height, etc…)

This sample code list the properties of all the images present in a PDF document such as image width, height, compression, color space, num components and bits per component: PDFDocument pdfDoc = new PDFDocument ("c:/test20.pdf", null); List<? extends IImageResource> imageList = pdfDoc.getResourceManager().listImages(); for (IImageResource image : imageList) { System.out.println(image.getWidth() + " x " + image.getHeight()); […]

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

OCR Language Download Links

OCR Language Download Links Afrikaans Albanian – shqip Arabic – العربية Azerbaijani – azərbaycan Basque – euskara Belarusian – беларуская Bengali – বাংলা Bulgarian – български Catalan – català Cherokee – ᏣᎳᎩ ᎦᏬᏂᎯᏍᏗ Chinese (Simplified) – 中文简体中文 Chinese (Traditional) – 中文繁體 Croatian – hrvatski Czech – čeština Danish – dansk Estonian – eesti Galician – galego Greek – Ελληνικά Hebrew – עברית Hindi […]

Read More