Skip to content

Tweak the PDFLinkService a bit #6063

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

Merged
merged 2 commits into from
May 29, 2015
Merged

Tweak the PDFLinkService a bit #6063

merged 2 commits into from
May 29, 2015

Conversation

Snuffleupagus
Copy link
Collaborator

This PR contains a couple of small follow-ups to PR #5971.

  • Make PDFHistory optional in PDFLinkService
    Currently PDFLinkService requires access to a PDFHistory instance in order for it to work correctly (and to avoid errors). If we want PDFLinkService to be more useful in custom viewers, I don't think that we actually want to force it to have a PDFHistory instance.
    Hence this patch, which contains a very simply approach to make PDFHistory optional.
  • Fix a couple of function names in error messages in PDFLinkService

Edit: Even simpler reviewing with https://github.com/mozilla/pdf.js/pull/6063/files?w=1.

Currently `PDFLinkService` requires access to a `PDFHistory` instance in order for it to work correctly (and to avoid errors). If we want `PDFLinkService` to be more useful in custom viewers, I don't think that we actually want to force it to have a `PDFHistory` instance.
Hence this patch, which contains a very simply approach to make `PDFHistory` optional.
@Snuffleupagus
Copy link
Collaborator Author

/botio-windows preview

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

Command cmd_preview from @Snuffleupagus received. Current queue size: 0

Live output at: http://107.22.172.223:8877/ec3823137365fab/output.txt

@timvandermeij
Copy link
Contributor

Looks good to me.

yurydelendik added a commit that referenced this pull request May 29, 2015
@yurydelendik yurydelendik merged commit d3fa65e into mozilla:master May 29, 2015
@yurydelendik
Copy link
Contributor

Thanks

@Snuffleupagus Snuffleupagus deleted the pdfLinkService-optional-history branch May 29, 2015 18:19
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.

4 participants