PdfBrokenReferencePolicy enum
What to do with a reference that now points to a page that no longer exists.
The reference can be an explicit destination ([pageRef /XYZ …]), a named
destination, a bookmark, an internal link or the catalog /OpenAction.
Values
- remove → const PdfBrokenReferencePolicy
-
Deletes the entry that carries the reference: the
/Dest//Akey, the name/destination pair of the/Names /Deststree, the bookmark item or the link annotation.It is the default, and each removal becomes a warning in PdfPageCollectionEditor.warnings.
- retarget → const PdfBrokenReferencePolicy
-
Retargets the reference to the page next to the one that left — the first survivor after it, or, if it was the last one, the last before it.
If the document is left with no page at all there is no neighbor, and the behavior falls back to remove.
- throwError → const PdfBrokenReferencePolicy
-
Refuses the operation with a PdfPageEditException before any mutation.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - 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
Constants
-
values
→ const List<
PdfBrokenReferencePolicy> - A constant List of the values in this enum, in order of their declaration.