One good option would be to output your final JSP page as formatted XHTML.

That way you could just use the HTMLWorker or XMLWorker to parse that into a PDF on demand.

This would likely be your smallest learning curve.

-Bill Ensley
www.bearprinting.com

On 5/9/2011 11:08 PM, 1T3XT BVBA wrote:
Hello,

you have posted a mail to [email protected] but you weren't subscribed. You are receiving this answer because I've added your mail address in Bcc: I will do this only once! Further answers will be sent to the mailing-list only. This means you won't receive them if you don't subscribe; you'll only see the answers in the archives, for instance here: http://thread.gmane.org/gmane.comp.java.lib.itext.general/57337

Note that your mail was malformed. You've put a large part of your question in the Subject line. Please avoid this. Rule #4 says you should "Give a short description of your problem in the Subject line". See http://lowagie.com/rule1 for the rules.

Please understand that, as long as you don't subscribe, somebody has to MANUALLY approve your mail among a huge load of SPAM. See rule #3.

Darlene Schaeffer wrote:
> I am working on a Web application where we (the developers) want to convert the final JSP rendered currently into a PDF as an alternative. The Web application has a series of forms where the user enters data and the final JSP is rendered so that the user can print a summary of the data entered in the application.
>
> I purchased the book "iText in Action" and started thinking about the design options. I definitely want to generate the PDF in the Servlet and was able to follow the "Hello World" example to accomplish this task. However, there are a few images and lots of static content in tables so I thought it would be more efficient to create a PDF via Acrobat Adobe with the static content and use iText to populate the dynamic content. Is this the best design approach?

It is very hard to advize on design without more information. Using iText demands a learning process. Maybe you should try out different strategies and decide which strategy is the best match for your specific application based on tests (CPU uses, memory use, time needed to create the PDF,...). All of these parameters largely depend on the nature of the PDF you're producing: how big is it? how many times does the content change? Etc.

If so, I was wondering if there is something special about creating the PDF file in Adobe Acrobat Pro 9 that I should know. The reason I ask is because the PdfReader is failing with the following error message: > "IO Exception in createPDF method: Rebuild failed: trailer not found.; Original message: xref subsection not found at file pointer 118". Any help with be greatly appreciated as I am new to iText and PDFs.

Please post the PDF. See rule #2.


------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay


_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to