Hi,
I have some existing code that I use to create printed documents in a winforms application.
When the document is sent to the printer, each page raises an event and passes it a Graphics object and using this I create the text/layout etc.
Is it possible leverage all my existing code, but just print to a PDF instead using PDFSharp, or do I have to recreate everything using the XGraphics object?
I have seen the method XGraphics.FromGraphics - which looked very promising but it's very unclear how, if at all, I can then use this to create a PDF document. Can't find any clear code examples.
Help much appreciated. James
|