|
Add the user password to existing PDF File without displaying or decoding any of the images.
Public Function PDFEditEncrypt( _ ByVal strSourceFile As String, _ ByVal strOutputFile As String, _ ByVal strUserPass As String, _ ByVal strOwnerPass As String ) As Bool
|
Parameter
strSourceFile The source of PDF File.
strOutputFile The output of PDF File.
strUserPass The string of user password.
strOwnerPass The string of owner password.
Return Value Return true if successful, otherwise return false.
Example
|
Visual Basic Syntax ImageViewer1.PDFEditEncrypt "c:\sourcepdf.pdf", 1, "c:\output.pdf", "123", "123"
|
|
|