PDF Export
Export your content as a downloadable PDF file with high quality.
Features
Generates high-quality PDF files
Automatic multi-page support for long documents
Preserves all formatting and styles
Handles images and tables
A4 format with proper margins
Automatic filename with timestamp
Loading indicator during generation
How to Use
- Click the 📄 "Export to PDF" button in the toolbar
- Wait for the PDF to be generated (loading indicator will show)
- PDF file will automatically download to your downloads folder
- Filename format:
document-YYYY-MM-DD.pdf
Example
<HeliosEditor
value={content}
onChange={setContent}
toolbarOptions={[
'bold', 'italic', 'underline',
'headings', 'insertImage',
'importWord', // Import from Word
'exportWord', // Export to Word
'exportPDF' // Export to PDF (with download)
]}
/>Technical Details
Page Format
A4 (210mm x 297mm)
Orientation
Portrait
Quality
High resolution (scale: 2)
Image Support
All images are embedded in PDF
Multi-page
Automatically splits long content across pages
Libraries Used
PDF export uses the following libraries:
- jsPDF - PDF generation
- html2canvas - HTML to canvas conversion