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 2006/01/19 10:55:24 UTC

svn commit: r370454 - in /xmlgraphics/fop/trunk/src/documentation/content/xdocs: 0.91/output.xml 0.91/pdfencryption.xml 0.91/servlets.xml trunk/output.xml trunk/pdfencryption.xml trunk/servlets.xml

Author: jeremias
Date: Thu Jan 19 01:55:17 2006
New Revision: 370454

URL: http://svn.apache.org/viewcvs?rev=370454&view=rev
Log:
Fixed a few omissions after the API change.
Thanks to Sébastien Devaux for the hint.

Modified:
    xmlgraphics/fop/trunk/src/documentation/content/xdocs/0.91/output.xml
    xmlgraphics/fop/trunk/src/documentation/content/xdocs/0.91/pdfencryption.xml
    xmlgraphics/fop/trunk/src/documentation/content/xdocs/0.91/servlets.xml
    xmlgraphics/fop/trunk/src/documentation/content/xdocs/trunk/output.xml
    xmlgraphics/fop/trunk/src/documentation/content/xdocs/trunk/pdfencryption.xml
    xmlgraphics/fop/trunk/src/documentation/content/xdocs/trunk/servlets.xml

Modified: xmlgraphics/fop/trunk/src/documentation/content/xdocs/0.91/output.xml
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/src/documentation/content/xdocs/0.91/output.xml?rev=370454&r1=370453&r2=370454&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/documentation/content/xdocs/0.91/output.xml (original)
+++ xmlgraphics/fop/trunk/src/documentation/content/xdocs/0.91/output.xml Thu Jan 19 01:55:17 2006
@@ -125,7 +125,7 @@
   try {
     ByteArrayOutputStream fopout = new ByteArrayOutputStream();
     FileOutputStream outfile = new FileOutputStream(args[2]);
-    Fop fop = new Fop(Constants.RENDER_PDF);
+    Fop fop = new Fop(MimeConstants.MIME_PDF);
     fop.setOutputStream(fopout);
     
     Transformer transformer = TransformerFactory.newInstance().newTransformer(

Modified: xmlgraphics/fop/trunk/src/documentation/content/xdocs/0.91/pdfencryption.xml
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/src/documentation/content/xdocs/0.91/pdfencryption.xml?rev=370454&r1=370453&r2=370454&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/documentation/content/xdocs/0.91/pdfencryption.xml (original)
+++ xmlgraphics/fop/trunk/src/documentation/content/xdocs/0.91/pdfencryption.xml Thu Jan 19 01:55:17 2006
@@ -142,7 +142,7 @@
 FOUserAgent userAgent = new FOUserAgent();
 useragent.setPDFEncryptionParams(new PDFEncryptionParams(
     null, "password", false, false, true, true));
-Fop fop = new Fop(Constants.RENDER_PDF, userAgent);
+Fop fop = new Fop(MimeConstants.MIME_PDF, userAgent);
 driver.setOutputStream(...]]></source>
       <p>
         The parameters for the constructor of PDFEncryptionParams are:

Modified: xmlgraphics/fop/trunk/src/documentation/content/xdocs/0.91/servlets.xml
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/src/documentation/content/xdocs/0.91/servlets.xml?rev=370454&r1=370453&r2=370454&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/documentation/content/xdocs/0.91/servlets.xml (original)
+++ xmlgraphics/fop/trunk/src/documentation/content/xdocs/0.91/servlets.xml Thu Jan 19 01:55:17 2006
@@ -61,7 +61,7 @@
                    HttpServletResponse response) throws ServletException {
     try {
         response.setContentType("application/pdf");
-        Fop fop = new Fop(Constants.RENDER_PDF);
+        Fop fop = new Fop(MimeConstants.MIME_PDF);
         fop.setOutputStream(response.getOutputStream());
         TransformerFactory factory = TransformerFactory.newInstance();
         Transformer transformer = factory.newTransformer();
@@ -96,7 +96,7 @@
 [..]
 
     //Setup FOP
-    Fop fop = new Fop(Constants.RENDER_PDF);
+    Fop fop = new Fop(MimeConstants.MIME_PDF);
 
     //Setup a buffer to obtain the content length
     ByteArrayOutputStream out = new ByteArrayOutputStream();

Modified: xmlgraphics/fop/trunk/src/documentation/content/xdocs/trunk/output.xml
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/src/documentation/content/xdocs/trunk/output.xml?rev=370454&r1=370453&r2=370454&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/documentation/content/xdocs/trunk/output.xml (original)
+++ xmlgraphics/fop/trunk/src/documentation/content/xdocs/trunk/output.xml Thu Jan 19 01:55:17 2006
@@ -125,7 +125,7 @@
   try {
     ByteArrayOutputStream fopout = new ByteArrayOutputStream();
     FileOutputStream outfile = new FileOutputStream(args[2]);
-    Fop fop = new Fop(Constants.RENDER_PDF);
+    Fop fop = new Fop(MimeConstants.MIME_PDF);
     fop.setOutputStream(fopout);
     
     Transformer transformer = TransformerFactory.newInstance().newTransformer(

Modified: xmlgraphics/fop/trunk/src/documentation/content/xdocs/trunk/pdfencryption.xml
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/src/documentation/content/xdocs/trunk/pdfencryption.xml?rev=370454&r1=370453&r2=370454&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/documentation/content/xdocs/trunk/pdfencryption.xml (original)
+++ xmlgraphics/fop/trunk/src/documentation/content/xdocs/trunk/pdfencryption.xml Thu Jan 19 01:55:17 2006
@@ -142,7 +142,7 @@
 FOUserAgent userAgent = new FOUserAgent();
 useragent.setPDFEncryptionParams(new PDFEncryptionParams(
     null, "password", false, false, true, true));
-Fop fop = new Fop(Constants.RENDER_PDF, userAgent);
+Fop fop = new Fop(MimeConstants.MIME_PDF, userAgent);
 driver.setOutputStream(...]]></source>
       <p>
         The parameters for the constructor of PDFEncryptionParams are:

Modified: xmlgraphics/fop/trunk/src/documentation/content/xdocs/trunk/servlets.xml
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/src/documentation/content/xdocs/trunk/servlets.xml?rev=370454&r1=370453&r2=370454&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/documentation/content/xdocs/trunk/servlets.xml (original)
+++ xmlgraphics/fop/trunk/src/documentation/content/xdocs/trunk/servlets.xml Thu Jan 19 01:55:17 2006
@@ -61,7 +61,7 @@
                    HttpServletResponse response) throws ServletException {
     try {
         response.setContentType("application/pdf");
-        Fop fop = new Fop(Constants.RENDER_PDF);
+        Fop fop = new Fop(MimeConstants.MIME_PDF);
         fop.setOutputStream(response.getOutputStream());
         TransformerFactory factory = TransformerFactory.newInstance();
         Transformer transformer = factory.newTransformer();
@@ -96,7 +96,7 @@
 [..]
 
     //Setup FOP
-    Fop fop = new Fop(Constants.RENDER_PDF);
+    Fop fop = new Fop(MimeConstants.MIME_PDF);
 
     //Setup a buffer to obtain the content length
     ByteArrayOutputStream out = new ByteArrayOutputStream();



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