Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
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 (309)
Collections:
Other Resources:
Generate K3.xml Metrics File in FOP
How to generate K3.xml Metrics File in FOP? The k3.xml provided in FOP is outdated.
✍: FYIcenter.com
K3.xml is the font metrics file for displaying barcode images. The K3.xml provided in FOP is outdated. But we can regenerate it using the fop.jar:
fyicenter> cd \local\fop-2.x\fop fyicenter> copy examples\fo\advanced\K3.xml examples\fo\advanced\K3-original.xml fyicenter> set FOP_PATH=\local\fop-2.2\fop fyicenter> java -cp %FOP_PATH%\build\fop.jar; %FOP_PATH%\lib\xercesImpl-2.9.1.jar; %FOP_PATH%\lib\xalan-2.7.2.jar; %FOP_PATH%\lib\avalon-framework-4.3.1.jar; %FOP_PATH%\lib\commons-logging-1.0.4.jar; %FOP_PATH%\lib\commons-io-1.3.1.jar; %FOP_PATH%\lib\serializer-2.7.2.jar; %FOP_PATH%\lib\xmlgraphics-commons-2.2.jar org.apache.fop.fonts.apps.TTFReader -d examples\fo\advanced\K3.ttf examples\fo\advanced\K3.xml ... org.apache.fop.fonts.apps.TTFReader main INFO: TTF Reader for Apache FOP 2.2 ... org.apache.fop.fonts.apps.TTFReader main INFO: Parsing font... ... org.apache.fop.fonts.apps.TTFReader loadTTF INFO: Reading examples\fo\advanced\K3.ttf... ... org.apache.fop.fonts.apps.TTFReader loadTTF INFO: Font Family: [Keith Dimmock's 3 of 9 Barcode, New] ... org.apache.fop.fonts.apps.TTFReader constructFontXML INFO: Creating xml font file... ... org.apache.fop.fonts.apps.TTFReader main INFO: Creating CID encoded metrics... ... org.apache.fop.fonts.apps.AbstractFontReader writeFontXML INFO: Writing xml font file examples\fo\advanced\K3.xml... ... org.apache.fop.fonts.apps.TTFReader main INFO: This font contains no embedding license restrictions. ... org.apache.fop.fonts.apps.TTFReader main INFO: XML font metrics file successfully created.
⇒ Run barcode.fo Example in FOP
2016-07-03, 3678🔥, 0💬
Popular Posts:
What Is mail.jar of JavaMail 1.4.2? I got the JAR file from javamail-1.4.2.zip. mail.jar in javamail...
Apache Log4j IOStreams is a Log4j API extension that provides numerous classes from java.io that can...
JDK 11 jdk.httpserver.jmod is the JMOD file for JDK 11 HTTP Server module. JDK 11 HTTP Server module...
JDK 17 jdk.localedata.jmod is the JMOD file for JDK 17 Localedata module. JDK 17 Locale Data module ...
JDK 11 java.rmi.jmod is the JMOD file for JDK 11 RMI (Remote Method Invocation) module. JDK 11 RMI m...