Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (322)
Collections:
Other Resources:
FOP Base-14 Fonts for PDF
What are Base-14 fonts supported in FOP for PDF?
✍: FYIcenter.com
FOP supports Base-14 fonts (required by all PDF viewers) for PDF output:
Here is how you can test this:
1. Create a FO file, base-14-fonts.fo:
<?xml version="1.0" encoding="utf-8"?> <!-- base-14-fonts.fo Copyright (c) 2018 FYIcenter.com --> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> <fo:simple-page-master master-name="myPage"> <fo:region-body margin="1in"/> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence master-reference="myPage"> <fo:flow flow-name="xsl-region-body"> <fo:block font-family="Helvetica">Helvetica: Welcome to jar.FYIcenter.com!</fo:block> <fo:block font-family="Times">Times: Welcome to jar.FYIcenter.com!</fo:block> <fo:block font-family="Courier">Courier: Welcome to jar.FYIcenter.com!</fo:block> <fo:block>Symbol: <fo:inline font-family="Symbol">Ω φ ≠</fo:inline></fo:block> <fo:block>ZapfDingbats: <fo:inline font-family="ZapfDingbats">✌ ✍ ❀</fo:inline></fo:block> </fo:flow> </fo:page-sequence> </fo:root>
2. Generate the PDF output from this FO file.
\local\fop-2.2\fop>fop \fyicenter\base-14-fonts.fo \temp\base-14-fonts.pdf org.apache.fop.events.LoggingEventListener processEvent INFO: Rendered page #1.
3. View the output PDF file, base-14-fonts.pdf, Adobe Acrobat Reader. Click "File > Properties" to open the properties screen. Then click the "Fonts" tab. You see the font information
Symbol Type: Type 1 Encoding: Built-in Actual Font: Symbol Actual Font Type: Type 1 ZapfDingbats Type: Type 1 Encoding: Built-in Actual Font: AdobePiStd Actual Font Type: Type 1 ...
The picture below shows you Base-14 fonts used in the PDF file generated from FOP:
This tutorial is valid in FOP 2.2, 2.1, and 2.0.
⇒ FOP Font Missing Glyph Error for PDF
⇐ What Are FOP Generic Font Families
2018-04-21, ∼2378🔥, 0💬
Popular Posts:
JAX-RPC is an API for building Web services and clients that used remote procedure calls (RPC) and X...
How to download and install ojdbc6.jar for Oracle 11g R2? ojdbc6.jar for Oracle 11g R2 is a Java 6, ...
JSP(tm) Standard Tag Library 1.0 implementation - Jakarta Taglibs hosts the Standard Taglib 1.0, an ...
JDK 1.1 source code directory contains Java source code for JDK 1.1 core classes: "C:\fyicenter\jdk-...
JDK 11 jdk.internal.vm.compiler .jmodis the JMOD file for JDK 11 Internal VM Compiler module. JDK 11...