ByteScout Premium Suite - C# - Silent pdf printing with pdf renderer sdk - ByteScout

ByteScout Premium Suite – C# – Silent pdf printing with pdf renderer sdk

  • Home
  • /
  • Articles
  • /
  • ByteScout Premium Suite – C# – Silent pdf printing with pdf renderer sdk

silent pdf printing with pdf renderer sdk in C# and ByteScout Premium Suite

Learn to code silent pdf printing with pdf renderer sdk in C#: How-To tutorial

ByteScout tutorials describe the stuff for programmers who use C#. ByteScout Premium Suite was created to assist silent pdf printing with pdf renderer sdk in C#. ByteScout Premium Suite is the bundle that includes twelve SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording.

C# code snippet like this for ByteScout Premium Suite works best when you need to quickly implement silent pdf printing with pdf renderer sdk in your C# application. To use silent pdf printing with pdf renderer sdk in your C# project or application just copy & paste the code and then run your app! Enjoy writing a code with ready-to-use sample C# codes to implement silent pdf printing with pdf renderer sdk using ByteScout Premium Suite.

Visit our website to get a free trial version of ByteScout Premium Suite. Free trial contains many of source code samples to help you with your C# project.

On-demand (REST Web API) version:
 Web API (on-demand version)

On-premise offline SDK for Windows:
 60 Day Free Trial (on-premise)

Program.cs
      
using System; using Bytescout.PDFRenderer; namespace SilentPrinting { class Program { static void Main(string[] args) { const string PrinterName = "Microsoft Print to PDF"; // Create an instance of Bytescout.PDFRenderer.DocumentPrinter object and register it. DocumentPrinter documentPrinter = new DocumentPrinter(); documentPrinter.RegistrationName = "demo"; documentPrinter.RegistrationKey = "demo"; // Load PDF document. documentPrinter.LoadDocumentFromFile("multipage.pdf"); // Change some printing options for demo purposes // (note, some options might be not supported by the printer): // Change paper orientation documentPrinter.Landscape = true; // Set number of copies documentPrinter.Copies = 2; // Set collation documentPrinter.Collate = true; // Force black and white printing documentPrinter.Color = false; // Print all document pages to the specified printer documentPrinter.PrintDocument(PrinterName); // To print specific pages use overridden methods allowing to define pages to print: //documentPrinter.PrintDocument(PrinterName, 2, 4); // printer pages from 3 to 5 //documentPrinter.PrintDocument(PrinterName, new int[] {0, 2, 3, 4, 6}); // print specific pages //documentPrinter.PrintDocument(PrinterName, "1,3-5,7-"); documentPrinter.Dispose(); } } }

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Premium Suite Home Page

Explore ByteScout Premium Suite Documentation

Explore Samples

Sign Up for ByteScout Premium Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

VIDEO

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Premium Suite Home Page

Explore ByteScout Premium Suite Documentation

Explore Samples

Sign Up for ByteScout Premium Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next