flutter_html_to_pdf icon indicating copy to clipboard operation
flutter_html_to_pdf copied to clipboard

Images breaks in generated PDF

Open sriharsha-y opened this issue 6 years ago • 5 comments

When ever i try to generate PDF with HTML having external images the generated PDF file contains broken images all over. The imgur example works out of the box but with other website images it does not work.

sriharsha-y avatar Jul 10 '19 10:07 sriharsha-y

Hi, are you sure that you're passing direct url to image?

Afur avatar Jul 10 '19 12:07 Afur

@Afur yes, a sample image url http://mis.convertz.in/application/assets/img/installation-certificate/installation-top.png

the image tag in html has this as source

sriharsha-y avatar Jul 10 '19 14:07 sriharsha-y

Android or iOS?

Afur avatar Jul 16 '19 14:07 Afur

@Afur It's on Android. Tried couple of android devices with same result.

sriharsha-y avatar Jul 17 '19 16:07 sriharsha-y

Hi, I found the same problem, it's about security on android 9 (load https traffic), see this https://developer.android.com/training/articles/security-config#CleartextTrafficPermitted

JoseMiguelCh avatar Feb 13 '20 16:02 JoseMiguelCh