ByteScout Premium Suite - VB.NET - Extract pdf to text as stream with pdf extractor sdk - ByteScout

ByteScout Premium Suite – VB.NET – Extract pdf to text as stream with pdf extractor sdk

  • Home
  • /
  • Articles
  • /
  • ByteScout Premium Suite – VB.NET – Extract pdf to text as stream with pdf extractor sdk

How to extract pdf to text as stream with pdf extractor sdk in VB.NET using ByteScout Premium Suite

How to write a robust code in VB.NET to extract pdf to text as stream with pdf extractor sdk with this step-by-step tutorial

Quickly learn how to extract pdf to text as stream with pdf extractor sdk in VB.NET with this sample source code. ByteScout Premium Suite is the set that includes 12 SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording. It can be applied to extract pdf to text as stream with pdf extractor sdk using VB.NET.

The SDK samples given below describe how to quickly make your application do extract pdf to text as stream with pdf extractor sdk in VB.NET with the help of ByteScout Premium Suite. Follow the instructions from scratch to work and copy the VB.NET code. Enjoy writing a code with ready-to-use sample codes in VB.NET.

You can download free trial version of ByteScout Premium Suite from our website to see and try many others source code samples for VB.NET.

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
      
Imports System.IO Imports Bytescout.PDFExtractor Class Program Friend Shared Sub Main(args As String()) ' Create Bytescout.PDFExtractor.TextExtractor instance Dim extractor As New TextExtractor() extractor.RegistrationName = "demo" extractor.RegistrationKey = "demo" ' Load sample PDF document extractor.LoadDocumentFromFile(".\sample1.pdf") ' Get page count Dim pageCount As Integer = extractor.GetPageCount() For i As Integer = 0 To pageCount - 1 ' Create new stream. You can use MemoryStream or any other System.IO.Stream inheritor. Dim stream As FileStream = New FileStream(".\page" + i.ToString() + ".txt", FileMode.Create) ' Save text from page to the file stream extractor.SavePageTextToStream(i, stream) ' Close stream stream.Dispose() Next ' Cleanup extractor.Dispose() ' Open result file in default associated application (for demo purposes) System.Diagnostics.Process.Start(".\page1.txt") End Sub End Class

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Premium Suite Home Page

Explore ByteScout Premium Suite Documentation

Explore Samples

Sign Up for ByteScout Premium Suite 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 Premium Suite Home Page

Explore ByteScout Premium Suite Documentation

Explore Samples

Sign Up for ByteScout Premium Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next