The coding instructions are formulated to help you to try-out the features without the requirement to write your own code. ByteScout Data Extraction Suite is the bundle that includes three SDK tools for data extraction from PDF, scans, images and from spreadsheets: PDF Extractor SDK, Data Extraction SDK, Barcode Reader SDK and you can use it to extract pages from pdf with pdf extractor sdk with VBScript.
These VBScript code samples for VBScript guide developers to speed up coding of the application when using ByteScout Data Extraction Suite. Follow the instructions from scratch to work and copy the VBScript code. This basic programming language sample code for VBScript will do the whole work for you to extract pages from pdf with pdf extractor sdk.
Trial version of ByteScout Data Extraction Suite is available for free. Source code samples are included to help you with your VBScript app.
' Create Bytescout.PDFExtractor.DocumentSplitter object Set splitter = CreateObject("Bytescout.PDFExtractor.DocumentSplitter") splitter.RegistrationName = "demo" splitter.RegistrationKey = "demo" inputFile = "sample.pdf" ' Enable optimization of output documents splitter.OptimizeSplittedDocuments = true splitter.ExtractPage inputFile, "page3.pdf", 3 ' (!) Note: page number is 1-based. WScript.Echo "Extracted page 3 to file page3.pdf" ' Split in two parts: ' =================== splitter.Split inputFile, "part1.pdf", "part2.pdf", 3 ' (!) Note: page number is 1-based. WScript.Echo "Splitted at page 3 to files part1.pdf and part2.pdf" ' Split by ranges: ' ================ ' SplitCOM() returns array with a list of filenames splittedParts = splitter.SplitCOM(inputFile, "1-3,4-6,7,8-") ' (!) Note: page numbers are 1-based; ending "-" means "to the end". WScript.Echo "Splitted by ranges sucessfully" ' Display list of generated outputfiles For Each file in splittedParts Wscript.Echo file Next