aboutsummaryrefslogtreecommitdiffstats
path: root/src/documentation
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2005-11-12 16:11:53 +0000
committerJeremias Maerki <jeremias@apache.org>2005-11-12 16:11:53 +0000
commit4ee4fd513a439608e2c20903c0ae4ce90a86720c (patch)
tree257455489b134e3e2963096596968402952cd19c /src/documentation
parentd3cd1774f44d017fe4456ac79dc89dc3e17b70ec (diff)
downloadxmlgraphics-fop-4ee4fd513a439608e2c20903c0ae4ce90a86720c.tar.gz
xmlgraphics-fop-4ee4fd513a439608e2c20903c0ae4ce90a86720c.zip
Documented new stuff.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@332795 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/documentation')
-rw-r--r--src/documentation/content/xdocs/trunk/embedding.xml6
-rw-r--r--src/documentation/content/xdocs/trunk/running.xml5
2 files changed, 7 insertions, 4 deletions
diff --git a/src/documentation/content/xdocs/trunk/embedding.xml b/src/documentation/content/xdocs/trunk/embedding.xml
index da16e44ca..2e77c11ab 100644
--- a/src/documentation/content/xdocs/trunk/embedding.xml
+++ b/src/documentation/content/xdocs/trunk/embedding.xml
@@ -53,12 +53,12 @@
</p>
<source><![CDATA[
import org.apache.fop.apps.Fop;
-import org.apache.fop.fo.Constants;
+import org.apache.fop.apps.MimeConstants;
/*..*/
// Step 1: Construct fop with desired output format
-Fop fop = new Fop(Constants.RENDER_PDF);
+Fop fop = new Fop(MimeConstants.MIME_PDF);
// Step 2: Setup output stream.
// Note: Using BufferedOutputStream for performance reasons (helpful with FileOutputStreams).
@@ -261,7 +261,7 @@ try {
</p>
<source><![CDATA[
FOUserAgent userAgent = new FOUserAgent();
-Fop fop = new Fop(Constants.RENDER_PS, userAgent);]]></source>
+Fop fop = new Fop(MimeConstants.MIME_POSTSCRIPT, userAgent);]]></source>
<p>
You can do all sorts of things on the user agent:
</p>
diff --git a/src/documentation/content/xdocs/trunk/running.xml b/src/documentation/content/xdocs/trunk/running.xml
index d91cde11b..3eccf6807 100644
--- a/src/documentation/content/xdocs/trunk/running.xml
+++ b/src/documentation/content/xdocs/trunk/running.xml
@@ -147,7 +147,10 @@ Fop [options] [-fo|-xml] infile [-xsl file] [-awt|-pdf|-mif|-rtf|-tiff|-png|-pcl
-at outfile representation of area tree as XML (outfile req'd)
-print input file will be rendered and sent to the printer
see options with "-print help"
-
+ -out mime outfile input will be rendered using the given MIME type
+ (outfile req'd) Example: "-out application/pdf D:\out.pdf"
+ (Tip: "-out list" prints the list of supported MIME types)
+
-foout outfile input will only be XSL transformed. The intermediate
XSL-FO file is saved and no rendering is performed.
(Only available if you use -xml and -xsl parameters)