Closed VikasSahu closed 2 years ago
Any solutions?
@VikasSahu Did you find any solution or workaround for this?
Any Solutions?
I found the solution to enable js in web view.
After this line, you need to add: https://github.com/christopherdro/react-native-html-to-pdf/blob/master/android/src/main/java/android/print/PdfConverter.java#L114
settings.setJavaScriptEnabled(true);
settings.setJavaScriptCanOpenWindowsAutomatically(true);
To enabled js in web view.
I will generate PR for this issue
Here is the PR @VikasSahu @OmSingh5092 @abhijit-jena21 @zhani-tegeria
Hey @suresh-borad the script is functional but due to some reason the Chart is not visible in the pdf. Could this be because of the use of .
Hey @suresh-borad the script is functional but due to some reason the Chart is not visible in the pdf. Could this be because of the use of.
Yes, @OmSingh5092 I had the same issue with android and I'm using Google Chart lib in HTML. After these changes, it's working fine.
The iOs was working fine without any changes but the issue with android.
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.
Does this Githubissues.
Hello
I want to have a line chart and bar chart in my generated PDF but somehow script is not working with attached HTML.
I am using below chart script in my HTML code (only script part is here, its Incomplete code)
Could please help, how to achieve that?