Skip to content
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

Laravel NPM - Promise issue on Safari #17

Open
vyasvijay0427 opened this issue Jul 21, 2021 · 1 comment
Open

Laravel NPM - Promise issue on Safari #17

vyasvijay0427 opened this issue Jul 21, 2021 · 1 comment

Comments

@vyasvijay0427
Copy link

I have implemented jsPDF-html2canvas in my Laravel Application, It's working fine on Chore and Firefox.
Facing issue on Safari, Please find the script as below:
var fName = 'FileName.pdf'; var page = document.getElementById('domid'); html2PDF(page, { jsPDF: { unit: 'px', format: 'a4' }, scrollY: 0, scrollX: 0, imageType: 'image/jpeg', output: fName, margin: { top: 15, right: 15, bottom: 11, left: 15, } });

Getting error in cosole as "Unhandled Promise Rejection: RangeError: Arguments contain a value that is out of range of code points"

Please guide me for the same, Thanks

@johnnywang1994
Copy link
Owner

hi, sorry for late reply. I can't reproduce the issue in Safari now. Would be appreciated for providing me a reproduce environment.

By the way, the scrollY, scrollX should be put in option like html2canvas: { scrollY: 0, scrollX: 0 }.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants