christopherdro / react-native-html-to-pdf

Convert html strings to PDF documents using React Native
MIT License
435 stars 269 forks source link

No local pictures in PDF's anymore #182

Closed JensSam closed 3 years ago

JensSam commented 4 years ago

Hi,

Since I updated to the latest version and manually copied the WebKit .h and .m files to my app all locally stored pictures I put in an in the PDF are gone.

Bundled files work fine, but not the one's in e.g. the app's documents directory. So far I've only managed to test on iOS, and the strange thing is that it works perfectly in the Xcode iPhone emulator on my Mac. But if I run it on my iPhone device (I've tried two different iPhones) everything renders into the pdf except from pictures. (still the pictures in the bundle works fine).

It's really strange and I really can't find anything wrong with my code, especially since it works in the emulator.

Did anything change with the move from UIWebView that might have disrupted this?

Thanks!

//Jens

GeorgS commented 4 years ago

I am facing the same issue on iOS.

uttampawar commented 4 years ago

If I decide to make change to fix the issue in my local node_modules/react-native-html-to-pdf folder ( android/src/main/java/android/print/PdfConverter.java ) how do I build the java native component?

christopherdro commented 3 years ago

Fix release in v0.9.0