Guide for VB.NET
Core Document Formats
Additional Features

VB.NET PDF - Print PDF Document Using VB

VB.NET PDF Document SDK for PDF Printing in Visual Basic .NET Program

VB.NET
Home > .NET Imaging SDK > VB.NET > Print PDF
To get started with DocImage SDK for .NET, you are supposed to read VB.NET Imaging: Get Started first!

PDF Document Printer Library in VB.NET
How to integrate fully featured PDF document printing features into VB.NET image processing application? Without having any dependency on other third-part PDF document editors, this VB.NET PDF document printer SDK allows developers to print source PDF document from VB.NET developing application with a variety of printing options, such as PDF printing resolution and PDF printing orientation.
Here we divide this online tutorial page for how to print PDF document using VB.NET programming code into following five aspects.
  • Overview of VB.NET PDF document printer library
  • VB.NET PDF document printer library dlls
  • VB.NET methods to print all PDF pages or one defined PDF file
  • VB.NET sample code for PDF document printing in .NET class application
  • RasterEdge VB.NET PDF printer library FAQs
PDF Printing API Features in VB.NET
  • Standalone VB.NET PDF document printer SDK that is programmed in 100% managed C# code
  • Robust VB.NET document printing solution that can be used in .NET Framework 2.0, 3.0, 3.5, 4.0 & 4.5
  • Quickly print all target PDF document pages or one specified PDF page by VB.NET code
PDF Printer Library DLLs in VB.NET
This VB.NET PDF document printer SDK contains two libraries, one is RasterEdge.Imaging.Basic.dll and the other is RasterEdge.Imaging.PDF.dll. Using the former dll, developers can perform some image-related processing functions. The later dll owns its own PDF file interpreter APIs, which can be used to edit PDF document in .NET class application.
Methods to Print PDF File in VB.NET
Here we list two PDF document printing methods for VB.NET document imaging applications.

Method to Print All PDF Pages in VB.NET

Public Sub PdfProcessorPrint(PDFInputFile As String, Printer As [String])
End Sub

Method to Print One PDF Page in VB.NET

As this VB.NET PDF document printer library owns mature API for PDF document page indexing and processing, developers can accurately select one PDF page by entering the page number directly.
Public Sub PdfProcessorPrint(PDFInputFile As String, PDFPageNumberStart As Integer, PDFPageNumberStop As Integer, 
Printer As String)
End Sub
VB.NET Demo Code for PDF Document Printing
In this section, we offer you two VB.NET programming examples for different PDF document printing requirements. One is used to print all source PDF document files using VB.NET code and the other is used to print one certain defined PDF document page. What should be noted here is that this version of RasterEdge VB.NET PDF document printer SDK does not support PDF document printing by defining a page range.

How to Print All PDF Pages Using VB.NET Programming Code

Imports RasterEdge.Imaging.Basic
Imports RasterEdge.Imaging.Basic.Core
Imports RasterEdge.Imaging.Basic.Codec
Imports RasterEdge.Imaging.PDF

public void PdfProcessorPrint();
{
PDFInputFile = (@"C:/1.pdf");
Printer = (@"C:/HP Color LaserJet 5550 PCL 6");
};
PDF. PdfProcessorPrint(@"C:/1.pdf", @"C:/HP Color LaserJet 5550 PCL 6");

How to Print One PDF Page Using VB.NET Code Programmatically

Imports RasterEdge.Imaging.Basic
Imports RasterEdge.Imaging.Basic.Core
Imports RasterEdge.Imaging.Basic.Codec
Imports RasterEdge.Imaging.PDF

public void PdfProcessorPrint();
{
PDFInputFile = (@"C:/1.pdf");
PDFPageNumberStart = "0";
PDFPageNumberStop = "4";
Printer = (@"C:/ HP Color LaserJet 5550 PCL 6");
};
PDF. PdfProcessorPrint(@"C:/1.pdf", "0","4", @"C:/ HP Color LaserJet 5550 PCL 6");
PDF File Printer Library FAQs in VB.NET
Q 1: Can I integrate this VB.NET PDF document printer library into my ASP.NET web application?
A 1: Yes, this VB.NET PDF document printer library is designed for all .NET developing platforms, not for any specific .NET application. Thus, developer can easily integrate this VB.NET PDF printing library into ASP.NET web application or Windows Forms project.

Q 2: Does this VB.NET PDF document printer SDK have any requirement on the resolution of target printers?
A 2: No, this VB.NET PDF document printer SDK owns high compatibility with both low-resolution and high-resolution printers.

Q 3: Using this VB.NET PDF printer SDK API, can I define the number of printing copies by VB.NET programming code?
A 3: No, this VB.NET PDF document printing API only allows developer to print all PDF pages or one certain PDF page. But developer can print source PDF document for defined times by adding his own VB.NET command.

Q 4: Using this VB.NET PDF document printer SDK, can I view source PDF file before printing without installing other external PDF document reader software?
A 4: This VB.NET PDF document printer SDK does not enable you to view source PDF document independently. But integrated with this .NET web viewer control, you can display PDF document file before printing.


Recommend this to Google+