Skip to content

PdfViewEphemeralState

Unofficial

Ephemeral state that a PDF view reads in setEphemeralState.

Import:

import type { PdfViewEphemeralState } from '@obsidian-typings/obsidian-catalyst-latest';

Signature:

export interface PdfViewEphemeralState

Properties

PropertyTypeDescription
focus?booleanWhether the PDF viewer should receive focus.
subpath?stringLink subpath to navigate to, such as #page=3.

Workspace.openLinkText puts it here, and the view applies it to the PDF viewer.