How can I retreive the permissions attribute of the Document

This is a read only forum. It contains the most frequently asked questions about Amyuni products and licensing.
Post Reply
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

How can I retreive the permissions attribute of the Document

Post by Joan »

You can retrieve the permissions attribute of the Document object by using the following code.

[code]Private Sub Command10_Click()

With PDF1
' Add licensing information
' This is typically done only once a From_Load
.SetLicenseKey LicenseTo, ActivationCode

' Open exsiting PDF document
.Open "C:\temp\sample.pdf", ""

If .Protected = 1 Then
Dim lPermissions As Long
lPermissions = .ObjectAttribute("Document", "Permissions")
MsgBox lPermissions
End If

End With

End Sub[/code]
Post Reply