Writing of the code to pdf files batch processing with pdf extractor sdk in VBScript can be done by developers of any level using ByteScout Premium Suite. ByteScout Premium Suite helps with pdf files batch processing with pdf extractor sdk in VBScript. ByteScout Premium Suite is the bundle that includes twelve SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording.
The below SDK samples describe how to quickly make your application do pdf files batch processing with pdf extractor sdk in VBScript with the help of ByteScout Premium Suite. If you want to know how it works, then this VBScript sample code should be copied and pasted into your application’s code editor. Then just compile and run it. Use of ByteScout Premium Suite in VBScript is also described in the documentation included along with the product.
Trial version along with the source code samples for VBScript can be downloaded from our website
' Create Bytescout.PDFExtractor.TextExtractor object Set extractor = CreateObject("Bytescout.PDFExtractor.TextExtractor") extractor.RegistrationName = "demo" extractor.RegistrationKey = "demo" ' Get all files in folder Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFolder = objFSO.GetFolder("..\..") Set colFiles = objFolder.Files ' Convert every PDF file to text For Each objFile In colFiles if objFSO.GetExtensionName(objFile) = "pdf" Then ' Load PDF file extractor.LoadDocumentFromFile objFile.Path ' Save extracted text to .txt file extractor.SaveTextToFile Replace(objFile.Name, "." & objFSO.GetExtensionName(objFile),".txt") ' Reset the extractor before load another file extractor.Reset End If Next