Table of Contents

Method GetPermissions

Namespace
LMKit.Document.Pdf
Assembly
LM-Kit.NET.dll

GetPermissions(string)

Returns the permission flags of a PDF file.

public static DocumentPermissions GetPermissions(string inputPath)

Parameters

inputPath string

Path to the PDF file.

Returns

DocumentPermissions

The DocumentPermissions flags.

Exceptions

ArgumentNullException

Thrown when inputPath is null.

FileNotFoundException

Thrown when inputPath does not exist.

GetPermissions(Attachment)

Returns the permission flags of a PDF attachment.

public static DocumentPermissions GetPermissions(Attachment source)

Parameters

source Attachment

The source PDF attachment.

Returns

DocumentPermissions

The DocumentPermissions flags.

Exceptions

ArgumentNullException

Thrown when source is null.

ArgumentException

Thrown when the source attachment is not a PDF.

Share