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

Ensure that pdfDocument is defined when printing (issue 6083) #6086

Closed
wants to merge 1 commit into from
Closed

Ensure that pdfDocument is defined when printing (issue 6083) #6086

wants to merge 1 commit into from

Conversation

Snuffleupagus
Copy link
Collaborator

This patch fixes the first part of issue #6083 (accessing numPages), since that issue applies to all versions of the viewer with printing support, by ensuring that pdfDocument is available when printing.

Note: The remaining issue is specific to the mozPrintCallback polyfill, which this patch does not touch.

(The patch also addresses some incorrect indentation in PDFViewerApplication.beforePrint; compare with https://github.com/mozilla/pdf.js/pull/6086/files?w=1)

This patch fixes the *first* part of issue 6083 (accessing `numPages`), since that issue applies to all versions of the viewer with printing support, by ensuring that `pdfDocument` is available when printing.

*Note:* The remaining issue is specific to the `mozPrintCallback` polyfill, which this patch does not touch.
@Snuffleupagus
Copy link
Collaborator Author

/botio-windows preview

@pdfjsbot
Copy link

pdfjsbot commented Jun 5, 2015

From: Bot.io (Windows)


Received

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

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

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.

2 participants