[ 
https://issues.apache.org/jira/browse/CLK-566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12728277#action_12728277
 ] 

Bob Schellink commented on CLK-566:
-----------------------------------

Hi Jamie,

Welcome. If you want to render a PDF you should set the Page path to null, then 
Click won't render the template. See this FAQ: 
http://incubator.apache.org/click/docs/faq.html#pdf-and-excel-rendering

May I also suggest asking questions on the user mailing lists first before 
raising the issue on JIRA: 
http://incubator.apache.org/click/docs/click-online.html#mailing-lists

kind regards

bob

> ClickServlet using HttpServletResponse's getWriter()
> ----------------------------------------------------
>
>                 Key: CLK-566
>                 URL: https://issues.apache.org/jira/browse/CLK-566
>             Project: Click
>          Issue Type: Improvement
>          Components: core
>            Reporter: Jamie Szafran
>            Priority: Minor
>
> Hello,
> I'm a relatively new Click user, so my apologies if I managed to miss 
> something in searching for an answer to this one.
> I'm using Click 2.0.1 and am using iText 2.1.6 for PDF rendering.  The issue 
> is that in ClickServlet's renderTemplate(Page page) method, 
> HttpServletResponse's getWriter() method is called [on the page's response 
> object].  Because of this, getOutputStream() cannot be called on the same 
> object, which is required for the iText rendering.  Is it possible for 
> ClickServlet to use getOutputStream() and then create a PrintWriter around 
> that instead of retrieving the PrintWriter?  That way, one can at least 
> access the OutputStream.  Or maybe, after looking at 
> https://issues.apache.org/jira/browse/CLK-146, there could be some way to 
> make a choice as to which is used?
> Thanks,
> -Jamie

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to