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 Rendering Page” displayed in red on a page. This error happens when there is an issue with a font within the PDF document. There are 2 possible […]
Category: Fonts
True Type Font Instructions used in CJK Fonts
Q: Does Qoppa’s PDF engine support true type font instructions when rendering CJK fonts? A: No, Qoppa’s PDF rendering engine does not support true type font instructions at the moment. What are font instructions? True type fonts sometimes have font instructions also called font hints. Font instructions can be used to: help render better some […]
CJK Substitute Fonts on Windows, Mac and Linux
Substitute Fonts Needed When Non-Embedded When a CJK font (or any other font type) is embedded within a PDF document, Qoppa’s PDF rendering engine will use this font to render the text in the document. This guarantees that the document will render the same regardless of the operating system. When rendering a PDF document where […]
Referenced CJK fonts in a PDF
“Referenced” describes any font that is not embedded in the PDF document. Referenced fonts can be identified in a PDF file through the Fonts tab of the Document Properties dialog – any referenced fonts will not have the text “(Embedded)” or “(Embedded Subset)” in that tab’s font list. Rendering PDF text for a referenced font […]
Finding and installing CJK fonts on Linux
Find and install CJK fonts There are two approaches for getting CJK fonts for a Linux system: a) the system package manager b) direct download from the Internet. With a GUI-based Linux package manager, searches such as “Chinese fonts” or “Chinese TrueType” will identify packages that install Chinese TrueType fonts. Follow the usual package manager […]
Standard 14 PDF Fonts
The standard 14 PDF fonts – that can be referenced by name in a PDF document – are: Times-Roman Times-Bold Time-Italic Time-BoldItalic Courier Courier Courier-Bold Courier-Oblique Helvetica® Helvetica®-Bold Helvetica®-Oblique Helvetica®-BoldOblique Symbol ZapfDingbats Note: Helvetica® is a trademark Monotype Imaging Inc.
Customizing CJK fonts
In version v2104R2 and higher, it is possible to overwrite the default CJK fonts (see Substitute CJK fonts on mac, Windows and Linux) and specify your own CJK fonts to use. The API for this feature is through calling a static method on the com.qoppa.pdf.PDFRenderHints class. public static void setCJKSystemFontName(int fontType, String fontFaceName)public static void […]