From: Jeremias Maerki Date: Thu, 19 Jan 2006 09:55:17 +0000 (+0000) Subject: Fixed a few omissions after the API change. X-Git-Tag: fop-0_92-beta~196 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9a01ca2474cad035c82810d6b541cde6dbd896aa;p=xmlgraphics-fop.git Fixed a few omissions after the API change. 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 --- 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();