I am looking for a way to create PDF files using the standard PrintDocument and Graphics (GDI) classes in .NET. As far as I know, the only way to do this is to print to a PDF printer.
The problem is that the PDF printer driver always asks for the file name, but I need to control the file name from my code. Using a PDF library such as PDFSharp or DynamicPDF is not an option, as they all provide their own API for creating PDF files.
I need this for an internal application, so dependencies are not a problem.
My question is simple: is there a way to control the printer driver (Adobe Acrobat, PDFCreator, ...) in such a way that the file name can be specified, but nothing was suggested to the user?
Philippe leybaert
source share