On 29/03/2013 18:57, Arturo Saliva wrote:

The book is very hard to follow and does not cover what I need.


Wow, you started reading after 16:21 and at 18:57, you already know that it doesn't cover what you need? I think you've been reading too fast. Many developers before you have read the book and understand what is needed. Please try again.

As for being hard to follow, that's in contradiction with "One of the clearest, easiest to follow technical books I've read in a long time" as the book is described by a reader on Amazon: http://www.amazon.com/iText-Action-Bruno-Lowagie/product-reviews/1935182617/ref=cm_cr_pr_viewpnt_sr_5

Let me look at your comments to see how resourceful you are:

I managed to not save the pdf by sending null to the path parameter.


???
Why would you do that? Did you read Section 1.3.2 explaining how to write a PDF to a ByteArrayOutputStream?

There is no example on how to download a pdf with an image.


Why would that be necessary? That would be too trivial to put in a book, wouldn't it?

The example I was following has only download text.


What example were you following?

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.


That's one of the pitfalls described in the book. You're sending the PDF to the browser as if it would be text. You'll get the same effect if you open a PDF in Notepad++. You need to make sure that the browser knows you're sending PDF, and your browser needs to be configured correctly so that it opens PDF in a PDF viewer that interprets the PDF syntax instead of showing the PDF syntax as plain text.
------------------------------------------------------------------------------
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

Reply via email to