PdfDocumentActionSink class abstract
The write half of the Document-AI seam: the editing actions an agent can drive, decoupled from any particular model or transport.
This is an interface stub, host-provided. dart-pdf does not ship an
agent. A host implements this over the existing editing surface (a
PdfEditor, or the editing controller in dart_pdf_editor) and wires it
to whatever model loop it runs — the model proposes actions against a
PdfDocumentContext, the host validates them and calls these methods.
Implementations decide their own persistence (incremental save, undo stack) and may reject or clamp out-of-range requests.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addTextNote(
int pageIndex, PdfRect rect, String text) → void -
Adds a free-text annotation with
textatrecton pagepageIndex(maps toPdfAnnotationEditing.addFreeText). -
highlightText(
int pageIndex, int start, int end) → void -
Highlights the text spanning characters
[start, end)of pagepageIndex's extracted text (maps to a markup annotation over the quads from PdfPageText.quadsFor). -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setFormFieldValue(
String fieldName, String value) → void -
Sets the value of the form field named
fieldName(maps toPdfFormEditing.setTextValue/ checkbox / choice setters). -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited