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

Feature request: open BLOB #26

Open
kustrun opened this issue Jul 16, 2019 · 2 comments
Open

Feature request: open BLOB #26

kustrun opened this issue Jul 16, 2019 · 2 comments

Comments

@kustrun
Copy link

kustrun commented Jul 16, 2019

Could you please add support for passing BLOB instead of URL of a file?
PDFjs already supports this (https://mozilla.github.io/pdf.js/examples/ look under Hello World using base64 encoded PDF section).

@stevexm
Copy link

stevexm commented Apr 28, 2021

This would be really nice to have, passing in a BLOB or dataURL instead of a file URL. That way, dynamic pdf generation from within an application would be supported.

@stevexm
Copy link

stevexm commented Apr 28, 2021

For anyone interested, to open a BLOB (pdf) utilize:
this.src = URL.createObjectURL(blob);

See this: MDN Docs, createObjectURL

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