-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Local photos are not displayed in pdf #315
Comments
I am able to get images stored in the local Documents directory on iOS to show by changing the following code in the RNHTLtoPDF.m file (lines 174-184) and writing the HTML string to a file called "html2pdf.html" saved to the Documents/htmlDirectory/ folder:
If someone can show how this could be done in Android as well.... |
const logoUri = Image.resolveAssetSource( Image tag should be imported from React-Native |
URI file:///var/mobile/Containers/Data/Application/2A435227-4285-45E3-A6C7-40742A487D34/Documents/CamScanner/Documents/CamScan001.pdf |
Good afternoon, I am writing a pdf export of data including photos taken via mobile device.
When exporting data the pictures are missing, I have been puzzling for 2 days.
The code is as follows:
path Images:
"file:///var/mobile/Containers/Data/Application/F6EBD9B9-05AF-49C9-9FDD-E333A5051689/Documents/993A1CC8-35CD-45D5-870C-A823A7E2A635.jpg"
Libs:
"react-native": "0.74.5",
"react-native-html-to-pdf": "^0.12.0",
The text was updated successfully, but these errors were encountered: