Skip to main content

Print PDF Byte Array

Version: 3.0

Print PDF Byte Array

The example below demonstrates how to print a PDF byte array.

byte[] pdfBytes = System.IO.File.ReadAllBytes("DocumentA.pdf");
InputPdf pdf = new InputPdf(pdfBytes);
PrintJob printJob = new PrintJob(Printer.Default, pdf);
printJob.Print();
Dim pdfBytes As Byte() = System.IO.File.ReadAllBytes("DocumentA.pdf")
Dim pdf As InputPdf = New InputPdf(pdfBytes)
Dim printJob As PrintJob = New PrintJob(Printer.Default, pdf)
printJob.Print()
Documentation version