-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
Conversation
/botio-linux preview |
From: Bot.io (Linux)ReceivedCommand cmd_preview from @timvandermeij received. Current queue size: 0 Live output at: http://107.21.233.14:8877/809803ff3d015ac/output.txt |
From: Bot.io (Linux)SuccessFull output at http://107.21.233.14:8877/809803ff3d015ac/output.txt Total script time: 0.75 mins Published
|
/botio test |
From: Bot.io (Linux)ReceivedCommand cmd_test from @timvandermeij received. Current queue size: 0 Live output at: http://107.21.233.14:8877/439fc09b9bd866e/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @timvandermeij received. Current queue size: 0 Live output at: http://107.22.172.223:8877/f90060539c7131a/output.txt |
From: Bot.io (Linux)SuccessFull output at http://107.21.233.14:8877/439fc09b9bd866e/output.txt Total script time: 25.93 mins
|
From: Bot.io (Windows)SuccessFull output at http://107.22.172.223:8877/f90060539c7131a/output.txt Total script time: 23.55 mins
|
Handle more cases of invalid line dash patterns in annotation borders
Nice work, thanks! |
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.