espresso3389 / flutter_pdf_render

A Flutter package, which renders PDF pages.
https://pub.dev/packages/pdf_render
MIT License
108 stars 70 forks source link

Adding stylus drawing support #102

Open Nuckerr opened 1 year ago

Nuckerr commented 1 year ago

How easy would it be to add pen support to my pdf. And how would I approach adding it?

espresso3389 commented 1 year ago

It depends on what you mean by pen support.

Just overlaying drawing layer on PDF is relatively easy. But if you want to load/save the pen drawing from/to PDF file, it requires you to use some PDF library to do that and it may takes longer.

Nuckerr commented 1 year ago

And there is no way to do that with your library?

espresso3389 commented 1 year ago

Currenty, no such support. It's due to Android's lacking of PDF object handling functions.

Nuckerr commented 1 year ago

I see, well I tried to use the Custom Paint widget to add drawing support, however the prd widget appears over the top of the custom paint widget. Is there any way to put the pdf behind instead?