Want to speed up the application development? Then this VBScript, code samples for VBScript, developers help to speed up the application development and writing a code when using ByteScout PDF Suite. Just copy and paste this VBScript sample code to your VBScript application’s code editor, add a reference to ByteScout PDF Suite (if you haven’t added yet) and you are ready to go! Check these VBScript sample code examples to see if they acknowledge to your needs and requirements for the project.
Trial version can be downloaded from our website for free. It contains this and other source code samples for VBScript.
' Create Bytescout.PDFExtractor.AttachmentExtractor object Set AttachmentExtractor = CreateObject("Bytescout.PDFExtractor.AttachmentExtractor") AttachmentExtractor.RegistrationName = "demo" AttachmentExtractor.RegistrationKey = "demo" ' Load sample PDF document with embedded attachments AttachmentExtractor.LoadDocumentFromFile("..\..\ZUGFeRD-invoice.pdf") ' Walk through attachments and save them For i = 0 To AttachmentExtractor.Count - 1 ' Save file to current folder with original name AttachmentExtractor.Save i, AttachmentExtractor.GetFileName(i) Next WScript.Echo "Done! Click OK to open the XML invoice" Set extractor = Nothing