title: Convert System.Drawing.Printing.PrintDocument to PDF c#
body: <p>I have to use a 3rd party SDK that generates reports in a <code>System.Drawing.Printing.PrintDocument</code> format. Since my project is not a Windows Form project(it is a Web project),I need to convert this <code>System.Drawing.Printing.PrintDocument</code> to a PDF. I have downloaded iTextSharp and SharpPDF but they seem to create a new PDF. I have also gone through the tutorial(s) here: <a href="http://sharppdf.sourceforge.net/Tutorials.html" rel="nofollow">http://sharppdf.sourceforge.net/Tutorials.html</a>. My requirement is to convert the document that I already have into a PDF. Is there something that I'm missing in using these libraries? Can someone please provide a sample code to achieve this?</p>