Ağ Yazıcılarından PDF Yazdırma
IronPDF'yi bir ağ yazıcısından yazdırmak için nasıl kullanırım?
IronPDF, C# için mevcut olan her yazdırma seçeneğini destekler.
Varsayılan bir yazıcıya gönder:
PDF'yi varsayılan yazıcıya göndermek için Print yöntemini kullanın.
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
Adıyla belirtilmiş bir yazıcıya gönder:
Yazıcıyı adıyla belirtmek için aşırı yüklenmiş Print yöntemini kullanın.
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)
Yazıcıları keşfedin:
Belgeyi belirli bir yazıcıya göndermek için yazıcının 'keşfedilmiş' olduğundan emin olun.
AirPrint için:
AirPrint kullanıyorsanız aşağıdaki önerileri deneyin:
- AirPrint: Bir PDF dosyasını doğrudan yazıcıya yazdırma
- Sahte bir AirPrint yazıcı nasıl oluşturulabilir?
Şunları da deneyebilirsiniz:
PdfDocument.GetPrintDocument() veya PdfDocument.Print aşırı yüklemeleri, yazdırma önizleme penceresini gösterir ve varsa AirPrint'in seçilmesine izin verir.

