]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Fixed a few omissions after the API change.
authorJeremias Maerki <jeremias@apache.org>
Thu, 19 Jan 2006 09:55:17 +0000 (09:55 +0000)
committerJeremias Maerki <jeremias@apache.org>
Thu, 19 Jan 2006 09:55:17 +0000 (09:55 +0000)
Thanks to Sébastien Devaux for the hint.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@370454 13f79535-47bb-0310-9956-ffa450edef68

src/documentation/content/xdocs/0.91/output.xml
src/documentation/content/xdocs/0.91/pdfencryption.xml
src/documentation/content/xdocs/0.91/servlets.xml
src/documentation/content/xdocs/trunk/output.xml
src/documentation/content/xdocs/trunk/pdfencryption.xml
src/documentation/content/xdocs/trunk/servlets.xml

index d2aed60b3818538526b699c1b657e1b6c9174bdb..8402a90751d26558afa6927c28551cf2714a49ea 100644 (file)
@@ -125,7 +125,7 @@ out = proc.getOutputStream();]]></source>
   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(
index f0d717f189a4af08a58e0dc2a34eaa9beaa31d18..2c7742d8dc2d64930ac084ab5c193dbb0899fa0d 100755 (executable)
@@ -142,7 +142,7 @@ import org.apache.fop.pdf.PDFEncryptionParams;
 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:
index 16e7da3161e5517b8afa8ed739fbbc07fbe62033..86681ccc969cdbb15775f86643e44917752e3f78 100644 (file)
@@ -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 @@ public void init() throws ServletException {
 [..]
 
     //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();
index d2aed60b3818538526b699c1b657e1b6c9174bdb..8402a90751d26558afa6927c28551cf2714a49ea 100644 (file)
@@ -125,7 +125,7 @@ out = proc.getOutputStream();]]></source>
   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(
index f0d717f189a4af08a58e0dc2a34eaa9beaa31d18..2c7742d8dc2d64930ac084ab5c193dbb0899fa0d 100755 (executable)
@@ -142,7 +142,7 @@ import org.apache.fop.pdf.PDFEncryptionParams;
 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:
index 16e7da3161e5517b8afa8ed739fbbc07fbe62033..86681ccc969cdbb15775f86643e44917752e3f78 100644 (file)
@@ -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 @@ public void init() throws ServletException {
 [..]
 
     //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();