penkzhou / plugin_html_to_pdf

Flutter plugin for generating PDF files from HTML
https://pub.dev/packages/html_to_pdf
MIT License
4 stars 2 forks source link

Header/footer works on Android but on iOS #3

Open dr953 opened 3 months ago

dr953 commented 3 months ago

I don't know if there are any config options to set on the native side that could facilitate this, but converting a page that includes header/footer doesn't work on iOS. Attached, you can find a sample HTML file and the resulting PDFs from Android and iOS.

As you can see, on Android, everything is as it should be, however on iOS, the header and footer are not repeated on each page. Also, the header is not centered and the footer is misplaced to some location on the second page.

android.pdf ios.pdf sample_header_footer_html.txt

penkzhou commented 3 months ago

I'll look into it.

penkzhou commented 3 months ago

I try to fix it with https://github.com/penkzhou/plugin_html_to_pdf/pull/4. try with version 0.8.0. @dr953

dr953 commented 3 months ago

No difference here. Have you tested it with the sample html I provided? Does it work for you?

dr953 commented 3 months ago

Have you had time to look at it?

KawindaWAD commented 2 months ago

same issue. works on Android, but not on iOS

smasadat commented 2 weeks ago

Any update on this issue? I am facing same here. It works on Android but in iOS it just disappeared