quick_html_pdf 1.0.2 copy "quick_html_pdf: ^1.0.2" to clipboard
quick_html_pdf: ^1.0.2 copied to clipboard

Platformweb

A fast, high-performance Flutter Web package for converting HTML templates with dynamic data into PDFs using JavaScript interoperability.

Changelog #

1.0.2 #

  • Add repository metadata

1.0.1 #

  • Documentation improvements

1.0.0 #

Initial release of QuickHtmlPdf - a fast HTML to PDF conversion package for Flutter Web.

Features #

  • Hybrid PDF Generation Strategy

    • PdfOutput.download: Instant PDF via native browser print (~50ms)
    • PdfOutput.bytes: Returns PDF as Uint8List using html2canvas + jsPDF
  • Template Engine

    • {{key}} - HTML-escaped interpolation
    • {{nested.path}} - Dot notation for nested objects
    • {{{rawHtml}}} - Unescaped HTML insertion
    • {{#each items}}...{{/each}} - Loop blocks
    • {{@index}}, {{@index1}} - Loop index variables
  • PDF Options

    • Page formats: A4, Letter, Legal
    • Orientations: Portrait, Landscape
    • Custom margins
    • Custom header and footer HTML
    • Configurable scale and image quality
  • Print CSS

    • Automatic @page rules for correct sizing
    • Table header repetition across pages
    • Page break utilities (.page-break, .no-break)
  • Large Document Support

    • Chunked rendering for 200+ page documents
    • Memory-efficient sequential page processing
  • Developer Experience

    • Debug mode with timing logs
    • Clear error messages with phase information
    • UnsupportedError on non-web platforms
2
likes
160
points
153
downloads

Publisher

verified publisherharshtonde.com

Weekly Downloads

A fast, high-performance Flutter Web package for converting HTML templates with dynamic data into PDFs using JavaScript interoperability.

Homepage
Repository (GitHub)
View/report issues

Topics

#pdf #html #flutter-web #printing

Documentation

API reference

License

MIT (license)

Dependencies

flutter, web

More

Packages that depend on quick_html_pdf