rmapi-js
    Preparing search index...

    Class ClientPage

    a page of a document read through a Client, which it edits as its own install, to push back

    The client holds one copy of a page at a time: asking for it again while this one is held fails with an AlreadyOpenError. Dispose of it, with using or intoInner, to let the client hand the page out again. It pushes and pulls as a ClientMetadata does.

    Hierarchy (View Summary)

    Implements

    • Disposable
    Index
    id: string

    the page's id

    • get contentBounds(): StrokeBounds | undefined

      the smallest rectangle holding everything on the page, or undefined for an empty page; a maxY past the screen height is the height for PageSize.scrolled

      Returns StrokeBounds | undefined

    • get formatVersion(): 3 | 5 | 6

      the .rm format version the page is written in: 3, 5 or 6

      Returns 3 | 5 | 6

    • get legacyVersion(): 5 | 3 | undefined

      3 or 5 for a page of that older version, which can only be read

      Returns 5 | 3 | undefined

    • get paperSize(): [width: number, height: number] | undefined

      the page size in device pixels, if the page records one

      Returns [width: number, height: number] | undefined

    • get readOnly(): boolean

      whether the page can only be read: a version 3 or 5 page, or a damaged one

      Returns boolean

    • get screen(): [width: number, height: number]

      the screen the page was drawn on, upright, in its pixels: the size it records, or the reMarkable 2's for a page that records none

      Returns [width: number, height: number]

    • get textWidth(): number | undefined

      the typed text's width setting, named by TextWidth, if the page records one

      Returns number | undefined

    • let the page go, so the client can hand it out again

      Returns void

    • how the page's coordinates land on the page shown standing orientation over over, or undefined over a document page whose size is not a finite number above 0

      A version 6 page counts x from the page's center line and, over a document page, 227 of its units to the inch of the PDF page; a version 3 or 5 page counts x from the left edge, fits a document page to the 1404×1872 screen, and records a landscape page on the upright screen, which the transform turns a quarter counterclockwise. The rectangles of a .highlights file count as a version 5 page's do, upright.

      Parameters

      Returns PageTransform | undefined

    • merge the edits onto the account's copy, as ClientMetadata.pull does

      Returns Promise<void>

    • write the page, and resolve to the document's new reference, as ClientMetadata.push does; a page the document does not list fails with a PageNotFoundError, unless a .content pushed with it in a batch lists it

      Parameters

      Returns Promise<DocumentRef>

    • the page's size as a document standing orientation shows it, taller than the screen for a version 6 page written further down than one screen; the size to lay its template out on

      Parameters

      Returns PageSize