Display License Info - VBScript
PDF Extractor SDK sample in VBScript demonstrating ‘Display License Info’
DisplayLicenseInfo.vbs
' LicenseInfo can be retrieved by createing instance of any extractor class,
' Because all of them are derived from BaseExtractor
Set extractor = CreateObject("Bytescout.PDFExtractor.TextExtractor")
extractor.RegistrationName = "demo"
extractor.RegistrationKey = "demo"
' Set license Info
Set licenseInfo = extractor.LicenseInfo
outputMsg = "===============================" + vbCRLF
outputMsg = outputMsg + "======== License Info =========" + vbCRLF
outputMsg = outputMsg + "===============================" + vbCRLF
outputMsg = outputMsg + "License type: " & licenseInfo.LicenseType & vbCRLF
outputMsg = outputMsg + "License limit type: " & licenseInfo.LimitType & vbCRLF
outputMsg = outputMsg + "Limit of license units: " & licenseInfo.Limit & vbCRLF
outputMsg = outputMsg + "License limit term: " & licenseInfo.LimitTerm & vbCRLF
outputMsg = outputMsg + "No of remaining license units: " & licenseInfo.Remainder & vbCRLF
outputMsg = outputMsg + "Update expires On: " & licenseInfo.UpdatesExpireOn & vbCRLF
outputMsg = outputMsg + "===============================" + vbCRLF
MsgBox outputMsg
Set extractor = Nothing