Hi
Can somebody help me? I'm stuck trying to find a way of adding a
image to my PDF.
I'm creating a VB.net project that create a PDF in MemoryStream and
then outputs it to a browser. I had succesfully added tables and paragraphs
to the PDF but when I try to put an image the following message appears:
The file is damaged and could not be repaired
Here's a bit of the code:
*****************************************
Dim PdfDoc As New Document()
Dim Memoria As New MemoryStream()
try
PdfWriter.getInstance(PdfDoc, Memoria)
PdfDoc.Open()
Dim gif As Image = Image.getInstance("vonnegut.gif")
PdfDoc.Add(Gif)
' Create Table....
catch errors
end try
PdfDoc.Close()
Response.OutputStream.Write(Memoria.GetBuffer(), 0,
Memoria.GetBuffer().Length)
Response.OutputStream.Flush()
Response.OutputStream.Close()
*****************************************
I tried many different ways but nothing seems to work.
Thanks.
-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions