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:
Run barcode.fo Example in FOP
How to run the "barcode.fo" example in FOP to generated a PDF file?
✍: FYIcenter.com
FOP comes with an example XSL-FO file, barcode.fo,
which shows how to generate barcode images in PDF.
You can use the "fop" command to convert it into a PDF file:
fyicenter> cd \local\fop-2.x\fop fyicenter> fop -c examples\fo\advanced\bar.conf.xml examples\fo\advanced\barcode.fo \temp\carcode.pdf ... ... org.apache.fop.apps.FopConfParser configure INFO: Default page-height set to: 11in ... org.apache.fop.apps.FopConfParser configure INFO: Default page-width set to: 8.26in ... org.apache.fop.events.LoggingEventListener processEvent WARNING: Font "Symbol,normal,700" not found. Substituting with "Symbol,normal,400". ... org.apache.fop.events.LoggingEventListener processEvent WARNING: Font "ZapfDingbats,normal,700" not found. Substituting with "ZapfDingbats,normal,400". ... org.apache.fop.events.LoggingEventListener processEvent INFO: Rendered page #1. ... org.apache.fop.events.LoggingEventListener processEvent INFO: Rendered page #2.
The output PDF file is located at \temp\carcode.pdf.
Open it with a PDF viewer, you will see something like this:
Note that the K3.xml and K3.ttf path names need to be modified in the FOP configuration file bar.conf.xml. Also the K3.xml needs to be regenerated.
⇒ Convert Image to PDF with FOP
2016-07-03, 5013🔥, 0💬
Popular Posts:
Apache BCEL Source Code Files are inside the Apache BCEL source package file like bcel-6.5.0-src.zip...
MXP1 is a stable XmlPull parsing engine that is based on ideas from XPP and in particular XPP2 but c...
SLF4J API is a simple API that allows to plug in any desired logging library at deployment time. Her...
JDK 11 jdk.jshell.jmod is the JMOD file for JDK 11 JShell tool, which can be invoked by the "jshell"...
Java Cryptography Extension 1.2.2 JAR File Size and Download Location: File name: jce.jar, jce-1.2.2...