Hiyve Components - v1.0.0
    Preparing search index...

    Function exportNoteToPdf

    • Export note content to PDF using browser print functionality.

      Parameters

      Returns Promise<void>

      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',
      });
      };