How to Start Convert PDF Work with PDF Modules PDF Document PDF Pages Text Image Graph & Path Annotation, Markup & Drawing Redaction Security Digital Signature Forms Watermark Bookmark Link File Attachment File Metadata Printing Work with Other SDKs Barcode read Barcode create OCR Twain

PDF Pages VB.NET Library
How to split PDF pages into multiple PDFs using VB.NET


VB.NET PDF Document Splitter Control to Disassemble PDF Document in Visual Basic .NET Project





In this VB.NET tutorial, you will learn how to split, separate PDF document pages in the VB.NET Windows Forms, WPF, and console application

  • Split PDF pages into multiple files
  • Split multiple PDF files
  • Split PDF pages by number of pages, output file size, pdf bookmarks

How to seperate PDF pages using VB.NET

  1. Download XDoc.PDF document pages manager VB.NET library
  2. Install VB library to split PDF file pages
  3. Step by Step Tutorial












  • Professional VB.NET PDF file splitting SDK for Visual Studio, .NET Core and .NET Framework
  • C# how to page at Split PDF document using C#
  • Support .NET WinForms, ASP.NET MVC in IIS, ASP.NET Ajax, Azure cloud service, DNN (DotNetNuke), SharePoint
  • Split PDF file into two or multiple files in ASP.NET webpage online
  • Support to break a large PDF file into smaller files in .NET WinForms
  • Separate source PDF document file by defined page range in VB.NET class application
  • Divide PDF file into multiple files by outputting PDF file size
  • Split PDF document by PDF bookmark and outlines in VB.NET
  • Independent component for splitting PDF document in preview without using external PDF control
  • Provide free .NET library download and online Visual Basic .NET class source codes


How to split & disassemble source PDF document file in VB.NET class application? The VB.NET PDF document splitter control provides VB.NET developers an easy to use solution that they can split target multi-page PDF document file to one-page PDF files or they can separate source PDF file to smaller PDF documents by every given number of pages. This online VB tutorial aims to illustrate the process of PDF document splitting.



asp net replace text fro pdf free, asp.net edit pdf, pdf preview in asp.net c#, mvc pdf viewer, asp.net view tiff image, asp.net mvc open word document in browser, pdf viewer for asp.net web application.







How to split PDF pages into multiple pdf files using VB.NET code?

The following steps and sample VB.NET code will show how to quickly split PDF pages to multiple PDF documents in Visual Basic .NET application.

The following VB.NET example code will split a PDF file into 4 new PDF files.

  • File 0: contains page 0 of the original PDF file
  • File 1: contains page 1 and page 2 of the original PDF file
  • File 2: contains page 3 and page 4 of the original PDF file
  • File 3: contains page 5, and the remainer pages of the original PDF file


  1. Define a Integer array to hold the new splitted PDF file page index
  2. Define a String array to contain the new PDF file names
  3. Create a new PDFPage object from the first page of the PDF document
  4. Call PDFDocument.SplitDocument() to split the PDF pages into multiple PDF files



Dim inputFilePath As String = "C:\1.pdf"
Dim outputFileName As String = "Output"
' valid value For Each index: 1 to (Page Count - 1)
Dim splitIndex As Integer() = New Integer() {1, 3, 5}

' create output file path list
Dim outputFilePaths As List(Of String) = New List(Of String)
For i As Integer = 0 To splitIndex.Length
    outputFilePaths.Add("C:\" + outputFileName + "_" + i.ToString() + ".pdf")
Next i

' split input file to 4 files
' file 0 page 0
' file 1: page 1 ~ 2
' file 2: page 3 ~ 4
' file 3: page 5 ~ last page
PDFDocument.SplitDocument(inputFilePath, splitIndex, outputFilePaths.ToArray())






Separate PDF document advanced settings

Use XDoc.PDF SDK document splitter functions to separate one or more PDFs into multiple PDF documents by setting the number of pages, output PDF file size, or PDF bookmarks.







How to split, divide PDF document by number of pages using VB.NET

Dim inputFilePath As String = "C:\1.pdf"

' set split option
Dim options As SplitOptions = New SplitOptions(SplitMode.ByPage)
' limit the pages of each file to 8 pages
options.MaxPages = 8
' set output option
Dim outputOps As SplitOutputOptions = New SplitOutputOptions()
outputOps.OutputFolder = "C:\"
outputOps.Mode = 2
outputOps.Label = "Part"
outputOps.Separator = "_"c
' Split() a PDF file With options
PDFDocument.SplitDocument(inputFilePath, options, outputOps)





How to split, break pdf file by output file size using VB.NET

Dim inputFilePath As String = "C:\1.pdf"

' set split option
Dim options As SplitOptions = New SplitOptions(SplitMode.BySize)
' limit the size of each file to 0.1M bytes
options.MaxSize = 0.1F
' set output option
Dim outputOps As SplitOutputOptions = New SplitOutputOptions()
outputOps.OutputFolder = "C:\"
outputOps.Mode = 2
outputOps.Label = "Part"
outputOps.Separator = "_"c
' Split() a PDF file With options
PDFDocument.SplitDocument(inputFilePath, options, outputOps)







How to split, divide pdf file by top level bookmarks in Visual Basic .NET code

Dim inputFilePath As String = "C:\2.pdf"

' set split option
Dim options As SplitOptions = New SplitOptions(SplitMode.ByBookMark)
' set output option
Dim outputOps As SplitOutputOptions = New SplitOutputOptions()
outputOps.OutputFolder = "C:\"
outputOps.Mode = 2
outputOps.Label = "Part"
outputOps.Separator = "_"c
' Split() a PDF file With options
PDFDocument.SplitDocument(inputFilePath, options, outputOps)