Invalid CMAP name when rendering or printing a PDF page
Q: When opening a PDF file, I get the following error: Error Rendering Page Invalid CMAP name: KSCms-UHC-H A: You are missing cmaps.jar in your classpath which contains CMaps, used to read and display...
View ArticleMaximum Page Size / Resolution when converting a PDF to TIFF
Q: We are trying to export a PDF to TIFF using jPDFImages and are getting a Negative Array Size Exception. What could be the issue? Sample Code: public static void testPDFToTiff() throws Exception{...
View ArticleExport / Convert PDF Pages to Thumbnail Images with Java
Here is Java sample code to export PDF pages to images in various formats: PNG, JPG and TIFF using Qoppa’s PDF library jPDFImages. When opening the PDF document, the sample below read the document from...
View ArticleOn using Java RenderingHints to smooth jagged edges on rotated images
Q: There seems to be some pixelation or resolution issue when rendering specific images in a PDF brochure. Is there anything that can be done to render these images more smoothly? A: Qoppa’s PDF...
View ArticleExport PDF to PNG Image with Overprint Simulation
This Java sample below shows how to use Qoppa’s jPDFImages (or jPDFProcess) to load a PDF and export it to an image in PNG format with overprint simulation on. First, the image is rendered in CMYK...
View ArticleHow to Resolve Error Rendering Page: Missing Font
When rendering a PDF document in the following Qoppa’s PDF library products: jPDFImages, jPDFPrint, jPDFProcess, jPDFViewer, jPDFNotes or jPDFEditor, you might encounter a blank page with an “Error...
View ArticleConvert 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...
View ArticleInvalid 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...
View ArticleGetting PDF page size information, converting from points to inches,...
In Qoppa’s PDF libraries, the page width and page height are returned in points at 72 dpi. Here are the simple formulas to convert the page size to inches, centimeters and millimeters. // open PDF...
View Articlejai 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:...
View Article