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 extract images from pdf with pdf extractor sdk. Just copy and paste the code into your VBScript application’s code and follow the instructions. Use of ByteScout PDF Suite in VBScript is also described in the documentation included along with the product.
Our website gives trial version of ByteScout PDF Suite for free. It also includes documentation and source code samples.
' Create Bytescout.PDFExtractor.ImageExtractor object Set extractor = CreateObject("Bytescout.PDFExtractor.ImageExtractor") extractor.RegistrationName = "demo" extractor.RegistrationKey = "demo" ' Load sample PDF document extractor.LoadDocumentFromFile("..\..\sample1.pdf") i = 0 ' Initialize image enumeration If extractor.GetFirstImage() Then Do outputFileName = "image" & i & ".png" ' Save image to file extractor.SaveCurrentImageToFile outputFileName i = i + 1 Loop While extractor.GetNextImage() ' Advance image enumeration End If ' Open first output image in default associated application Set shell = CreateObject("WScript.Shell") shell.Run "image0.png", 1, false Set shell = Nothing Set extractor = Nothing