Hi Bruce. Bruce Rindahl: > I am trying to do something similar as described below but using the > PDFTranscoder. I modified the code as follows: … > TranscoderInput input = new TranscoderInput(request); … > TranscodingServlet.java:24 cannot find symbol > symbol : construction > TranscoderInput(javax.servlet.htto.HttpServletRequest) > location : class org.apache.batik.transcoder.TranscoderInput > TranscoderInput input = new TranscoderInput(request);
The TranscoderInput constructor needs to take a Reader (or Document, InputStream, String or XMLReader): http://xmlgraphics.apache.org/batik/javadoc/org/apache/batik/transcoder/TranscoderInput.html You can get a Reader from the HttpServletRequest object: http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpServletRequest.html So you need to write: TranscoderInput input = new TranscoderInput(request.getReader()); -- Cameron McCormack ≝ http://mcc.id.au/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
