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:
Run SVG embedding.fo Example in FOP
How to run the SVG "embedding.fo" example in FOP to generated a PDF file?
✍: FYIcenter.com
FOP comes with an example XSL-FO file, embedding.fo,
which shows how to embed SVG images into PDF files.
You can use the "fop" command to convert it into a PDF file:
\fyicenter>cd \local\fop-2.2\fop \local\fop-2.2\fop>fop examples\fo\svg\embedding.fo \temp\embedding.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 WARNING: The contents of fo:instream-foreign-object line 1 exceed the available area in the inline-progression direction by 31763 millipoints. (See position 36:29) ... 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\embedding.pdf.
Open it with a PDF viewer, you will see something like this:
The same example is provided in FOP 2.2, 2.1, and 2.0.
Â
⇒ Run simplecol.fo Example in FOP
2016-07-03, 3195👍, 0💬
Popular Posts:
How to download and install JDK (Java Development Kit) 1.4? If you want to write Java applications, ...
Provides a simple high-level Http server API, which can be used to build embedded HTTP servers. Both...
commons-io-2.6-sources.j aris the source JAR file for Apache Commons IO 2.6, which is a library of u...
What Is HttpComponents httpcore-4.4.6.jar? HttpComponents httpcore-4.4.6.jar is the JAR file for Apa...
Apache Axis2 is the core engine for Web services. It is a complete re-design and re-write of the wid...