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.
- 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.
- Run the application:
flutter run
- Once the application is running, you will see a button labeled "Share PDF" on the screen.
- Click on the "Share PDF" button to generate the PDF from the HTML content and initiate the sharing.
- flutter_native_html_to_pdf
- path_provider
- share_plus
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.