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

How to display a PDF from URL? #27

Open
d-apps opened this issue Jun 15, 2019 · 2 comments
Open

How to display a PDF from URL? #27

d-apps opened this issue Jun 15, 2019 · 2 comments

Comments

@d-apps
Copy link

d-apps commented Jun 15, 2019

In your readme in "Security" there is "display PDF from URL without ever touching the disk!"

How to I do that? If the package isn't supported anymore is there any workaround?

Thank you.

@devxpy
Copy link
Member

devxpy commented Jun 16, 2019

The download from URL functionality was removed down the line, for separation of concerns, but this is still, theoretically possible.

Just download the pdf in the form of bytes (Uint8List) using any old dart http library. Then open it using loadBytes method.

Also updated the README to reflect this. Sorry for misleading you!

@d-apps
Copy link
Author

d-apps commented Jun 18, 2019

Thank you.

But if I download the pdf as bytes, if the pdf is large like 70mb it's gonna take sometime to display to the user right? Like downloading to the storage first.

Other thing is, could you please add the change log of all version of your package in changelog.md? Looks like there is just:
0.0.1
TODO: Describe initial release.

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