Want to quickly learn? This fast application programming interfaces of ByteScout PDF Suite for VBScript plus the guidelines and the code below will help you quickly learn how to convert pdf to csv (merge multiline text to table cell) with pdf extractor sdk. This VBScript sample code is all you need for your app. Just copy and paste the code, add references (if needs to) and you are all set! Further improvement of the code will make it more robust.
You can download free trial version of ByteScout PDF Suite from our website to see and try many others source code samples for VBScript.
' Create Bytescout.PDFExtractor.CSVExtractor object Set extractor = CreateObject("Bytescout.PDFExtractor.CSVExtractor") extractor.RegistrationName = "demo" extractor.RegistrationKey = "demo" ' Load sample PDF document extractor.LoadDocumentFromFile "../../sample3_multiline.pdf" ' You can change CSV separator and quotation symbols if needed 'extractor.CSVSeparatorSymbol = "," 'extractor.CSVQuotaionSymbol = "'" ' For multiline cell join extracted cell text into single line extractor.LineGroupingMode = 1 'LineGroupingMode.GroupByRows extractor.Unwrap = True extractor.SaveCSVToFile "output.csv" WScript.Echo "Extracted data saved to 'output.csv' file."