jsPDF: Image not rendering correctly in Windows environment
First off, thanks for writing and maintaining this wonderful little piece of JS.
The issue I am having is, images in jsPDF are only rendering properly in Linux based environments (Mac and Ubuntu) and are not rendering properly in Windows environments.
This is a version of a document produced in a Linux environment: 970-907SDR.pdf
This is the same pdf but downloaded in a Windows environment 970-907SDR (1)windows.pdf
I am looking at the above link to the pdf and it looks fine when viewed on the chrome pdf preview, but if you would like to recreate the malformed image just use a Windows machine and visit https://happyship.herokuapp.com. Navigate to the Documents
page and use PO# "970-907"
hit enter and print any of the documents. This should give you the malformed image.
I have looked at the different type of encoding methods that I can use but I always come back to the same issue, jsPDF does not recognize a DataURL unless it is encoded in base64.
This is the last problem that I am facing on my project and would love to wrap this project up and deliver it to my client.
Thanks in advance for the help
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 15
THIS WORKED LIKE A CHARM. Thank you
I can now sleep well at night. Can you please edit the documentation to reflect this issue for any new people using this package?