Pavan Kumar Yeluri wrote:

Hi Everyone,
I am trying to render a pdf with the text and now image objects via servlet. HttpServletResponse res = request.getServletResponse(true);
res.setContentType("application/pdf");
PdfWriter.getInstance(document, res.getOutputStream());

This should work in theory, but in practice some browsers (MSIE) don't accept this;
see http://itextdocs.lowagie.com/tutorial/general/webapp/

document.add(new Paragraph("Image"));
Image img = Image.getInstance("/images/logo.gif");
img.setAbsolutePosition(175, 100);
document.add(img);

Are you sure the image is reachable?
If you do new File("/images/logo.gif").exists()
what does it say?

And, also i want to place table based on absolute position, like above. (for image)

http://itextdocs.lowagie.com/tutorial/objects/tables/pdfptable/
br,
Bruno


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to