rmapi-js
    Preparing search index...

    Class PageViewAbstract

    the reads every page shares: its layers, strokes, highlights and typed text, and what changed since a version

    The reads come from one copy of the whole page out of the core, made again only once the page's version has moved.

    Hierarchy (View Summary)

    Index
    • 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

    • the install ids the page's author table lists

      Returns string[]

    • what a reader shows differently since version, as steps to apply in order; or everything the page shows from nothing, when version is omitted or too far back to say

      Parameters

      Returns PageChanges

    • 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

    • the highlight a slot names, if it names one

      Parameters

      • slot: bigint

      Returns Highlight | undefined

    • 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

    • the stroke a slot names, if it names one

      Parameters

      • slot: bigint

      Returns Stroke | undefined

    • the page as a .rm file

      Returns Uint8Array