rmapi-js
    Preparing search index...

    Class OpenPage

    a page of a document of the library, opened for writing: a copy the library's syncs leave alone until it is closed

    A page is open once at a time, here or as a ClientPage. Close it with await using, which merges its edits into the library's page for the next sync to send.

    Hierarchy (View Summary)

    Implements

    • AsyncDisposable
    Index

    the library's page this is open on, with its document

    • 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

    • merge the edits into the library's page, for the next sync to send

      Returns Promise<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

    • 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