htmltopdfwidgets 2.0.0-beta.2 copy "htmltopdfwidgets: ^2.0.0-beta.2" to clipboard
htmltopdfwidgets: ^2.0.0-beta.2 copied to clipboard

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 prin [...]

2.0.0-beta.2 #

  • 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.

2.0.0-beta.1 #

  • 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).

1.1.3 #

  • *(#52) fix css color parsing

1.1.1 #

  • Fix markdown table issue and added more markdown properties modifiers

1.1.0 #

*(#46) Add support for local image files

1.0.9 #

  • added support for horizontal divider
  • code block and pre tag support

1.0.8 #

  • fix: Links get formatted but are not clickable in the PDF (#35)

1.0.7 #

  • fix nested child skipping issue fixed

1.0.6 #

  • added wrap in paragraph element feature for html text

1.0.5 #

  • Markdown to pdf support added

1.0.4 #

  • Fix wrong styles of background color (#31)
  • Add support for custom fonts (#34) by @hig-dev

1.0.3 #

  • Intial support for checkboxes *(#25)

1.0.2 #

  • update readme *(#20)

1.0.1 #

  • update readme

1.0.0 #

  • fix line break
  • fix Can't manage to render colors
  • text alignment feature added

0.0.9+2 #

  • fix internal css decoration not working

0.0.9+1 #

  • optimiz parse logic
  • documentation fixs
  • using override dependency for pdf due to underline and italic issues
  • update readme

0.0.9 #

  • optimiz parse logic
  • documentation fixs
  • using override dependency for pdf due to underline and italic issues

0.0.8+2 #

  • support for html table tag added

0.0.8+1 #

  • update reamdme.md

0.0.8 #

  • support custom styles

0.0.7 #

  • support for dart sdk
  • nested elements children support

0.0.6 #

  • multiple styles on same text
  • font fallback and font added

0.0.5 #

  • missing image element added

0.0.4 #

  • optimization

0.0.3 #

  • depedency updates

0.0.2 #

  • network image fixes.

0.0.1 #

  • Describe initial release.
67
likes
140
points
11.2k
downloads

Publisher

verified publisheralihassan143cool.blogspot.com

Weekly Downloads

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!

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

csslib, html, http, markdown, pdf

More

Packages that depend on htmltopdfwidgets