What is the Best Image Format to Store in a PDF file

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
qcrnd
Advanced
Posts: 214
Joined: Mon Sep 04, 2006 12:00 am

What is the Best Image Format to Store in a PDF file

Post by qcrnd » Tue Dec 02, 2008 2:25 pm

Hi
I Create a PDF file and I import TChart images into the PDF file e.g.

Steema.TeeChart.Export.JPEGFormat img = tChart1.Export.Image.JPEG;
img.Save(stream)
Bitmap bmp = new Bitmap(stream)

And I add the bmp to my PDF.

I found that the images dont look so nice inside the PDF , A little blurred
I tried JPEG , Bitmap TIFF.
What do you recommend to get the best results for a chart to be inserted into a PDF file.

I saw that PDFFormat creates very good PDF image files but I dont know how to use it in my code since my PDF SW knows how to add System.Drawing.Image objects.
How can use the Data in PDFFormat , the stream or anything else to make it a System.Drawing.Image. I get an exception when I try

System.Drawing.Image image = System.Drawing.Image.FromStream(stream); ?? EXCEPTION !!!!???

What exactly is the PDFFormat.

Thanks.

Thanks.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Dec 03, 2008 11:31 am

Hi qcrnd,

PDFFormat generates a PDF file. You could try saving it to disk and openning it with notepad and with a PDF reader. You'll see exactly what it contains.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply