Method GetPermissions
GetPermissions(string)
Returns the permission flags of a PDF file.
public static DocumentPermissions GetPermissions(string inputPath)
Parameters
inputPathstringPath to the PDF file.
Returns
- DocumentPermissions
The DocumentPermissions flags.
Exceptions
- ArgumentNullException
Thrown when
inputPathisnull.- FileNotFoundException
Thrown when
inputPathdoes not exist.
GetPermissions(Attachment)
Returns the permission flags of a PDF attachment.
public static DocumentPermissions GetPermissions(Attachment source)
Parameters
sourceAttachmentThe source PDF attachment.
Returns
- DocumentPermissions
The DocumentPermissions flags.
Exceptions
- ArgumentNullException
Thrown when
sourceisnull.- ArgumentException
Thrown when the source attachment is not a PDF.