/flutter_native_html_to_pdf

This is a Flutter application that demonstrates the use of the flutter_native_html_to_pdf package to convert HTML content into a PDF file. The generated PDF file can then be shared using the share_plus package.

Primary LanguageC++MIT LicenseMIT

Flutter Native HTML to PDF

This is a Flutter application that demonstrates the use of the flutter_native_html_to_pdf package to convert HTML content into a PDF file. The generated PDF file can then be shared using the share_plus package.

Features

  • HTML to PDF Conversion: The application converts a predefined HTML content into a PDF file using the flutter_native_html_to_pdf package.
  • PDF Sharing: The generated PDF file can be shared using the share_plus package.

How to Use

  1. Run the application: flutter run
  2. Once the application is running, you will see a button labeled "Share PDF" on the screen.
  3. Click on the "Share PDF" button to generate the PDF from the HTML content and initiate the sharing.

Dependencies

  • flutter_native_html_to_pdf
  • path_provider
  • share_plus

Note

This application is a demonstration of the flutter_native_html_to_pdf package. The HTML content used in this application is a simple static HTML page. You can replace it with your own dynamic HTML content as needed.