rmapi-js
    Preparing search index...

    Class ClientPageData

    a document's .pagedata read through a Client, with its reference, to edit and push back

    It reads and edits as a PageData does, and pushes, pulls, merges and gives its file back as a ClientMetadata does. A document without one reads as one that names no template.

    Hierarchy (View Summary)

    Index
    • get hasEdits(): boolean

      whether an edit changes the file from the version as read

      Returns boolean

    • set the template of the page at index, from zero, where the index one past the last page adds a page; a TypeError if name holds a newline

      Parameters

      • index: number
      • name: string

      Returns this

      RangeError if index is not an integer more than one past the last page

    • set the template of every page; a TypeError if a name holds a newline

      Parameters

      • templates: string[]

      Returns this

    • the file with its edits made, as the account holds it

      Returns Uint8Array

    • a .pagedata naming templates, set as edits of a document that has none; a TypeError if a name holds a newline

      Parameters

      • templates: string[]

      Returns PageData