You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Web browser and its version: chrome 123 (not important)
PDF.js version: 4.1.367
Steps to reproduce the problem:
open inside pdf.js viewer any pdf file which has an annotation with an empty array as a dash pattern
What is the expected behavior?
from PDF spec, page 218:
it's completely valid having empty dash array, and in Acrobat line is rendered with proper width:
Link to PDF file here:
dash_array_example.pdf
Configuration:
Steps to reproduce the problem:
What is the expected behavior?
from PDF spec, page 218:
it's completely valid having empty dash array, and in Acrobat line is rendered with proper width:
What went wrong?
cause of the following line:
pdf.js/src/core/annotation.js
Line 1503 in 5adad89
annotation width is set to 0, when dash array is empty.
A solution could be changing the else if statement to smth like this:
else if (!Array.isArray(dashArray))
The text was updated successfully, but these errors were encountered: