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:
Transform XML to FO and Generate PDF with FOP
How to transform XML to FO and generate PDF with FOP?
✍: FYIcenter.com
FOP allows you to transform XML to FO and generate PDF output with a single command.
Here is how to do this:
fyicenter> cd \local\fop-2.x\fop fyicenter> fop -xml examples\embedding\xml\xml\projectteam.xml -xsl examples\embedding\xml\xslt\projectteam2fo.xsl -pdf \temp\projectteam.pdf 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.
The output PDF file is located at \temp\projectteam.pdf.
Open it with a PDF viewer, you will see something like this:
⇒ Run fop.jar in FOP as Executable
2018-04-28, ∼1698🔥, 0💬
Popular Posts:
Jetty provides an HTTP server, HTTP client, and javax.servlet container. These components are open s...
JDK 11 jdk.scripting.nashorn.jm odis the JMOD file for JDK 11 Scripting Nashorn module. JDK 11 Scrip...
JRE 8 rt.jar is the JAR file for JRE 8 RT (Runtime) libraries. JRE (Java Runtime) 8 is the runtime e...
How to run "jarsigner" command from JDK tools.jar file? "jarsigner" command allows you to digitally ...
What Is log4j-1.2.15.jar? I got the JAR file from apache-log4j-1.2.15.zip. log4j-1.2.15.jar is the v...