Closed UsmanAhsanPs19 closed 1 year ago
It seems impossible with this library.
I have the same question and can't find any functional library that can create a PDF with different pages and Footer/Header.
I tried https://github.com/Hopding/react-native-pdf-lib but not supported anymore for latest version of react-native.
@UsmanAhsanPs19 try this in your pdf template I'm able to add Images Like given below
Possibly related to https://github.com/christopherdro/react-native-html-to-pdf/issues/206 ?
Any solution for the above scenario i am also got stuck in adding images to pdf
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I've made it works but I had to host the image somewhere else.
Trying to get the image from the relative path didn't work.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I've made it works but I had to host the image somewhere else.
Trying to get the image from the relative path didn't work.
That's the one way and sometimes it can give CORS issue. Just in case someone needs another solution.
The other solution is to convert the image into base64 data either from the relative path or from hosted URL.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This means I have an HTML form pdf is creating but now I want to add branding of my customer on each page like adding a brand image in header and footer of all pages. Please guide thanks.