VB.NET PDF: How to HTML5 PDF Viewer PDF Create PDF Export File & Page Process PDF Read PDF Write Form Process Document Protect Annotation & Drawing PDF Print WPF PDF Viewer Work with Other SDKs Barcode Read Barcode Create OCR Twain
Page: Delete Existing PDF Pages
  |  
Home ›› XDoc.PDF ›› VB.NET PDF: Delete PDF Page

VB.NET PDF - How to Delete PDF Document Page in VB.NET


Visual Basic Sample Codes to Delete PDF Document Page in VB.NET Class




Free PDF edit control and component for deleting PDF pages in Visual Basic .NET framework application


Support .NET WinForms, ASP.NET MVC in IIS, ASP.NET Ajax, Azure cloud service, DNN (DotNetNuke), SharePoint


Easy to delete PDF page in .NET WinForms application and ASPX webpage


Able to remove a single page from adobe PDF document in VB.NET


Ability to remove consecutive pages from PDF file in VB.NET


Enable specified pages deleting from PDF in Visual Basic .NET class


Free trial SDK library download for Visual Studio .NET program


Online source codes for quick evaluation in VB.NET class


If you are looking for a solution to conveniently delete one page from your PDF document, you can use this VB.NET PDF Library, which supports a variety of PDF file editing features including deleting page using Visual Basic .NET programming language. This library is written in VB.NET code for compatibility in .NET development environment such as Microsoft Visual Basic 2005 / 2008 / 2010 / 2012 version.


With this RasterEdge XDoc.PDF SDK, you can simply delete a single page from a PDF document using VB.NET or remove any page from a PDF document and save to local file for further processing. This page is aimed to help you learn how to delete page from your PDF document in VB.NET application. Please follow the sections below to learn more.




DLLs for Deleting Page from PDF Document in VB.NET Class



In order to run the sample code, the following steps would be necessary.


Add necessary references:


  RasterEdge.Imaging.Basic.dll


  RasterEdge.Imaging.Basic.Codec.dll


  RasterEdge.Imaging.Drawing.dll


  RasterEdge.Imaging.Font.dll


  RasterEdge.Imaging.Processing.dll


  RasterEdge.XDoc.Raster.dll


  RasterEdge.XDoc.Raster.Core.dll


  RasterEdge.XDoc.PDF.dll


Use corresponding namespaces;


  using RasterEdge.Imaging.Basic;


  using RasterEdge.XDoc.PDF;




How to VB.NET: Delete a Single PDF Page from PDF File



This is a VB .NET example for how to delete a single page from a PDF document.




Dim filepath As String = ""
Dim outPutFilePath As String = ""
Dim doc As PDFDocument = New PDFDocument(filepath)

' Detele page 2 (actually the third page).
doc.DeletePage(2)

' Save the file.
doc.Save(outPutFilePath)





How to VB.NET: Delete Consecutive Pages from PDF



This is a VB .NET example for how to delete a range of pages from a PDF document.




Dim filepath As String = ""
Dim outPutFilePath As String = ""
Dim doc As PDFDocument = New PDFDocument(filepath)

' Detele a series of 3 pages, starting from the second page. 
doc.DeletePages(1, 3)

' Save the file.
doc.Save(outPutFilePath)





How to VB.NET: Delete Specified Pages from PDF



This is a VB .NET example for how to delete several defined pages from a PDF document.




Dim filepath As String = ""
Dim outPutFilePath As String = ""
Dim doc As PDFDocument = New PDFDocument(filepath)

' Get PageIndexes.
Dim detelePageindexes = New Integer() {1, 3, 5, 7, 9}

' Delete pages.
doc.DeletePages(detelePageindexes)

' Save the file.
doc.Save(outPutFilePath)