PdfFile class final

A PDF in a file on disk. The job opens the file when it needs it and closes it when it is done, on success, error and cancel: a FileSource you open yourself stays yours to close.

await pdf.editOnce(PdfFile(File('in.pdf')), output).addWatermark('DRAFT');
Inheritance

Constructors

PdfFile(File file, {String? password})
Opens file, with password when it is encrypted.

Properties

hashCode → int
The hash code for this object.
no setterinherited
password → String?
The password that opens the document, or null when it has none.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited