Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way to create a PDF from a widget using Flutter?

Tags:

flutter

dart

I did some research and find out that you can create PDF with images or texts or by exporting the screenshot, but I want to create much more like in the image below: enter image description here

So what I want to achieve is to have a good resolution for PDF to print the PDF as a book after this. The physical book has a lot of pages and my client wants to create the virtual one.

So, I have the design (as you can see in the image), but I still need to create some text fields, signature and some logic in the widget. How can I export after that to a one page PDF for every widget? Screenshot won't be enough because I think it doesn't have a good quality and ofc the text and everything else won't be suited in the phone screen.

I am thinking to use the basic design and to add manually by code the texts, but I don't know how to export this to a PDF after that.

like image 970
Roland Iordache Avatar asked Oct 13 '25 08:10

Roland Iordache


1 Answers

Of Course! The pdf package is a great start.

like image 186
jbryanh Avatar answered Oct 14 '25 22:10

jbryanh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!