You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by je...@apache.org on 2005/11/12 17:11:58 UTC

svn commit: r332795 - in /xmlgraphics/fop/trunk/src/documentation/content/xdocs/trunk: embedding.xml running.xml

Author: jeremias
Date: Sat Nov 12 08:11:53 2005
New Revision: 332795

URL: http://svn.apache.org/viewcvs?rev=332795&view=rev
Log:
Documented new stuff.

Modified:
    xmlgraphics/fop/trunk/src/documentation/content/xdocs/trunk/embedding.xml
    xmlgraphics/fop/trunk/src/documentation/content/xdocs/trunk/running.xml

Modified: xmlgraphics/fop/trunk/src/documentation/content/xdocs/trunk/embedding.xml
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/src/documentation/content/xdocs/trunk/embedding.xml?rev=332795&r1=332794&r2=332795&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/documentation/content/xdocs/trunk/embedding.xml (original)
+++ xmlgraphics/fop/trunk/src/documentation/content/xdocs/trunk/embedding.xml Sat Nov 12 08:11:53 2005
@@ -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 @@
     </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>

Modified: xmlgraphics/fop/trunk/src/documentation/content/xdocs/trunk/running.xml
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/src/documentation/content/xdocs/trunk/running.xml?rev=332795&r1=332794&r2=332795&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/documentation/content/xdocs/trunk/running.xml (original)
+++ xmlgraphics/fop/trunk/src/documentation/content/xdocs/trunk/running.xml Sat Nov 12 08:11:53 2005
@@ -147,7 +147,10 @@
   -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)



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org