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

Attempt to delay disabling of the attachment view until FileAttachment annotations of the *initial* page has been parsed #8788

Merged
merged 2 commits into from
Aug 17, 2017

Conversation

Snuffleupagus
Copy link
Collaborator

As discussed in PR #8673 (comment), we cannot solve the general issue (since that would require parsing every single page). However, we can mitigate the effect somewhat, by waiting for the FileAttachment annotations of the initially rendered page.

…neViewer` constructors

Rather than duplicating initialization code, we can just call `this.reset()` instead (which is also similar to other existing code, e.g. `PDFViewer`). This will also help ensure that the DOM is completely reset, before any outline items or attachments are displayed.
…t annotations of the *initial* page has been parsed

As discussed in PR 8673, we cannot solve the general issue (since that would require parsing every single page). However, we can mitigate the effect somewhat, by waiting for the FileAttachment annotations of the initially rendered page.
@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

Command cmd_preview from @timvandermeij received. Current queue size: 1

Live output at: http://54.67.70.0:8877/5f136229c884c3c/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/5f136229c884c3c/output.txt

Total script time: 2.33 mins

Published

@timvandermeij timvandermeij merged commit 8c8d8fa into mozilla:master Aug 17, 2017
@timvandermeij
Copy link
Contributor

Works just fine, thank you!

@Snuffleupagus Snuffleupagus deleted the pageMode-followup branch August 18, 2017 19:53
movsb pushed a commit to movsb/pdf.js that referenced this pull request Jul 14, 2018
Attempt to delay disabling of the attachment view until FileAttachment annotations of the *initial* page has been parsed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants