ByteScout PDF Extractor SDK - VB.NET - Extract Pages from PDF - ByteScout

ByteScout PDF Extractor SDK – VB.NET – Extract Pages from PDF

  • Home
  • /
  • Articles
  • /
  • ByteScout PDF Extractor SDK – VB.NET – Extract Pages from PDF

How to extract pages from PDF in VB.NET with ByteScout PDF Extractor SDK

This code in VB.NET shows how to extract pages from PDF with this how to tutorial

Learn how to extract pages from PDF in VB.NET with this source code sample. ByteScout PDF Extractor SDK is the SDK that helps developers to extract data from unstructured documents, pdf, images, scanned and electronic forms. Includes AI functions like automatic table detection, automatic table extraction and restructuring, text recognition and text restoration from pdf and scanned documents. Includes PDF to CSV, PDF to XML, PDF to JSON, PDF to searchable PDF functions as well as methods for low level data extraction. It can be used to extract pages from PDF using VB.NET.

The SDK samples like this one below explain how to quickly make your application do extract pages from PDF in VB.NET with the help of ByteScout PDF Extractor SDK. Follow the instructions from the scratch to work and copy the VB.NET code. Detailed tutorials and documentation are available along with installed ByteScout PDF Extractor SDK if you’d like to dive deeper into the topic and the details of the API.

Free trial version of ByteScout PDF Extractor SDK is available on our website. Documentation and source code samples are included.

On-demand (REST Web API) version:
 Web API (on-demand version)

On-premise offline SDK for Windows:
 60 Day Free Trial (on-premise)

Program.vb
      
' This example demonstrates various PDF document splitting scenarios: ' - extract a single page; ' - split in two parts; ' - split by ranges specified in text form: "1-5,6,7-10,11-". Imports System.IO Imports Bytescout.PDFExtractor Class Program Friend Shared Sub Main(args As String()) Dim inputFile As String = ".\sample.pdf" Using splitter As New DocumentSplitter("demo", "demo") splitter.OptimizeSplittedDocuments = True ' Extracting specific page: ' ========================= splitter.ExtractPage(inputFile, "page3.pdf", 3) ' (!) Note: page number is 1-based. Console.WriteLine("Extracted page 3 to file ""page3.pdf""") Console.WriteLine() ' Split in two parts: ' =================== splitter.Split(inputFile, "part1.pdf", "part2.pdf", 3) ' (!) Note: page number is 1-based. Console.WriteLine("Splitted at page 3 to files ""part1.pdf"" and ""part2.pdf""") Console.WriteLine() ' Split by ranges: ' ================ Dim files As String() = splitter.Split(inputFile, "1-3,4-6,7,8-") ' (!) Note: page numbers are 1-based; ending "-" means "to the end". Console.WriteLine("Splitted by ranges: ") For Each file As String In files Console.WriteLine(" " & Path.GetFileName(file)) Next End Using Console.WriteLine() Console.WriteLine("Press any key...") Console.ReadKey() End Sub End Class

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout PDF Extractor SDK Home Page

Explore ByteScout PDF Extractor SDK Documentation

Explore Samples

Sign Up for ByteScout PDF Extractor SDK Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

VIDEO

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout PDF Extractor SDK Home Page

Explore ByteScout PDF Extractor SDK Documentation

Explore Samples

Sign Up for ByteScout PDF Extractor SDK Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next