Link Search Menu Expand Document

Census Table from Life and Annuity quote request PDF - VB.NET

PDF Extractor SDK sample in VB.NET demonstrating ‘Census Table from Life and Annuity quote request PDF’

Program.vb
Imports System.Diagnostics
Imports Bytescout.PDFExtractor

Class Program
    Friend Shared Sub Main(args As String())

        ' Create Bytescout.PDFExtractor.CSVExtractor instance
        Dim extractor As New CSVExtractor()
        extractor.RegistrationName = "demo"
        extractor.RegistrationKey = "demo"

        ' Load sample PDF document
        extractor.LoadDocumentFromFile(".\SampleGroupDisabilityForm.pdf")

        ' Set extraction area
        extractor.SetExtractionArea(New Drawing.RectangleF(27.0F, 324.8F, 554.3F, 358.5F))

        ' Check whether rows can be grouped
        extractor.LineGroupingMode = LineGroupingMode.GroupByRows

        ' Extract results
        Dim outputFile As String = "result.csv"
        extractor.SaveCSVToFile(outputFile)

        ' Cleanup
        extractor.Dispose()

        ' Open with default associated program
        Process.Start(outputFile)

    End Sub
End Class

Download Source Code (.zip)

Return to the previous page Explore PDF Extractor SDK


Copyright © 2016 - 2021 ByteScout