@sofereditor/export-pdf
v0.2.0
Published
@sofereditor/export-pdf — Serialize the paginated Sofer DOM to self-contained HTML, ready for Puppeteer PDF rendering.
Maintainers
Readme
@sofer/export-pdf
Serialize the paginated Sofer DOM to self-contained HTML.
Includes Puppeteer-friendly templates and standalone serializers. Run Puppeteer (or your printer of choice) over the HTML to get the PDF.
npm install @sofer/export-pdfimport { serializePaginatedHtml, exportPdfFromElement } from '@sofer/export-pdf';
const html = serializePaginatedHtml(editorRoot, { title: 'My document' });
await exportPdfFromElement(editorRoot, { title: 'My document' }); // client-side PDFLicense
AGPL-3.0-or-later © Rafael Marreca. Part of the Sofer editor monorepo.
