Categories:
Audio (13)
Biotech (29)
Bytecode (35)
Database (77)
Framework (7)
Game (7)
General (512)
Graphics (53)
I/O (32)
IDE (2)
JAR Tools (86)
JavaBeans (16)
JDBC (89)
JDK (337)
JSP (20)
Logging (103)
Mail (54)
Messaging (8)
Network (71)
PDF (94)
Report (7)
Scripting (83)
Security (32)
Server (119)
Servlet (17)
SOAP (24)
Testing (50)
Web (19)
XML (301)
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.2\fop \local\fop-2.2\fop>copy examples\fo\advanced\K3.xml examples\fo\advanced\K3-original.xml \local\fop-2.2\fop>set FOP_PATH=\local\fop-2.2\fop \local\fop-2.2\fop>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.
The same example is provided in FOP 2.2, 2.1, and 2.0. But you need to change dependent JAR file versions accordingly.
Â
⇒ Run barcode.fo Example in FOP
2016-07-03, 3285👍, 0💬
Popular Posts:
JAX-WS is an API for building web services and clients. It is the next generation Web Services API r...
What Is mail.jar of JavaMail 1.4.2? I got the JAR file from javamail-1.4.2.zip. mail.jar in javamail...
GJT (Giant Java Tree) implementation of XML Pull Parser. JAR File Size and Download Location: File n...
What JAR files are required to run dom\Counter.java provided in the Apache Xerces package? You can f...
How to download and install ojdbc6.jar for Oracle 11g R2? ojdbc6.jar for Oracle 11g R2 is a Java 6, ...