I'm using 4.0.1.0 of the Amyuni PDF Converter, on Win7 x64. I'm printing a document of 3 pages to the PDF printer using C#/.NET 2.0, but it is very slow (10 seconds).
I wonder why that is, because both a print preview (with PrintPreviewDialog) of the document and printing a document with the same printer using a different component of my application (written in C++) is much faster.
The code for printing is basically this:
Code: Select all
public void PrintDocumentToPdf(PrintDocument document, string filename)
{
DriverInit (this.m_sPDFDriverName);
SetDefaultFileName (this.m_iPrinterHnd, filename);
SetFileNameOptions (this.m_iPrinterHnd, FileNameOption.NoPrompt | FileNameOption.UseFileName );
document.PrintController = new StandardPrintController();
document.PrinterSettings.PrinterName = this.m_sPDFDriverName;
document.Print();
}
Regards,
Florian