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

taking more than 2minutes to load file of size 9mb, how can i handle this? #7790

Closed
nikhilreddy93 opened this issue Nov 8, 2016 · 4 comments

Comments

@nikhilreddy93
Copy link

nikhilreddy93 commented Nov 8, 2016

Here is my code
var data = base64ToUint8Array(base64String);
function base64ToUint8Array(base64) {
var raw = atob(base64);
var uint8Array = new Uint8Array(raw.length);
for (var i = 0; i < raw.length; i++) {
uint8Array[i] = raw.charCodeAt(i);
}
return uint8Array;
}

PDFJS.getDocument(data)
.then(function(pdf) {
});

@Snuffleupagus
Copy link
Collaborator

Closing as incomplete, since there's no actionable information provided here.

@nikhilreddy93
Copy link
Author

nikhilreddy93 commented Nov 8, 2016

@Snuffleupagus
Here is the pdf link. https://drive.google.com/file/d/0B7zGd0ub1kvNU0xsVmpwVzF6REk/view?usp=sharing
Well i'm loading the pdf from my local storage, not from the above url. I just mentioned here for reference.

@Snuffleupagus
Copy link
Collaborator

Snuffleupagus commented Nov 8, 2016

Please provide all of the information requested in https://github.com/mozilla/pdf.js/blob/master/.github/ISSUE_TEMPLATE.md to re-open the issue (don't forget a link to a working example, since just code snippets are not helpful).
When reporting an issue, please make sure that you also read https://github.com/mozilla/pdf.js/blob/master/.github/CONTRIBUTING.md.

@nikhilreddy93
Copy link
Author

nikhilreddy93 commented Nov 8, 2016

@Snuffleupagus
doc 2.pdf

Configuration:

  • chrome
  • windows 8.1
  • pdf.js version-1.6.256
  • not an extension, this is a webapp

expected behaviour:
Load pdf file faster and without any crash.
went wrong:
taking more than two minutes to load the above file, after file load browser got struck.

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