ネットワーク プリンターから PDF を印刷する
ネットワークプリンタから印刷するためにIronPDFをどのように使用しますか?
IronPDFはC#で利用可能なすべての印刷オプションをサポートしています。
デフォルトのプリンタに送信:
Print メソッドを使用して、PDF をデフォルトのプリンターに送信します。
IronPdf.PdfDocument.Print(System.Boolean)
// C# example of sending a PDF document to the default printer
using IronPdf;
var pdf = PdfDocument.FromFile("example.pdf");
// Sends the document to the default printer
pdf.Print(showPreview: false); // set `showPreview` to true to see a preview before printing
// C# example of sending a PDF document to the default printer
using IronPdf;
var pdf = PdfDocument.FromFile("example.pdf");
// Sends the document to the default printer
pdf.Print(showPreview: false); // set `showPreview` to true to see a preview before printing
' C# example of sending a PDF document to the default printer
Imports IronPdf
Private pdf = PdfDocument.FromFile("example.pdf")
' Sends the document to the default printer
pdf.Print(showPreview:= False) ' set `showPreview` to true to see a preview before printing
指定された名前のプリンタに送信:
プリンタを名前で指定するには、オーバーロードされた Print メソッドを使用します。
IronPdf.PdfDocument.Print(System.String, System.Boolean)
// C# example of sending a PDF document to a specific printer by name
using IronPdf;
var pdf = PdfDocument.FromFile("example.pdf");
string printerName = "MyNetworkPrinter";
// Sends the document to the specified printer
pdf.Print(printerName, showPreview: false);
// C# example of sending a PDF document to a specific printer by name
using IronPdf;
var pdf = PdfDocument.FromFile("example.pdf");
string printerName = "MyNetworkPrinter";
// Sends the document to the specified printer
pdf.Print(printerName, showPreview: false);
' C# example of sending a PDF document to a specific printer by name
Imports IronPdf
Private pdf = PdfDocument.FromFile("example.pdf")
Private printerName As String = "MyNetworkPrinter"
' Sends the document to the specified printer
pdf.Print(printerName, showPreview:= False)
プリンタを発見する:
特定のプリンタにドキュメントを送信するには、プリンタが"発見"されていることを確認してください。
AirPrintの場合:
AirPrintを使用する場合は、次の提案を試してください。
次も試してみてください:
PdfDocument.GetPrintDocument() または PdfDocument.Print のオーバーロード。印刷プレビュー ウィンドウが表示され、使用可能な場合は AirPrint を選択できるようになります。

