diff options
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();]]></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( 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(...]]></source> <p> 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();]]></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( 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(...]]></source> <p> 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(); |