Cameron
Thanks for the help! It now compiles. Do you have a good link on how to add this servlet to my tomcat installation? Do I need to add the Batik lib directory?
Thanks!
Bruce

Cameron McCormack wrote:
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());


Reply via email to