PDF Converter Script
Screipt provided will change the password associated with the PDF Printer AMYUNI Documet Converter 400.
This had to be automated as our PVS environment couldnt be updated everytime we wanted to change the devices password company wide.
START SCRIPT—————————————————–
Option Explicit
‘ This VB script can be used to configure the installed printer
Dim PRINTER_NAME
PRINTER_NAME = “PDFPRNxx”
Dim PDF
‘for version 4
Set PDF = CreateObject(“cdintfex.cdintfex”)
‘for version 4.5
‘Set PDF = CreateObject(“cdintfex.cdintfex.4.5”)
PDF.DriverInit (PRINTER_NAME)
‘/*////////////////////////////////////////////////////////////
‘Permission Permission value
‘Enable Printing – 64 + 4
‘Enable document modification – 64 + 8
‘Enable copying text and graphics – 64 + 16
‘Enable adding and changing notes – 64 + 32
‘To combine multiple options,
‘use -64 plus the values 4, 8, 16 or 32. E.g. to enable
‘*/
‘//1 = 40-bit encryption
‘//2 = 128-bit encryption
PDF.Encryption = 2
‘PDF.OwnerPassword = “owner”
PDF.UserPassword = “password”
‘MsgBox “pwd set”
‘PDF.Permissions = (-64 + 32)
‘//Apply changes
PDF.SetDefaultConfig
Set PDF = Nothing
‘MsgBox “done”