mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-21 15:48:06 +02:00
Merge pull request #6606 from Rob--W/pattern-scaling
Improve performance and correctness of Tiling Patterns
This commit is contained in:
commit
b4c3b94592
5 changed files with 2314 additions and 34 deletions
2
test/pdfs/.gitignore
vendored
2
test/pdfs/.gitignore
vendored
|
@ -342,3 +342,5 @@
|
|||
!issue9972-1.pdf
|
||||
!issue9972-2.pdf
|
||||
!issue9972-3.pdf
|
||||
!tiling-pattern-box.pdf
|
||||
!tiling-pattern-large-steps.pdf
|
||||
|
|
2154
test/pdfs/tiling-pattern-box.pdf
Normal file
2154
test/pdfs/tiling-pattern-box.pdf
Normal file
File diff suppressed because it is too large
Load diff
90
test/pdfs/tiling-pattern-large-steps.pdf
Normal file
90
test/pdfs/tiling-pattern-large-steps.pdf
Normal file
|
@ -0,0 +1,90 @@
|
|||
%PDF-1.4
|
||||
% A 4000 x 400 PDF with a red square rectangle and 50 units of padding at all sides.
|
||||
1 0 obj
|
||||
<<
|
||||
/Type /Catalog
|
||||
/Pages 2 0 R
|
||||
>>
|
||||
endobj
|
||||
2 0 obj
|
||||
<<
|
||||
/Type /Pages
|
||||
/Kids [3 0 R]
|
||||
/Count 1
|
||||
>>
|
||||
endobj
|
||||
3 0 obj
|
||||
<<
|
||||
/Type /Page
|
||||
/MediaBox [0.0 0.0 4000 400]
|
||||
/Parent 2 0 R
|
||||
/Resources 4 0 R
|
||||
/Contents 5 0 R
|
||||
>>
|
||||
endobj
|
||||
4 0 obj
|
||||
<<
|
||||
/Pattern 6 0 R
|
||||
/ColorSpace 7 0 R
|
||||
>>
|
||||
endobj
|
||||
5 0 obj
|
||||
<<
|
||||
/Length 36
|
||||
>>
|
||||
stream
|
||||
50 50 3950 350 re
|
||||
/cs1 cs
|
||||
/p1 scn
|
||||
f
|
||||
endstream
|
||||
endobj
|
||||
6 0 obj
|
||||
<<
|
||||
/p1 8 0 R
|
||||
>>
|
||||
endobj
|
||||
7 0 obj
|
||||
<<
|
||||
/cs1 [/Pattern /DeviceRGB]
|
||||
>>
|
||||
endobj
|
||||
8 0 obj
|
||||
<<
|
||||
/Length 43
|
||||
/Type /Pattern
|
||||
/PatternType 1
|
||||
/Resources <<
|
||||
>>
|
||||
/BBox [0 0 3950 350]
|
||||
/PaintType 1
|
||||
/TilingType 1
|
||||
/XStep 90000
|
||||
/YStep 90000
|
||||
>>
|
||||
stream
|
||||
/DeviceRGB cs
|
||||
1 0 0 sc
|
||||
50 50 3950 300 re
|
||||
B
|
||||
endstream
|
||||
endobj
|
||||
xref
|
||||
0 9
|
||||
0000000000 65535 f
|
||||
0000000094 00000 n
|
||||
0000000143 00000 n
|
||||
0000000200 00000 n
|
||||
0000000309 00000 n
|
||||
0000000363 00000 n
|
||||
0000000448 00000 n
|
||||
0000000479 00000 n
|
||||
0000000527 00000 n
|
||||
trailer
|
||||
<<
|
||||
/Root 1 0 R
|
||||
/Size 9
|
||||
>>
|
||||
startxref
|
||||
740
|
||||
%%EOF
|
|
@ -3009,6 +3009,22 @@
|
|||
"link": false,
|
||||
"type": "eq"
|
||||
},
|
||||
{
|
||||
"id": "tiling-pattern-box",
|
||||
"file": "pdfs/tiling-pattern-box.pdf",
|
||||
"md5": "09100872824fc14012bd8f9bf4dbc632",
|
||||
"rounds": 1,
|
||||
"link": false,
|
||||
"type": "eq"
|
||||
},
|
||||
{
|
||||
"id": "tiling-pattern-large-steps",
|
||||
"file": "pdfs/tiling-pattern-large-steps.pdf",
|
||||
"md5": "569aac1303c97004aab6a720d9b259b4",
|
||||
"rounds": 1,
|
||||
"link": false,
|
||||
"type": "eq"
|
||||
},
|
||||
{ "id": "issue6151",
|
||||
"file": "pdfs/issue6151.pdf",
|
||||
"md5": "926f8c6b25e6f0978759f7947d70e079",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue