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

Correctly handle /FitH destinations with null as the parameter #6617

Merged
merged 1 commit into from
Nov 10, 2015
Merged

Correctly handle /FitH destinations with null as the parameter #6617

merged 1 commit into from
Nov 10, 2015

Conversation

Snuffleupagus
Copy link
Collaborator

According to http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/PDF32000_2008.pdf#G11.2095870, the vertical position shouldn't change if the parameter is null.

Fixes #6615.

@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/3d99c23434f4278/output.txt

@@ -519,6 +519,12 @@ var PDFViewer = (function pdfViewer() {
case 'FitBH':
y = dest[2];
scale = 'page-width';
// According to the PDF specification, a `null` value in the parameter
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please refer to the specific section.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@Rob--W
Copy link
Member

Rob--W commented Nov 10, 2015

LGTM 👍, I verified that the patch fixes #6615.

yurydelendik added a commit that referenced this pull request Nov 10, 2015
Correctly handle /FitH destinations with `null` as the parameter
@yurydelendik yurydelendik merged commit 3c94ba8 into mozilla:master Nov 10, 2015
@yurydelendik
Copy link
Contributor

Thank you.

@Snuffleupagus Snuffleupagus deleted the issue-6615 branch November 10, 2015 14:06
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.

None yet

4 participants