Clears error — e.g. when the user dismisses an error banner.
The open document, or null before the first successful load.
The error from the most recent open attempt, or null.
Whether annotation and form edits are allowed by the PDF permission flags.
Whether the document's permissions allow copying text.
Whether page assembly/editing is allowed by the PDF permission flags.
A document is opening. The viewer paints a spinner instead of the old one.
Whether printing is allowed by the PDF permission flags.
Opens a different document imperatively (file picker, application command, …).
Number of pages, or 0 when nothing is open.
Download progress while opening a URL, or null when unknown/idle.
The document's source name (file name or uri%…), or null.
The document state returned by usePdfDocument.