Export note content to PDF using browser print functionality.
Export options
This utility creates a print-friendly version of the note content and triggers the browser's print dialog, which allows users to save as PDF.
const handleExportPdf = async () => { await exportNoteToPdf({ title: 'Meeting Notes', htmlContent: editor.getHTML(), authorName: 'John Doe', });}; Copy
const handleExportPdf = async () => { await exportNoteToPdf({ title: 'Meeting Notes', htmlContent: editor.getHTML(), authorName: 'John Doe', });};
Export note content to PDF using browser print functionality.