An easy to understand guide to learn how to silent pdf document printing with pdf renderer sdk in VB.NET. Silent pdf document printing with pdf renderer sdk in VB.NET can be applied with ByteScout PDF Suite. ByteScout PDF Suite is the set that includes 6 SDK products to work with PDF from generating rich PDF reports to extracting data from PDF documents and converting them to HTML. This bundle includes PDF (Generator) SDK, PDF Renderer SDK, PDF Extractor SDK, PDF to HTML SDK, PDF Viewer SDK and PDF Generator SDK for Javascript.
Save time on writing and testing code by using the code below and use it in your application. If you want to know how it works, then this VB.NET sample code should be copied and pasted into your application’s code editor. Then just compile and run it. Use of ByteScout PDF Suite in VB.NET is also described in the documentation included along with the product.
ByteScout PDF Suite is available as a free trial. You may get it from our website along with all other source code samples for VB.NET applications.
On-demand (REST Web API) version:
Web API (on-demand version)
On-premise offline SDK for Windows:
60 Day Free Trial (on-premise)
Imports Bytescout.PDFRenderer Class Program Friend Shared Sub Main(args As String()) Const PrinterName As String = "Microsoft Print to PDF" ' Create an instance of Bytescout.PDFRenderer.DocumentPrinter object and register it. Dim documentPrinter As 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 Integer() {0, 2, 3, 4, 6}) ' print specific pages 'documentPrinter.PrintDocument(PrinterName, "1,3-5,7-") documentPrinter.Dispose() End Sub End Class
60 Day Free Trial or Visit ByteScout PDF Suite Home Page
Explore ByteScout PDF Suite Documentation
Explore Samples
Sign Up for ByteScout PDF Suite Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
60 Day Free Trial or Visit ByteScout PDF Suite Home Page
Explore ByteScout PDF Suite Documentation
Explore Samples
Sign Up for ByteScout PDF Suite Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
also available as: