the adaptive contrast filter, if the file says
the page the thumbnail comes from, from zero, or "lastVisited"; or
undefined for a number that names no page
the dummyDocument flag
the kind of document
the font, empty for the device's own
the format version of the file
whether an edit changes the file from the version as read
the place in the page order of the page last open
the line height, or undefined for the device's own
the margins, in pixels
how the pages are laid out
the number of pages of the original pdf or epub
the number of pages the file says it has
the size the file says the document has, as text
how text is aligned
the font size
how it is scaled to the screen, or undefined if the file does not say
in a way the core reads, such as a mode it has no name for or a custom
zoom missing a value
add a blank page, returning its id
It edits cPages when the document has it, and else the
pages list, where the page added maps to
no page in redirectionPageMap
and pageCount grows with it.
ContentEditError with reason "noPageList" if the
document lists no page ids, until
setPages gives it some
tag a page
tag the document
the book's details: authors, title, publisher and the like
delete a page: marked deleted in cPages when the document has it, and
else dropped from the pages list with
its redirectionPageMap
entry, pageCount shrinking with it
every key the core does not read
the extra metadata, mostly the pens used and their settings
what the tablet records about typing
put this file's edits on newer, a copy read since, and hold that,
returning the keys both changed to different values, as
Metadata.merge does
ContentMergeError if the two cannot be merged; the file is left as it was
move a page, in cPages when the document has it, and else in the
pages list, with its
redirectionPageMap entry
whether it is an epub the tablet never laid out, which lists no page ids
and has no pdf among bodies, so a reader gives it page ids as the
reMarkable Mac app does
the page list, cPages, which has each page's template name, or
undefined for an older file without one
the ids of the pages, in page order
the tags of pages
for each page of pages, the page of the
pdf or epub it shows, or undefined for a page added
remove a key of the file: a key the core reads clears its field, or sets it to what a file without the key reads it as
Warning: as for setExtra, this can leave the file at odds with itself.
Prefer the field's own setter.
ValidationError if key names a field the file must
have; the file is left as it was
untag a page
untag the document
set the book's details: authors, title, publisher and the like
set the dummyDocument flag, or remove it
set a key of the file: a key the core reads sets its field, and any other
is kept in extra
Warning: a key the core reads is written as given, past the rules its own
setter keeps, so it can leave the file at odds with itself, such as a
pageCount that does not count the pages listed. Prefer the field's own
setter, such as setPages for the page
keys.
ValidationError if value is not a value of the field
key names; the file is left as it was
set the extra metadata, mostly the pens used and their settings
set the font, empty for the device's own
set what the tablet records about typing, or remove it
set originalPageCount, the number of pages of the file the document was
made from, or remove it
Warning: a count the pdf or epub does not have leaves the file at odds with
itself. Prefer setPages, which sets it
with the ids.
set the whole page list, cPages, or remove it
Warning: the list is written as given: timestamps that do not order after
the ones another copy holds lose a merge to them, an author table that
lacks an author of a timestamp cannot be merged, and a list beside pages
hides it from the device. A pageCount that no longer counts the pages
leaves the file at odds with itself. Prefer the page edits, such as
addPage, which stamp each change.
set the page ids of a document without cPages, as the reMarkable Mac
app does on opening a document the tablet never laid out
It sets pages to pages,
redirectionPageMap to
0..n, and pageCount and
originalPageCount to n,
the number of ids, so each page shows the page of the file at its place.
The page edits, such as addPage, can
then be made.
ContentEditError with reason "hasPageList" if the
document has cPages, or "duplicatePage" if pages lists an id twice
set the tags of pages, or remove them
Warning: a tag of a page the document does not list is kept but shows
nowhere, and a merge orders them by when they were added, as for
setTags. Prefer
addPageTag and
removePageTag, which check the
page.
set pageCount, the number of pages, alone
set the pages list alone: undefined removes it, and null writes it
as null
Warning: this writes no redirectionPageMap, pageCount or
originalPageCount, so it can leave counts that do not match the ids, a
map that points past them, the same id twice, or ids beside a cPages
that the device reads instead. Prefer
setPages, which writes them together
and refuses those.
set redirectionPageMap alone, or remove it: for each page of
pages, the page of the pdf or epub it
shows, or -1 for a page added
set the size the file says the document has, as text, or remove it
set the tags, with when each was added, or remove them; tags are written bare, as older firmware writes them, when none has a time, and a tag without one is otherwise written as added at the epoch
set the font size
set the view's transform matrix, or remove it
the tags, with when each was added
the tag names
the file with its edits made, as the account holds it
the file with its edits made, as JSON
the view's transform matrix
StaticcreateStaticfromread a document's .content from what toJSON gave, or a copy of it, as read
from the account at at; the core checks every field
Staticparseread a document's .content from its bytes, read from the account at at
A field the file leaves out or writes as null reads as in a new
document's, a whole number written as 1.0 reads as that number, and a
file without fileType reads as a notebook.
a document's
.content: its pages, tags and how it is shownIts edits are recorded like Metadata's.