ExtractTabledStructure.vbs
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | ' Create Bytescout.PDFExtractor.StructuredExtractor object Set extractor = CreateObject( "Bytescout.PDFExtractor.StructuredExtractor" ) extractor.RegistrationName = "demo" extractor.RegistrationKey = "demo" ' Load sample PDF document extractor.LoadDocumentFromFile "../../sample3.pdf" For ipage = 0 To extractor.GetPageCount() - 1 ' starting extraction from page #" extractor.PrepareStructure ipage rowCount = extractor.GetRowCount(ipage) For row = 0 To rowCount - 1 columnCount = extractor.GetColumnCount(ipage, row) For col = 0 To columnCount-1 WScript.Echo "Cell at page #" + CStr (ipage) + ", row=" & CStr (row) & ", column=" & _ CStr (col) & vbCRLF & extractor.GetCellValue(ipage, row, col) Next Next Next |
Click here to get your Free Trial version of the SDK
also available as: