PDFCora AI for Web
    Preparing search index...

    Class PdfAgentSession

    One document an agent works on, with its open proposal sets and undo history.

    Index
    • get document(): PdfDocument

      The document as it is now: applying and undoing replace it.

      Returns PdfDocument

    • Parameters

      • setId: string
      • acceptedIds: readonly string[]
      • edits: Readonly<Record<string, string>> = {}

      Returns Promise<number>

    • Records a proposal set and returns its id.

      Parameters

      • apply: (
            ids: readonly string[],
            edits: Readonly<Record<string, string>>,
        ) => Promise<PdfDocument>
      • ids: readonly string[]

      Returns string

    • Returns Promise<boolean>