PackageTrack
Sign in Get early access

htmltopdfwidgets

A Dart package that converts HTML and Markdown rich text content into high-quality PDF widgets. Simplify the creation of PDF documents by seamlessly transforming your structured text content into printable, professional PDFs. Perfect for generating reports, invoices, and more!

2.1.1 14K downloads/mo #2560 most downloaded on pub.dev alihassan143/htmltopdfwidgets

What this package is like to depend on

Last release 4 months ago

16 Apr 2026

Release timing varies

gaps range from 1 weeks to 7 months

Nearly every release is documented

notes for 30 of 31 stable releases

Nothing withdrawn

no release was ever pulled

3 years old

33 releases · first in 2023

6 releases in the last 12 months

see the full history below

Release timeline

33 releases · Apr 2023 to Apr 2026
2024 2025 2026
Release Pre-release

Releases

latest 33
  1. 2.1.1 16 Apr 2026
    Release notes
    • Branding & Documentation:
      • Updated package logo with a modern, futuristic design.
      • Fixed broken "Buy Me a Coffee" icon on pub.dev by using a more stable button URL.
      • Improved README branding and asset link stability for better pub.dev compatibility.
    Open source →
  2. 2.1.0 16 Apr 2026
    Release notes
    • Layout-First Rendering Engine: Major architectural refactor for Chrome-like PDF accuracy.
      • Calculated Constraints: Every element now undergoes a virtual layout pass to resolve CSS Box Model constraints (padding, border, margin) before widget generation.
      • Standardized Unit Conversion: Implemented $1px = 0.75pt$ scaling to ensure PDF layouts precisely match browser/web views.
      • Native Flexbox Support: Added display: flex support with mapping to pw.Flex. Supports flex-grow, flex-direction, justify-content, and align-items.
      • Enhanced Table Support: Tables now support repeating headers across pages, cell alignment, and native PDF borders/backgrounds.
      • Improved Page Spanning: Refined block detection to allow long content (paragraphs, blockquotes, headers) to bridge across pages without "exceeded page height" errors.
    • Refactored Codebase: Decoupled parsing (HtmlParser), layout calculation (LayoutSolver), and PDF construction (PdfBuilder) for better extensibility.
    Open source →
  3. 2.0.1 21 Jan 2026
    Release notes
    • Fixes:
      • (#63) feat: add .gitignore and remove ignored files by @alihassan143
      • (#63) fix: fixed issue of pdf generation when text for table cell is very long by @AbhishekDoshi26
      • (#63) fix: fixed pipeline by @AbhishekDoshi26
      • (#63) fix: removed whitespace in paragraph starting by @AbhishekDoshi26
      • (#63) fix: fixed column header background color by @AbhishekDoshi26
      • (#61) feat: Update legacy HTML to widgets and browser PDF builder, generating new test and example PDF outputs by @AbhishekDoshi26.
    Open source →
  4. 2.0.0 20 Dec 2025
    Release notes
    • New Architecture: Introduced a "Browser Rendering Engine" architecture for more robust HTML to PDF conversion.
      • Style Engine: Comprehensive CSS parsing and cascading support.
      • Render Tree: Intermediate DOM representation with fully computed styles.
      • PDF Builder: Modular PDF widget generation with better layout handling.
    • Unified API: Updated HTMLToPdf.convert to support the new engine via useNewEngine: true.
    • Checkbox Enhancements:
      • Fixed inline rendering of checkboxes (now flow with text).
      • Improved vertical alignment (centered by default, respects vertical-align).
    • Multi-Language Support:
      • Added textDirection support for RTL languages (Arabic, Hebrew).
      • Added fontFallback support for Emojis and complex scripts in the new engine.
    • Enhanced Element Support:
      • Improved Table rendering with full CSS support (borders, padding, background).
      • Better List handling (nested lists, custom bullets).
      • Support for blockquote, pre, code, hr, checkbox, and more.
    • Rendering Improvements:
      • Fixed inline content rendering (bold, italic, mixed text).
      • Fixed list item text visibility.
      • Optimized default spacing to match legacy engine.
    • Custom Styles: Added full support for HtmlTagStyle in the new engine.
    • Robustness: Improved error handling for images and fonts.
    • Legacy Support: Maintained full backward compatibility with the legacy engine (default).
    Open source →
  5. 2.0.0-beta.2 05 Dec 2025 pre-release
    Release notes
    • Checkbox Enhancements:
      • Fixed inline rendering of checkboxes (now flow with text).
      • Improved vertical alignment (centered by default, respects vertical-align).
    • Multi-Language Support:
      • Added textDirection support for RTL languages (Arabic, Hebrew).
      • Added fontFallback support for Emojis and complex scripts in the new engine.
    • Robustness:
      • Improved error handling for images and fonts.
    Open source →
  6. 2.0.0-beta.1 04 Dec 2025 pre-release
    Release notes
    • New Architecture: Introduced a "Browser Rendering Engine" architecture for more robust HTML to PDF conversion.
      • Style Engine: Comprehensive CSS parsing and cascading support (lib/src/browser/css_style.dart).
      • Render Tree: Intermediate DOM representation with fully computed styles (lib/src/browser/render_node.dart).
      • PDF Builder: Modular PDF widget generation with better layout handling (lib/src/browser/pdf_builder.dart).
    • Unified API: Updated HTMLToPdf.convert to support the new engine via useNewEngine: true.
    • Enhanced Support:
      • Improved Table rendering with full CSS support (borders, padding, background).
      • Better List handling (nested lists, custom bullets).
      • Support for blockquote, pre, code, hr, checkbox, and more.
    • Rendering Improvements:
      • Fixed inline content rendering (bold, italic, mixed text).
      • Fixed list item text visibility.
      • Optimized default spacing to match legacy engine.
    • Custom Styles: Added full support for HtmlTagStyle in the new engine.
    • Legacy Support: Maintained full backward compatibility with the legacy engine (default).
    Open source →
  7. 1.1.3 14 Aug 2025
    Release notes
    • *(#52) fix css color parsing
    Open source →
  8. 1.1.2 14 Aug 2025

    Nothing published for this version

  9. 1.1.1 25 Jul 2025
    Release notes
    • Fix markdown table issue and added more markdown properties modifiers
    Open source →
  10. 1.1.0 25 May 2025
    Release notes

    *(#46) Add support for local image files

    Open source →
  11. 1.0.9 18 Jan 2025
    Release notes
    • added support for horizontal divider
    • code block and pre tag support
    Open source →
  12. 1.0.8 17 Jan 2025
    Release notes
    • fix: Links get formatted but are not clickable in the PDF (#35)
    Open source →
  13. 1.0.7 17 Jan 2025
    Release notes
    • fix nested child skipping issue fixed
    Open source →
  14. 1.0.6 07 Jan 2025
    Release notes
    • added wrap in paragraph element feature for html text
    Open source →
  15. 1.0.5 20 Nov 2024
    Release notes
    • Markdown to pdf support added
    Open source →
  16. 1.0.4 12 Sep 2024
    Release notes
    • Fix wrong styles of background color (#31)
    • Add support for custom fonts (#34) by @hig-dev
    Open source →
  17. 1.0.3 08 Feb 2024
    Release notes
    • Bump version and add CHANGELOG entry for the twips/points pixel-scale
      fix, PUA bullet fallback, and dotted/dashed border fix.
    • Loosen the docx_creator dependency from an exact pin to ^1.3.0 (flagged
      by flutter pub publish --dry-run as too tight for consumers).
    • Add docx_file_viewer to the Pub.dev publish workflow's package matrix,
      now that trusted publishing is configured for it on pub.dev.
    Open source →
    Release notes
    • Intial support for checkboxes *(#25)
    Open source →
  18. 1.0.2 18 Jan 2024
    Release notes

    style: refactor formatting and line wrapping across widgets and tests

    Open source →
    Release notes
    • update readme *(#20)
    Open source →
  19. 1.0.1 06 Jan 2024
    Release notes
    • update readme
    Open source →
  20. 1.0.0 06 Jan 2024
    Release notes
    • fix line break
    • fix Can't manage to render colors
    • text alignment feature added
    Open source →
  21. 0.0.9 30 Sep 2023
    Release notes
    • Bump AGP to 9.3.1 (from 8.11.1) and the example app's Gradle wrapper to
      9.6.1 to satisfy AGP 9.3's minimum Gradle requirement.
    • android/build.gradle now only applies the standalone Kotlin Gradle Plugin
      when built-in Kotlin isn't active (older AGP, or no opt-in via the
      android.builtInKotlin Gradle property), matching the pattern other
      actively-maintained plugins (e.g. file_picker) use so the plugin keeps
      building under both older and newer AGP. Verified with a real
      flutter build apk --debug against the example app.
    • Loosen the jni_flutter dependency from an exact pin to ^1.0.1.
    • Add native_pdf_engine to the Pub.dev publish workflow's package matrix.
    Open source →
    Release notes
    • optimiz parse logic
    • documentation fixs
    • using override dependency for pdf due to underline and italic issues
    Open source →
  22. 0.0.9+1 30 Sep 2023
    Release notes
    • optimiz parse logic
    • documentation fixs
    • using override dependency for pdf due to underline and italic issues
    • update readme
    Open source →
  23. 0.0.9+2 19 Dec 2023
    Release notes
    • fix internal css decoration not working
    Open source →
  24. 0.0.8 19 Jul 2023
    Release notes
    • support custom styles
    Open source →
  25. 0.0.8+1 23 Jul 2023
    Release notes
    • update reamdme.md
    Open source →
  26. 0.0.8+2 07 Sep 2023
    Release notes
    • support for html table tag added
    Open source →
  27. 0.0.7 18 Jul 2023
    Release notes
    • support for dart sdk
    • nested elements children support
    Open source →
  28. 0.0.6 08 Jun 2023
    Release notes
    • multiple styles on same text
    • font fallback and font added
    Open source →
  29. 0.0.5 07 Jun 2023
    Release notes
    • missing image element added
    Open source →
  30. 0.0.4 07 Jun 2023
    Release notes
    • optimization
    Open source →
  31. 0.0.3 26 May 2023
    Release notes
    • depedency updates
    Open source →
  32. 0.0.2 11 Apr 2023
    Release notes
    • network image fixes.
    Open source →
  33. 0.0.1 10 Apr 2023
    Release notes
    • Describe initial release.
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive