pub struct PdfPermissions<'a> { /* private fields */ }
Expand description

The collection of document permissions and security handler settings for a single PdfDocument.

Note that Pdfium currently only offers support for reading the existing permissions of a document. It does not support changing existing permissions or adding new permissions to a document.

Implementations

Returns the PdfiumLibraryBindings used by this PdfPermissions collection.

Returns the revision of the standard security handler used by the containing PdfDocument. As of PDF version 1.7, possible revision numbers are 2, 3, or 4.

Returns true if the containing PdfDocument can be printed to a representation from which a faithful digital copy of the original content could be recovered.

Returns true if the containing PdfDocument can be only be printed to a low-level representation of the appearance of the document, possibly of degraded quality, from which a faithful digital copy of the original content could not be recovered.

Returns true if the containing PdfDocument can be assembled; that is, the document can have pages inserted, rotated, or deleted, can have bookmarks created, or can have thumbnail page images created.

Returns true if the containing PdfDocument allows general modification of the document contents.

For security handler revisions 3 and later, general document modification can be disabled while still allowing modification of annotations and interactive form fields.

Returns true if the containing PdfDocument permits text and graphics to be extracted.

Returns true if the containing PdfDocument permits any existing form fields, including signature fields, to be filled in by a user.

Returns true if the containing PdfDocument allows the creation of new form fields, including new signature fields.

Returns true if the containing PdfDocument allows the addition or modification of text annotations.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.