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

Handle more cases of invalid line dash patterns in annotation borders #4768

Merged
merged 1 commit into from
May 12, 2014
Merged

Handle more cases of invalid line dash patterns in annotation borders #4768

merged 1 commit into from
May 12, 2014

Conversation

Snuffleupagus
Copy link
Collaborator

When an annotation border uses line dash patterns, a valid Border entry might be e.g. [0 0 1 [2 6]].
For more about line dash patterns, see #4080 (comment).

In the PDF file in the issue referenced below, the borders are [10 10 10 60]. In the PDF specification it's inferred that the last entry should be an array, but there is no mentioning what should happen if it's not.
When opening the file in Adobe Reader the border is simply ignored, so this patch does the same thing for PDF.js.

Fixes #4766.

@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

pdfjsbot commented May 9, 2014

From: Bot.io (Linux)


Received

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

Live output at: http://107.21.233.14:8877/809803ff3d015ac/output.txt

@timvandermeij
Copy link
Contributor

/botio test

@pdfjsbot
Copy link

From: Bot.io (Linux)


Received

Command cmd_test from @timvandermeij received. Current queue size: 0

Live output at: http://107.21.233.14:8877/439fc09b9bd866e/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

Command cmd_test from @timvandermeij received. Current queue size: 0

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

@pdfjsbot
Copy link

From: Bot.io (Linux)


Success

Full output at http://107.21.233.14:8877/439fc09b9bd866e/output.txt

Total script time: 25.93 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: Passed

@pdfjsbot
Copy link

From: Bot.io (Windows)


Success

Full output at http://107.22.172.223:8877/f90060539c7131a/output.txt

Total script time: 23.55 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: Passed

timvandermeij added a commit that referenced this pull request May 12, 2014
Handle more cases of invalid line dash patterns in annotation borders
@timvandermeij timvandermeij merged commit a27f51e into mozilla:master May 12, 2014
@timvandermeij
Copy link
Contributor

Nice work, thanks!

@Snuffleupagus Snuffleupagus deleted the issue-4766 branch May 12, 2014 21:54
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

Successfully merging this pull request may close these issues.

Footer image won't render
3 participants