You need to set the content-type header of the response stream of the servlet.

On 1/8/06, Robin Zhao <[EMAIL PROTECTED]> wrote:
> Hi,
> after i modified souse code according you, browser show something, but that
> is not PDF.
>
> If i change IE->View->Encoding->West Eurepean (ISO), then browser will show:
> %PDF-1.4 %âãÏÓ 4 0 obj <>stream
> xœí"Ë‚0E÷ýŠYêBmQØšèÞ¤?ÈËPÀÿ—([EMAIL PROTECTED]|lš'¡†{ î…l8Ñ)¬M~
> fÚJl;¸î4_‰O&lS~ÌgüF"
> ......
>
> If i change IE->View->Encoding->Unicode (UTF-8) then browser will show:
> 0000016356 00000 n 0000017135 00000 n 0000017651 00000 n 0000018181 00000 n
> 0000016765 00000 n 0000016884 00000 n 0000017016 00000 n 0000017282 00000 n
> ......
>
> anyway, no PDF shown.
> Confusing...please give me advise, where i should change on my source code
>
>
>
> Regards
> Robin
>
>
>
>
> >From: Bruno Lowagie <[EMAIL PROTECTED]>
> >To: Robin Zhao
> ><[EMAIL PROTECTED]>,"'[email protected]'"
> ><[email protected]>
> >Subject: Re: [iText-questions] How to merge multiple PDF into a temporary
> >PDF and show on browser?
> >Date: Sun, 08 Jan 2006 09:14:37 +0100
> >
> >Robin Zhao wrote:
> >
> >>Thanks,  question:
> >>
> >>>aList.add("ChapterSection.pdf");
> >>>aList.add("SimpleAnnotations1.pdf");
> >>
> >>if the PDF is under c:/pdf/active, how do i specify path?
> >
> >The same rules apply as with java.io.File or java.net.URL:
> >http://java.sun.com/j2se/1.4.2/docs/api/java/io/File.html
> >http://java.sun.com/j2se/1.4.2/docs/api/java/net/URL.html
> >br,
> >Bruno
> >
> >
> >-------------------------------------------------------
> >This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> >files
> >for problems?  Stop!  Download the new AJAX search engine that makes
> >searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> >http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> >_______________________________________________
> >iText-questions mailing list
> >[email protected]
> >https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> _________________________________________________________________
> Get cheap fares online with MSN Travel http://www.msn.com.sg/travel/
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>

Reply via email to