Is there a way to write System.Drawing.Graphics to PDF from C#?
Posted
by
Brett Ryan
on Stack Overflow
See other posts from Stack Overflow
or by Brett Ryan
Published on 2011-09-16T02:59:26Z
Indexed on
2013/06/25
10:22 UTC
Read the original article
Hit count: 254
I have a whole bunch of 2D graphics that is being used for both rendering controls on screen and used to print, it's pretty custom graphics that couldn't be done by any 3rd party reporting tools or off the shelf controls.
The program can generate PDF files of the printed content but when I wrote it I cheated and just print the Graphics
object to an in memory image and then embed that into the PDF page.
Since the users are emailing the documents they're finding they are too large.
I've started writing the PDF from scratch using iText, however is there a way to get System.Drawing.Graphics
content directly into PDF? The way iText works and Graphics works is completely different.
© Stack Overflow or respective owner