PDFtoPrinter 1.3.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package PDFtoPrinter --version 1.3.1
NuGet\Install-Package PDFtoPrinter -Version 1.3.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="PDFtoPrinter" Version="1.3.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PDFtoPrinter --version 1.3.1
#r "nuget: PDFtoPrinter, 1.3.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install PDFtoPrinter as a Cake Addin
#addin nuget:?package=PDFtoPrinter&version=1.3.1

// Install PDFtoPrinter as a Cake Tool
#tool nuget:?package=PDFtoPrinter&version=1.3.1

PDFtoPrinter

License NuGet NuGet Build status

The PDFtoPrinter project Allows to print PDF files uses PDFtoPrinter util. The package contains PDFtoPrinter.exe and copys it to the output folder before build event. Also it provides PDFtoPrinterPrinter class that runs PDFtoPrinter.exe inside of a "Print" method in a separate process with default timeout 1 minute (the timeout can be overrited by 3rd argument). The "Print" method runs new PDFtoPrinter.exe instance per call. By default new printing will not start while the previous from the same PDFtoPrinterPrinter instance isn't completed. But you can use set concurrency level using constructor with arguments.

Note: Concurrency level works inside PDFtoPrinterPrinter instance.

Sample usage:

Use local printer

var filePath = "c:\path\to\pdf\file.pdf";
var printerName = "Vendor Color Printer Name";
var printer = new PDFtoPrinterPrinter();
printer.Print(new PrintingOptions(printerName, filePath));

Use network printer with timeout

var filePath = "c:\path\to\pdf\file.pdf";
var networkPrinterName = "\\myprintserver\printer1";
var printTimeout = new TimeSpan(0, 30, 0);
var printer = new PDFtoPrinterPrinter();
printer.Print(new PrintingOptions(networkPrinterName, filePath), printTimeout);

Use network printer with 5 concurrency printings. In this case up to 5 instances of PDFtoPrinter.exe will be started simultaneously

var filePath = "c:\path\to\pdf\file.pdf";
var networkPrinterName = "\\myprintserver\printer1";
var allowedCocurrentPrintings = 5;
var printer = new PDFtoPrinterPrinter(allowedCocurrentPrintings);
for (var i = 0; i < 10; i++)
{
    wrapper.Print(new PrintingOptions(networkPrinterName, filePath));
}

If you need to delete files after printing you can use "CleanupFilesPrinter":

var filePath = "c:\path\to\pdf\file.pdf";
var networkPrinterName = "\\myprintserver\printer1";
var printer = new CleanupFilesPrinter(new PDFtoPrinterPrinter());
printer.Print(new PrintingOptions(networkPrinterName, filePath));
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net45 is compatible.  net451 was computed.  net452 was computed.  net46 is compatible.  net461 was computed.  net462 was computed.  net463 was computed.  net47 is compatible.  net471 was computed.  net472 was computed.  net48 is compatible.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.5

    • No dependencies.
  • .NETFramework 4.6

    • No dependencies.
  • .NETFramework 4.7

    • No dependencies.
  • .NETFramework 4.8

    • No dependencies.
  • .NETStandard 2.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on PDFtoPrinter:

Repository Stars
svishnevsky/PDFtoPrinter
.Net Wrapper over PDFtoPrinter util allows to print PDF files.
Version Downloads Last updated
1.5.3 862 3/4/2024
1.5.2 2,417 11/24/2023
1.5.1 127 11/24/2023
1.5.0 10,599 2/21/2023
1.4.4 5,495 6/13/2022
1.4.3 2,198 3/10/2022
1.4.2 2,342 9/27/2021
1.4.1 15,672 3/18/2021
1.4.0 376 3/18/2021
1.3.2 1,511 1/19/2021
1.3.1 646 11/20/2020
1.2.1 2,930 7/20/2020
1.2.0 994 3/18/2020
1.1.0 499 3/3/2020
1.0.6 4,728 12/11/2018
1.0.5 828 12/3/2018
1.0.4 688 11/27/2018
1.0.3 692 11/23/2018
1.0.2 750 11/2/2018
1.0.1 718 10/30/2018
1.0.0 873 10/29/2018
0.1.0 703 10/30/2018

Prevent JS running