mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-24 09:08:07 +02:00
Fix some issues with lineWidth < 1 after transform (bug 1753075, bug 1743245, bug 1710019)
- it aims to fix: - https://bugzilla.mozilla.org/show_bug.cgi?id=1753075; - https://bugzilla.mozilla.org/show_bug.cgi?id=1743245; - https://bugzilla.mozilla.org/show_bug.cgi?id=1710019; - issue #13211; - issue #14521. - previously we were trying to adjust lineWidth to have something correct after the current transform is applied but this approach was not correct because finally the pixel is rescaled with the same factors in both directions. And sometimes those factors must be different (see bug 1753075). - So the idea of this patch is to apply a scale matrix to the current transform just before setting lineWidth and stroking. This scale matrix is computed in order to ensure that after transform, a pixel will have its two thickness greater than 1.
This commit is contained in:
parent
530af48b8e
commit
46369e4aa5
5 changed files with 131 additions and 84 deletions
1
test/pdfs/.gitignore
vendored
1
test/pdfs/.gitignore
vendored
|
@ -512,3 +512,4 @@
|
|||
!issue14307.pdf
|
||||
!issue14497.pdf
|
||||
!issue14502.pdf
|
||||
!issue13211.pdf
|
||||
|
|
1
test/pdfs/bug1753075.pdf.link
Normal file
1
test/pdfs/bug1753075.pdf.link
Normal file
|
@ -0,0 +1 @@
|
|||
https://bugzilla.mozilla.org/attachment.cgi?id=9262522
|
BIN
test/pdfs/issue13211.pdf
Executable file
BIN
test/pdfs/issue13211.pdf
Executable file
Binary file not shown.
|
@ -6290,5 +6290,19 @@
|
|||
"rounds": 1,
|
||||
"link": true,
|
||||
"type": "other"
|
||||
},
|
||||
{ "id": "bug1753075",
|
||||
"file": "pdfs/bug1753075.pdf",
|
||||
"md5": "12716fa2dc3e0b3a61d88fef10abc7cf",
|
||||
"rounds": 1,
|
||||
"link": true,
|
||||
"lastPage": 1,
|
||||
"type": "eq"
|
||||
},
|
||||
{ "id": "issue13211",
|
||||
"file": "pdfs/issue13211.pdf",
|
||||
"md5": "d193853e8a123dc50eeea593a4150b60",
|
||||
"rounds": 1,
|
||||
"type": "eq"
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue