diff options
Diffstat (limited to 'src/documentation/content/xdocs/0.91/servlets.xml')
-rw-r--r-- | src/documentation/content/xdocs/0.91/servlets.xml | 4 |
1 files changed, 2 insertions, 2 deletions
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(); |