Call org.apache.fop.cli.Main in fop.jar
What is the main class in FOP JAR file to run FOP as an standalone application?
The main class to run FOP as an standalone application is org.apache.fop.cli.Main. "cli" is the abbreviation of "command line interface". Here is how to start org.apache.fop.cli.Main with the "java" command:
\fyicenter>cd \local\fop-2.2\fop \local\fop-2.2\fop>java -cp build\fop.jar org.apache.fop.cli.Main -imagein examples\fo\graphics\linux.bmp \temp\linux.pdf ... org.apache.fop.events.LoggingEventListener processEvent INFO: Rendered page #1.
The above command uses FOP to convert an image file in BMP format into a PDF directly.
The output PDF file is located at \temp\linux.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.
2015-11-26, 2095👍, 0💬
JDK 11 java.sql.jmod is the JMOD file for JDK 11 SQL (Structured Query Language) module. JDK 11 SQL ...
How to download and install ojdbc5.jar for Oracle 11g R1? ojdbc5.jar for Oracle 11g R1 is a Java 5 J...
What Is jms.jar? I heard it's related to JMS (Java Message Service) 1.1? The if you have an jms.jar ...
What Is HttpComponents commons-httpclient-3.1.j ar?HttpComponents commons-httpclient-3.1.j aris the ...
What Is Apache XMLBeans-2.6.0.zip file? Apache XMLBeans-2.6.0.zip file is the distribution package Z...