diff options
author | Jeremias Maerki <jeremias@apache.org> | 2006-01-19 09:55:17 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2006-01-19 09:55:17 +0000 |
commit | 9a01ca2474cad035c82810d6b541cde6dbd896aa (patch) | |
tree | 87cd16fec29cba8f122f2662e446d4e01c16d721 /src/documentation/content/xdocs/trunk/servlets.xml | |
parent | b9d21be592b59117d843b62b694a6d2ee87fb648 (diff) | |
download | xmlgraphics-fop-9a01ca2474cad035c82810d6b541cde6dbd896aa.tar.gz xmlgraphics-fop-9a01ca2474cad035c82810d6b541cde6dbd896aa.zip |
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
Diffstat (limited to 'src/documentation/content/xdocs/trunk/servlets.xml')
-rw-r--r-- | src/documentation/content/xdocs/trunk/servlets.xml | 4 |
1 files changed, 2 insertions, 2 deletions
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(); |