Print PDF Byte Array

This example demonstrates how to print a PDF byte array.

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

In this topic