From 9a01ca2474cad035c82810d6b541cde6dbd896aa Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Thu, 19 Jan 2006 09:55:17 +0000 Subject: [PATCH] =?utf8?q?Fixed=20a=20few=20omissions=20after=20the=20API?= =?utf8?q?=20change.=20Thanks=20to=20S=C3=A9bastien=20Devaux=20for=20the?= =?utf8?q?=20hint.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 | 2 +- src/documentation/content/xdocs/0.91/pdfencryption.xml | 2 +- src/documentation/content/xdocs/0.91/servlets.xml | 4 ++-- src/documentation/content/xdocs/trunk/output.xml | 2 +- src/documentation/content/xdocs/trunk/pdfencryption.xml | 2 +- src/documentation/content/xdocs/trunk/servlets.xml | 4 ++-- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/documentation/content/xdocs/0.91/output.xml b/src/documentation/content/xdocs/0.91/output.xml index d2aed60b3..8402a9075 100644 --- a/src/documentation/content/xdocs/0.91/output.xml +++ b/src/documentation/content/xdocs/0.91/output.xml @@ -125,7 +125,7 @@ out = proc.getOutputStream();]]> 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( diff --git a/src/documentation/content/xdocs/0.91/pdfencryption.xml b/src/documentation/content/xdocs/0.91/pdfencryption.xml index f0d717f18..2c7742d8d 100755 --- a/src/documentation/content/xdocs/0.91/pdfencryption.xml +++ b/src/documentation/content/xdocs/0.91/pdfencryption.xml @@ -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(...]]>

The parameters for the constructor of PDFEncryptionParams are: diff --git a/src/documentation/content/xdocs/0.91/servlets.xml b/src/documentation/content/xdocs/0.91/servlets.xml index 16e7da316..86681ccc9 100644 --- a/src/documentation/content/xdocs/0.91/servlets.xml +++ b/src/documentation/content/xdocs/0.91/servlets.xml @@ -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(); diff --git a/src/documentation/content/xdocs/trunk/output.xml b/src/documentation/content/xdocs/trunk/output.xml index d2aed60b3..8402a9075 100644 --- a/src/documentation/content/xdocs/trunk/output.xml +++ b/src/documentation/content/xdocs/trunk/output.xml @@ -125,7 +125,7 @@ out = proc.getOutputStream();]]> 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( diff --git a/src/documentation/content/xdocs/trunk/pdfencryption.xml b/src/documentation/content/xdocs/trunk/pdfencryption.xml index f0d717f18..2c7742d8d 100755 --- a/src/documentation/content/xdocs/trunk/pdfencryption.xml +++ b/src/documentation/content/xdocs/trunk/pdfencryption.xml @@ -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(...]]>

The parameters for the constructor of PDFEncryptionParams are: diff --git a/src/documentation/content/xdocs/trunk/servlets.xml b/src/documentation/content/xdocs/trunk/servlets.xml index 16e7da316..86681ccc9 100644 --- a/src/documentation/content/xdocs/trunk/servlets.xml +++ b/src/documentation/content/xdocs/trunk/servlets.xml @@ -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(); -- 2.39.5