Copy

API Reference

Public exports available from the @imggion/html2realpdf package root.

ON_THIS_PAGE
  1. Primary functions
  2. Result handles
  3. Configuration
  4. Errors

The TypeScript package root is the only public entry point.

import html2pdf, {
  createRenderer,
  renderPdf,
  type RenderOptions,
} from "@imggion/html2realpdf";

The generated reference follows bindings/js/src/index.ts and the package export map. It excludes raw Worker, snapshot, page normalization, and WebAssembly bridge modules that are not exported to package users.

Primary functions

Result handles

  • PdfDocument owns PDF bytes, object URLs, and previews.
  • PdfPreview controls the in-page canvas viewer.
  • Html2RealPdf is the reusable renderer returned by createRenderer.

Configuration

Errors

All public wrapper errors extend Html2RealPdfError. Its code value is stable for control flow and telemetry.

Open the generated API index for every function, interface, type alias, and class.

ON_THIS_PAGE
  1. Primary functions
  2. Result handles
  3. Configuration
  4. Errors
html2realpdf documentationCopyright © Imggion
DOCUMENTATION_TREE