rmapi-js
    Preparing search index...

    Interface DocumentOptions

    how a new document is set up; each field left out takes the device's default

    interface DocumentOptions {
        authors?: string[];
        backgroundFilter?: BackgroundFilter;
        cover?: number | "lastVisited";
        extraMetadata?: Record<string, Json>;
        fontName?: string;
        lineHeight?: number;
        margins?: number;
        orientation?: Orientation;
        publicationDate?: string;
        publisher?: string;
        starred?: boolean;
        tags?: string[];
        textAlignment?: TextAlignment;
        textScale?: number;
        title?: string;
        zoom?: Zoom;
    }
    Index
    authors?: string[]

    the book's authors

    backgroundFilter?: BackgroundFilter

    the adaptive contrast filter, as the file spells it, such as "off"

    cover?: number | "lastVisited"

    the page the thumbnail comes from, from zero, or the page last visited

    extraMetadata?: Record<string, Json>

    the extra metadata, mostly the pens used and their settings

    fontName?: string

    the font, empty for the device's own

    lineHeight?: number

    the line height

    margins?: number

    the margins, in pixels

    orientation?: Orientation

    how the pages are laid out

    publicationDate?: string

    the book's publication date, as text

    publisher?: string

    the book's publisher

    starred?: boolean

    whether it is starred

    tags?: string[]

    the document's tags

    textAlignment?: TextAlignment

    how text is aligned, as the file spells it, such as "justify"

    textScale?: number

    the font size

    title?: string

    the book's title

    zoom?: Zoom

    how it is scaled to the screen