[iText-questions] Problem with png files
Hi, We are using iText with weblogic 7.0. There appears to be a difference in the way the pdf gets handeled when creating it thru a standalone application and when its created from a servlet. When created from the servlet the code is - // baos is the stream which has the pdf response.setContentType("application/pdf"); ServletOutputStream sos; sos = response.getOutputStream(); baos.writeTo(sos); sos.flush(); sos.close(); Behaviour when pdf contains png images - - IE browser dumps a text (of pdf) output Behaviour when pdf contains jpg images - - IE shows the pdf correctly In both the above case a standalone test application correctly creates the pdf and stores it on the disk. Is this a known problem or am I missing something ? Thanks, Pradeep Do you Yahoo!? Yahoo! Search - Find what youre looking for faster.
[iText-questions] Peculiar problem with including images
Hi, We have a servlet which uses iText classes to create pdf which is then sent to the browser as a stream. The problem is that the moment we include images in the pdf, the browser does not launch the pdf application but instead shows the pdf encoded text. I have been going thru the documentation but could not find anything to explain this vague behaviour. Does any one have any idea ? Thanks, Pradeep Do you Yahoo!? Yahoo! Search - Find what youre looking for faster.
[iText-questions] Strange problem with iText and Weblogic
Hi, We are using Weblogic 7.0 and JDK 1.3. We are using iText for pdf generation. In the class that I have written,the call - PdfWriter.getInstance() seems to behaving very strangely. ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();Document document = new Document(); PdfWriter writer = PdfWriter.getInstance(document, byteArrayOutputStream); I get a "Throwable" exception. I am not able to determine why this is happening. Any help will be greatly appreciated. Thanks, Pradeep Shekade Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing
[iText-questions] A call to PdfWriter.getInstance(document,baos) hangs ...
Hi, I am new to this list. I am trying to use Itext for our pdf generation requirements. I have a JSP which uses a helper class which returns me the ByteArrayOutputStream. I then use this stream with ServletOutputStream to push the pdf stream to the IE browser. When I run the jsp I see that the call to PdfWriter.getInstance(document,baos) just does not return. This is very strange. This also hangs the server. We are using weblogic server 7.0. I have searched thru the mailing list archive but could not find any solution to this problem. Can any body give me some pointers to what is wrong ? I also subscribed to the mailing list but did not get any reply for confirmation. How much time does it usuallu take to get the confirmation email ? Thank You, Pradeep Shekade Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard