ProtecteddocProtectedcountProtectedcurrentProtectedcssProtectedrenderProtectedfitProtectedurlsProtectedsizesProtectedrootProtectedpagesProtectedpageProtectedengineEdits drawn but not yet baked into the PDF.
Number of pages currently open.
The page currently in view (1-based).
Current CSS zoom multiplier (1 = 100%).
Delete the currently selected element.
Discard all un-applied edits.
Bake every pending edit into the PDF, then re-render the affected pages.
ProtectedafterHook for subclasses (the editor) to attach per-page overlays.
ProtectedonKeep ruler ticks / handles a constant on-screen size as the zoom changes.
Set page margins (default unit: millimetres).
Current margins in the requested unit (millimetres by default).
Show or hide the rulers and margin guides.
The current document as PDF bytes (including any applied edits).
Open a document; Office/HTML are converted to PDF in-engine. Returns the page count.
ProtectedrenderProtectedpageThe page's width / height in PDF points (raster pixels ÷ render scale).
ProtectedpageProtectedreRe-raster a page after its content changed (drops the cached image).
Scroll/jump to page (clamped to range).
Set an explicit zoom multiplier (cancels any auto-fit mode).
Set zoom as a percentage (e.g. 125).
Reset to 100 % (actual size).
Fit the current page's width to the viewport (sticks across resizes).
Fit the whole current page (width and height) to the viewport.
ProtectedapplyRecompute the zoom for the active fit mode against the current page.
Enter fullscreen single-page presentation mode.
Leave presentation mode.
Close the current document and free its rendered pages.
Destroy the viewer: close the document and detach listeners.
Active auto-fit mode; re-applied on resize and page change.