The book is very hard to follow and does not cover what I need. I managed to
not save the pdf by sending null to the path parameter. There is no example
on how to download a pdf with an image. The example I was following has
only download text. The example that converts to an image does not download,
and when I change the code to PdfWriter.GetInstance(doc,
Response.OutputStream)
As in the download method I get the pdf garbled up code on my browser
instead of a download window.
Arturo Saliva | Developmet Specialist
CENDYN
Phone 561.314.3718 | Mobile 754.273.2320
<http://www.cendyn.com/?utm_source=Cendyn&utm_medium=email&utm_campaign=Cend
yn%2B-%2BeMail%2BSignature> www.cendyn.com | <mailto:asal...@cendyn.com>
asal...@cendyn.com
Sales Marketing Reservations CRM
From: 1T3XT BVBA [mailto:i...@1t3xt.info]
Sent: Friday, March 29, 2013 11:54 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Is there documentation on this library?
Strange question.
There are two books and numerous tutorial explaining how to use iText.
Didn't you find any of them?
http://itextpdf.com/book
On 29/03/2013 16:21, Arturo Saliva wrote:
I would like to be able to create a link on my page that allows the user to
convert an image (gif or jpeg) to a pdf file and download it to their
computers WITHOUT saving that file also be saved in my webserver.
That's the standard way of doing it, isn't it? In a web context, you either
create the PDF in memory (using a ByteArrayOutputStream) or you send it
straight to the browser (using a ServletOutputStream).
As it is, the methods used in the example Im following have the file saved
in my server.
Did you read the book? Please read chapter 9 of the Second Edition of iText
in Action, explaining how to create PDFs from a servlet. You can find the
examples here: http://itextpdf.com/book/chapter.php?id=9
------------------------------------------------------------------------------
Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete
for recognition, cash, and the chance to get your game on Steam.
$5K grand prize plus 10 genre and skill prizes. Submit your demo
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
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