PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
System.Drawing.Printing.PrintDocument - Print To PDF https://forum.pdfsharp.net/viewtopic.php?f=2&t=3136 |
Page 1 of 1 |
Author: | oliver_m [ Mon Jun 22, 2015 9:35 am ] |
Post subject: | System.Drawing.Printing.PrintDocument - Print To PDF |
Is there any way save a VS PrintDocument to a PDF with PDFSharp? (I'm not looking to re-code my PrintDocument into a PDFSharp-friendly format. I just want to know if it's possible.) Thanks for your help. |
Author: | Thomas Hoevel [ Mon Jun 22, 2015 11:17 am ] |
Post subject: | Re: System.Drawing.Printing.PrintDocument - Print To PDF |
PDFsharp does not come with a printer driver. There are many printer drivers for PDF available from other sources. |
Author: | oliver_m [ Wed Jun 24, 2015 9:44 am ] |
Post subject: | Re: System.Drawing.Printing.PrintDocument - Print To PDF |
Cool. Thanks for getting back to me so quickly. If I were to convert my PrintDocument graphics to PDFSharp graphics, would that require a complete re-code? The PDFsharp documentation says that "an XGraphics object can be drawn on a System.Drawing.Graphics object", but I'm not entirely sure what that means. |
Author: | Thomas Hoevel [ Wed Jun 24, 2015 9:58 am ] |
Post subject: | Re: System.Drawing.Printing.PrintDocument - Print To PDF |
You can get an XGraphics object for a PDF page, you can also get it for a Graphics object (screen, printer, ...). Code that uses the Graphics class from GDI+ can easily be converted to use XGraphics, providing you with screen preview and PDF generation. |
Author: | oliver_m [ Thu Jun 25, 2015 8:30 am ] |
Post subject: | Re: System.Drawing.Printing.PrintDocument - Print To PDF |
Thanks for your help. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |