THPDFFormEditSession Class

Bündelt geladene AcroForm-Edits in einer Transaktion mit Undo-Historie, Dirty-Field-Verfolgung, neu erzeugten Appearances und eingeschränkten Event-Actions

Deklaration

THPDFFormEditSession = class(TObject)
public
  function SetFieldValue(const FieldName, Value: AnsiString): Boolean;
  function Undo: Boolean;
  function Redo: Boolean;
  procedure BindEventAction(const FieldName: AnsiString;
    EventKind: THPDFFormEventKind;
    const Action: THPDFConstrainedFormAction);
  function DispatchEvent(const FieldName: AnsiString;
    EventKind: THPDFFormEventKind;
    out AResult: THPDFFormEventResult): Boolean;
  procedure Commit;
  procedure Rollback;
  function DirtyFieldCount: Integer;
  function DirtyFieldName(Index: Integer): AnsiString;
  property Closed: Boolean read FClosed;
end;

Unit

HPDFDoc

Erzeugung

Sitzungen erzeugt THotPDF.BeginLoadedFormEditSession für ein geladenes Dokument mit mindestens einem Formularfeld; der Aufrufer besitzt die zurückgegebene Sitzung und gibt sie frei

Verwendungshinweise

Verwandte APIs