PDF VB.NET Library
How to Insert a New Page to PDF in VB.NET
Easy to Use VB.NET APIs to Add a New Blank Page to PDF Document in VB.NET Program
In this VB.NET tutorial, you learn how to add, insert PDF pages programmatically using VB.NET in .NET WinForms applications.
- Add blank pages, or list of pages to PDF
- Insert an existing PDF page
- Insert multiple pages from one PDF document to another PDF file
How to add, insert PDF pages programmatically using VB.NET
- Professional .NET PDF control for inserting PDF page in Visual Basic .NET class application
- Able to add and insert one or multiple pages to existing adobe PDF document in VB.NET
- Ability to create a blank PDF page with related by using following online VB.NET source code
- Support .NET WinForms, ASP.NET MVC in IIS, ASP.NET Ajax, Azure cloud service, DNN (DotNetNuke), SharePoint
- Create new page to PDF document in both ASP.NET web server-side application and .NET Windows Forms
- Support adding PDF page number
- Offer PDF page break inserting function
- Free SDK library for Visual Studio .NET
- Independent .NET PDF editor compatible with Windows operating system
RasterEdge XDoc.PDF SDK is compatible with Visual Studio 2005 or any greater version (2008/2010/2012) and it's able to be developed in Microsoft 2.0 or later Frameworks, like 3.0, 3.5, 4.0 and 4.5. It provides simple ways to create VB application to combine .NET Imaging Processing and PDF document libraries. And this page will give comprehensive VB example codes to create a new page to any designed location of the PDF file.
how to add header and footer in pdf using itextsharp in asp.net,
asp.net c# pdf viewer,
asp net add text to pdf,
asp.net preview pdf,
asp.net mvc create pdf from view,
asp.net mvc open word document in browser,
pdf editor in asp net mvc.
Within RasterEdge .NET Imaging Processing and PDF DLLs controls, programmers and end users are capable of adding and inserting a new blank page to the existing PDF document within a well developed VB.NET document imaging application. Using our PDF document manipulation APIs, users can easily customize and set the PDF page adding tool to freely choose the specific location of the new page. For example, you can insert the new PDF page before or after any existed PDF document page with the help of VB.NET sample code. If you want to read the tutorial of PDF page adding in C# class, we suggest you go to
C# Imaging - how to insert a new empty page to PDF file.
Add an empty page to PDF File using VB.NET code
This VB.NET demo code explains how to add, insert an empty page to a specific location of current PDF file.
- Create a PDFDocument object from an existing PDF file
- Call method PDFDocument.InsertPage() to insert an empty PDF page with default page size aftert the 2nd page.
- Save the modified PDF file
' get PDFDocument object from a file
Dim inputFilePath As String = "C:\1.pdf"
Dim doc As PDFDocument = New PDFDocument(inputFilePath)
' insert an empty page (with default page size) after the 2nd page
doc.InsertPage(2)
' save the PDFDocument object to a file
Dim outPutFilePath As String = "C:\Output.pdf"
doc.Save(outPutFilePath)
Add a page from other PDF file to PDF using VB.NET
This VB.NET example source code will help you to insert an existing page from another PDF file to a PDFDocument object at specified position in VB.NET program.
- Get a resource PDFDocument object from an existing PDF file
- Get a PDFPage object from the first page of the resource PDF file
- Create a PDFDocument object from an existing PDF file to add a page
- Call method PDFDocument.AddPage() to insert the PDFPage object from the first page of the resource PDF file
- Save the modified PDF document
' load the PDF file that provides the page object
Dim resFilePath As String = "C:\2.pdf"
Dim resDoc As PDFDocument = New PDFDocument(resFilePath)
' get the 1st page in the document
Dim page As PDFPage = resDoc.GetPage(0)
' get PDFDocument object from a source file
Dim inputFilePath As String = "C:\1.pdf"
Dim doc As PDFDocument = New PDFDocument(inputFilePath)
' append selected page to the end of the PDFDocument
doc.AddPage(page)
' save the PDFDocument
Dim outputFilePath As String = "C:\Output.pdf"
doc.Save(outputFilePath)
Add multiple PDF pages to PDF document using VB.NET
Moreover, you may use the following VB.NET demo code to insert multiple pages of a PDF file to a PDFDocument object at user-defined position.
Dim inputFilePath1 As String = "C:\1.pdf"
Dim inputFilePath2 As String = "C:\2.pdf"
Dim outPutFilePath As String = "C:\Output.pdf"
Dim doc1 As PDFDocument = New PDFDocument(inputFilePath1)
Dim doc2 As PDFDocument = New PDFDocument(inputFilePath2)
' get page 0, page 1 And page 3 from the first document
Dim page0 As PDFPage = doc1.GetPage(0)
Dim page1 As PDFPage = doc1.GetPage(1)
Dim page2 As PDFPage = doc1.GetPage(2)
Dim pages As PDFPage() = New PDFPage() {page0, page1, page2}
' append selected pages to the second document
doc2.AddPages(pages)
' output the New document
doc2.Save(outPutFilePath)