These sample source codes on this page below are displaying how to convert pdf to csv (merge multiline text to table cell) with pdf extractor sdk in VB.NET. What is ByteScout Premium Suite? It is the set that includes 12 SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording. It can help you to convert pdf to csv (merge multiline text to table cell) with pdf extractor sdk in your VB.NET application.
The SDK samples given below describe how to quickly make your application do convert pdf to csv (merge multiline text to table cell) 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. Further improvement of the code will make it more robust.
Our website gives trial version of ByteScout Premium Suite for free. It also includes documentation and source code samples.
Imports System Imports System.Collections.Generic Imports System.Text Imports Bytescout.PDFExtractor Imports System.Diagnostics Namespace ConsoleApplication1 Class Program Shared Sub Main(ByVal 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("sample3_multiline.pdf") ' You can change CSV separator symbol (if needed) from "," symbol to another if needed for non-US locales 'extractor.CSVSeparatorSymbol = "," ' For multiline cell join extracted cell text into single line extractor.LineGroupingMode = LineGroupingMode.GroupByRows extractor.Unwrap = True ' Save extracted CSV data to file extractor.SaveCSVToFile("output.csv") ' Cleanup extractor.Dispose() Console.WriteLine() Console.WriteLine("Data has been extracted to 'output.csv' file.") Console.WriteLine() Console.WriteLine("Press any key to continue and open CSV in default CSV viewer (or Excel)...") Console.ReadKey() ' Open result file in default associated application (for demo purposes) Process.Start("output.csv") End Sub End Class End Namespace