ネットワークプリンタからのPDF印刷
IronPDFを使用してネットワークプリンターから印刷するにはどうすればよいですか?
IronPDFはC#で利用可能なすべての印刷オプションに対応しています。
既定のプリンターに送信:
-
https://ironpdf.com/object-reference/api/IronPdf.PdfDocument.html#IronPdf_PdfDocument_Print_System_Boolean_
名前付きプリンターに送信するには:
-
https://ironpdf.com/object-reference/api/IronPdf.PdfDocument.html#IronPdf_PdfDocument_Print_System_String_System_Boolean_
この場合、プリンターは最初に「認識」される必要があります。
- https://docs.microsoft.com/ja-jp/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
AirPrintのために、以下の提案をお試しください:
別のドライバーを試してください。
- 以下のリンクはPDFファイルをプリンターに直接印刷する方法に関する質問が記載されています:
https://stackoverflow.com/questions/26734405/airprint-printing-a-pdf-file-directly-to-the-printer
- 以下のリンクはPDFファイルをプリンターに直接印刷する方法に関する質問が記載されています:
-
https://stackoverflow.com/questions/46381133/how-to-fake-an-airprint-printer
以下をお試しください:
PdfDocument.GetPrintDocument()もしくは、PdfDocument.Print オーバーロードを使用して印刷プレビューウィンドウを表示し、利用可能であれば、AirPrint を選択できるようにします。