rmapi-js
    Preparing search index...

    Class DocumentPage

    a page of a library document, as it was when handed out

    A call on a page the document no longer lists throws a PageNotFoundError, except delete. A page of a pdf or epub that lists no page ids has no id: it shows the page of its file at its index, nothing is drawn on it, and an edit of it throws a ContentEditError with reason "noPageList" until setPages or setPageCount gives the document ids.

    Index
    document: Document

    the document the page is of

    id: string | undefined

    the page's id, which finds it again with page, or undefined for a page of a document that lists no page ids

    index: number

    the place in the document's page order, counting from zero

    sourcePage: number | undefined

    the page of the document's pdf or epub that it shows, counting from zero, or undefined for a page of its own

    • its highlights: those its .rm file holds, with the edits not yet sent, then those of the .highlights file older firmware wrote for it; a .highlights file that does not read adds none

      Returns Promise<PageHighlight[]>

    • the page as the library has it, or undefined if nothing was drawn on it

      Returns Promise<Page | undefined>

    • its tags as the library has them now, with the edits not yet sent

      Returns Promise<string[]>

    • the template it is drawn over: the one cPages names, or else the one the document's .pagedata gives its place, or undefined if neither names one rmapi knows

      Returns Promise<PageTemplate | undefined>