Hi,
Thanks for your further inquiry.
Sorry that there is no method with plugins to print pdf document, the plugins solution just to convert HTML to PDF.
At present, we have only the below two solutions for printing.
There are some sample code are shared here.
- Code: Select all
solution 1:
//Use the default printer and print all pages
pdfDocument.PrintDocument.Print();
solution 2:
//Select printer and the page range to print
PrintDialog dialogPrint = new PrintDialog();
dialogPrint.AllowPrintToFile = true;
dialogPrint.AllowSomePages = true;
dialogPrint.PrinterSettings.MinimumPage = 1;
dialogPrint.PrinterSettings.MaximumPage = pdfDocument.Pages.Count;
dialogPrint.PrinterSettings.FromPage = 1;
dialogPrint.PrinterSettings.ToPage = pdfDocument.Pages.Count;
if (dialogPrint.ShowDialog() == DialogResult.OK)
{
pdfDocument.PrintFromPage = dialogPrint.PrinterSettings.FromPage;
pdfDocument.PrintToPage = dialogPrint.PrinterSettings.ToPage;
pdfDocument.PrinterName = dialogPrint.PrinterSettings.PrinterName;
PrintDocument printDoc = pdfDocument.PrintDocument;
dialogPrint.Document = printDoc;
printDoc.Print();
}
Best Regards,
Amy
E-iceblue support team