Print From Network Printer
How do I use IronPDF to print from a network printer?
IronPDF supports every printing option available to C#.
Send to default printer:
- https://ironpdf.com/object-reference/api/IronPdf.PdfDocument.html#IronPdf_PdfDocument_Print_System_Boolean_
To send to a named printer:
- https://ironpdf.com/object-reference/api/IronPdf.PdfDocument.html#IronPdf_PdfDocument_Print_System_String_System_Boolean_
The printer will first need to be 'discovered' in this case:
- https://docs.microsoft.com/en-us/dotnet/api/system.drawing.printing.printersettings.installedprinters?redirectedfrom=MSDN&view=net-5.0#System_Drawing_Printing_PrinterSettings_InstalledPrinters
- https://stackoverflow.com/questions/2354435/how-to-get-the-list-of-all-printers-in-computer
For AirPrint, please try the following suggestions:
Try a different driver.
- https://stackoverflow.com/questions/26734405/airprint-printing-a-pdf-file-directly-to-the-printer
- https://stackoverflow.com/questions/46381133/how-to-fake-an-airprint-printer
You can also try: PdfDocument.GetPrintDocument() or PdfDocument.Print overload, which show the print preview windows and if available, will allow AirPint to be selected.