PDFsharp & MigraDoc Foundation
http://forum.pdfsharp.de/

Common Graphics code for PDF and printer
http://forum.pdfsharp.de/viewtopic.php?f=2&t=813
Page 1 of 1

Author:  bradak [ Mon Jul 27, 2009 8:41 pm ]
Post subject:  Common Graphics code for PDF and printer

I'm new to PDFSharp. One of the things that looked good was the following:
The same drawing routines can be used to create PDF documents, draw on the screen, or send output to any printer.

Could someone post some simple code that shows how I can do this? Do I use Graphics or XGraphics to do my drawing? How do I convert from one to the other?

Thanks,
Brad

Author:  Thomas Hoevel [ Tue Jul 28, 2009 8:59 am ]
Post subject:  Re: Common Graphics code for PDF and printer

Look at the Preview sample.
You'll use XGraphics for drawing on screen, printer, PDF.

Author:  bradak [ Tue Jul 28, 2009 2:05 pm ]
Post subject:  Re: Common Graphics code for PDF and printer

Thanks for the pointer. That's what I was looking for.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/