-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Preview in browser #519
Comments
You should use pdf.js to do this |
Thanks for the response but I need something to show it before the PDF generation. |
You can take the base64 data url and use it as the |
The getBase64 method yielded the following error for me:
The getDataUrl method seems to work just fine though. The problem is with IE though. Nothing appears... I was wondering if it's possible to mix both pdfMake and pdf.js (which works in IE) together. I only see how to use pdf.js with an actual file, but not with an object or dataUri or something. Any thoughts? |
Perhaps this could be used: http://stackoverflow.com/a/12094943/936466 |
Answered. |
I need a preview of the PDF in browser... can I have it as image or HTML? Is there any method like "toCanvas" or something like that?
The text was updated successfully, but these errors were encountered: