Print PDF (.NET Core/Framework)
In the following example, you print a PDF document using DynamicPDF PrintManager for .NET. The DynamicPDF PrintManager can handle most of your PDF printing automation needs and can manage printing PDF documents to an attached or network printer supporting different print job settings.
Download the NuGet package and GitHub project to get started. The following steps illustrates printing a PDF document to a specific printer.
Steps for Printing a PDF Programmatically
- Create a
PrintJobobject by specifying the printer name and the PDF document path.
- Print the job by calling
Sample Code - C#
PrintJob printJob = new PrintJob("Printer Name", "doc-a.pdf"); printJob.Print();
Download the DynamicPDF PrintManager NuGet
ceTe.DynamicPDF.Printing.NET package. The easiest way to install the package is through the Visual Studio Package Manager, but you can also download directly on NuGet.
DynamicPDF PrintManager Information
More information can be found here: