initial commit

This commit is contained in:
2026-09-21 13:41:40 +09:00
commit 855c7328df
411 changed files with 85352 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
%PDF-1.7
%âãÏÓ
1 0 obj
<< /Type /Catalog /Pages 2 0 R >>
endobj
2 0 obj
<< /Type /Pages /Count 1 /Kids [3 0 R] >>
endobj
3 0 obj
<< /Type /Page /Parent 2 0 R /MediaBox [0 0 100 100] /Resources << >> /Annots [4 0 R] >>
endobj
4 0 obj
<< /Type /Annot /Subtype /Link /Rect [20 20 80 80] /AP << /N 42 >> >>
endobj
xref
0 5
0000000000 65535 f
0000000015 00000 n
0000000064 00000 n
0000000121 00000 n
0000000225 00000 n
trailer
<< /Size 5 /Root 1 0 R >>
startxref
310
%%EOF
+26
View File
@@ -0,0 +1,26 @@
%PDF-1.7
%âãÏÓ
1 0 obj
<< /Type /Catalog /Pages 2 0 R >>
endobj
2 0 obj
<< /Type /Pages /Count 1 /Kids [3 0 R] >>
endobj
3 0 obj
<< /Type /Page /Parent 2 0 R /MediaBox [0 0 100 100] /Resources << >> /Annots [4 0 R] >>
endobj
4 0 obj
<< /Type /Annot /Subtype /Link /Rect [20 20 80 80] /C [0 1] >>
endobj
xref
0 5
0000000000 65535 f
0000000015 00000 n
0000000064 00000 n
0000000121 00000 n
0000000225 00000 n
trailer
<< /Size 5 /Root 1 0 R >>
startxref
303
%%EOF
+26
View File
@@ -0,0 +1,26 @@
%PDF-1.7
%âãÏÓ
1 0 obj
<< /Type /Catalog /Pages 2 0 R >>
endobj
2 0 obj
<< /Type /Pages /Count 1 /Kids [3 0 R] >>
endobj
3 0 obj
<< /Type /Page /Parent 2 0 R /MediaBox [0 0 100 100] /Resources << >> /Annots [4 0 R] >>
endobj
4 0 obj
<< /Type /Annot /Subtype /Link /Rect [20 20 80 80] /BS << /S /D /D [0 0] >> >>
endobj
xref
0 5
0000000000 65535 f
0000000015 00000 n
0000000064 00000 n
0000000121 00000 n
0000000225 00000 n
trailer
<< /Size 5 /Root 1 0 R >>
startxref
319
%%EOF
+266
View File
@@ -0,0 +1,266 @@
{
"generator": "generate_link_borders.py",
"license": "Self-created test content; same license as DocView.",
"fixtures": [
{
"file": "styles.pdf",
"bytes": 5335,
"sha256": "add7f02f5295f39b9bd340151f7c7ea0b50786c89f66af791215df2c13badf1b",
"pages": 4,
"annotations": [
{
"name": "default",
"rect": [
40,
50,
140,
80
],
"has_border": true
},
{
"name": "solid-rgb",
"rect": [
160,
50,
260,
80
],
"has_border": true
},
{
"name": "dashed-border",
"rect": [
280,
50,
380,
80
],
"has_border": true
},
{
"name": "dashed-bs-odd",
"rect": [
400,
50,
500,
80
],
"has_border": true
},
{
"name": "dashed-default",
"rect": [
40,
125,
140,
155
],
"has_border": true
},
{
"name": "underline",
"rect": [
160,
125,
260,
155
],
"has_border": true
},
{
"name": "bs-overrides-border",
"rect": [
280,
125,
380,
155
],
"has_border": true
},
{
"name": "zero-width",
"rect": [
400,
125,
500,
155
],
"has_border": false
},
{
"name": "transparent",
"rect": [
40,
200,
140,
230
],
"has_border": false
},
{
"name": "hidden",
"rect": [
160,
200,
260,
230
],
"has_border": false
},
{
"name": "no-view",
"rect": [
280,
200,
380,
230
],
"has_border": false
},
{
"name": "print-flag-visible",
"rect": [
400,
200,
500,
230
],
"has_border": true
},
{
"name": "gray",
"rect": [
40,
275,
140,
305
],
"has_border": true
},
{
"name": "cmyk",
"rect": [
160,
275,
260,
305
],
"has_border": true
},
{
"name": "rounded",
"rect": [
280,
275,
380,
305
],
"has_border": true
},
{
"name": "beveled",
"rect": [
400,
275,
500,
305
],
"has_border": true
},
{
"name": "inset",
"rect": [
40,
350,
140,
380
],
"has_border": true
},
{
"name": "appearance-preserved",
"rect": [
160,
350,
260,
380
],
"has_border": true
},
{
"name": "empty-appearance-preserved",
"rect": [
280,
350,
380,
380
],
"has_border": false
},
{
"name": "alpha",
"rect": [
400,
350,
500,
380
],
"has_border": true
}
],
"reference_limitations": [
"Poppler ignores gray/CMYK border colors, rounded corners, bevel/inset, and alpha in its no-AP link fallback; assert these independently.",
"Saved normal AP must be preserved without adding a second border, even if Poppler adds one."
]
},
{
"file": "unknown-style.pdf",
"bytes": 479,
"sha256": "d4143011ea2114f4fbb0d39c10b4dac9d4a66a58cc6af6f70ee8d3feb6dc4fc5",
"render_error": "E_PDF_ANNOT_UNSUPPORTED"
},
{
"file": "no-zoom.pdf",
"bytes": 462,
"sha256": "e84b3c14db58235d6d4020abb99e3ed76cb2b95b49a4a134a3e41957270b8bfe",
"expected": "Valid annotation flag; rendering succeeds. Geometry coverage is in annotation-flags/flags.pdf."
},
{
"file": "no-rotate.pdf",
"bytes": 463,
"sha256": "ffacbbb08144ad880b6d582fa90199fabea4935601ceed5f9acc17a8d4231656",
"expected": "Valid annotation flag; rendering succeeds. Geometry coverage is in annotation-flags/flags.pdf."
},
{
"file": "invalid-dash.pdf",
"bytes": 482,
"sha256": "41ad1db315a360b98bb84c2fb44e5cb65eff5a690d9246fb3cd18b1f262858d7",
"render_error": "E_PDF_CORRUPT"
},
{
"file": "oversized-dash.pdf",
"bytes": 609,
"sha256": "51ecdef6659ea919b38985d21e4cc65f352f22654ecf47efd1670eea1b931640",
"render_error": "E_LIMIT_EXCEEDED"
},
{
"file": "invalid-color.pdf",
"bytes": 466,
"sha256": "eeb32339cc56e21cb6c3f2964c035746e0e233cfb694eb9bb9dafd1850010465",
"render_error": "E_PDF_CORRUPT"
},
{
"file": "invalid-ap.pdf",
"bytes": 473,
"sha256": "d604660b85493a4fe7f68062597b0e0f08f4a9d26029ad1b11afa661c629502b",
"render_error": "E_PDF_CORRUPT"
},
{
"file": "retry-budget.pdf",
"bytes": 127908,
"sha256": "bb1145397f88a941e1597ed485fcab7a141bd6b11a82403a96bd646ec8d28e79",
"expected": "Forty failed page-0 decodes must not charge discarded appearances or prevent valid page-1 rendering."
}
]
}
+26
View File
@@ -0,0 +1,26 @@
%PDF-1.7
%âãÏÓ
1 0 obj
<< /Type /Catalog /Pages 2 0 R >>
endobj
2 0 obj
<< /Type /Pages /Count 1 /Kids [3 0 R] >>
endobj
3 0 obj
<< /Type /Page /Parent 2 0 R /MediaBox [0 0 100 100] /Resources << >> /Annots [4 0 R] >>
endobj
4 0 obj
<< /Type /Annot /Subtype /Link /Rect [20 20 80 80] /F 16 >>
endobj
xref
0 5
0000000000 65535 f
0000000015 00000 n
0000000064 00000 n
0000000121 00000 n
0000000225 00000 n
trailer
<< /Size 5 /Root 1 0 R >>
startxref
300
%%EOF
+26
View File
@@ -0,0 +1,26 @@
%PDF-1.7
%âãÏÓ
1 0 obj
<< /Type /Catalog /Pages 2 0 R >>
endobj
2 0 obj
<< /Type /Pages /Count 1 /Kids [3 0 R] >>
endobj
3 0 obj
<< /Type /Page /Parent 2 0 R /MediaBox [0 0 100 100] /Resources << >> /Annots [4 0 R] >>
endobj
4 0 obj
<< /Type /Annot /Subtype /Link /Rect [20 20 80 80] /F 8 >>
endobj
xref
0 5
0000000000 65535 f
0000000015 00000 n
0000000064 00000 n
0000000121 00000 n
0000000225 00000 n
trailer
<< /Size 5 /Root 1 0 R >>
startxref
299
%%EOF
+26
View File
@@ -0,0 +1,26 @@
%PDF-1.7
%âãÏÓ
1 0 obj
<< /Type /Catalog /Pages 2 0 R >>
endobj
2 0 obj
<< /Type /Pages /Count 1 /Kids [3 0 R] >>
endobj
3 0 obj
<< /Type /Page /Parent 2 0 R /MediaBox [0 0 100 100] /Resources << >> /Annots [4 0 R] >>
endobj
4 0 obj
<< /Type /Annot /Subtype /Link /Rect [20 20 80 80] /BS << /S /D /D [1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ] >> >>
endobj
xref
0 5
0000000000 65535 f
0000000015 00000 n
0000000064 00000 n
0000000121 00000 n
0000000225 00000 n
trailer
<< /Size 5 /Root 1 0 R >>
startxref
446
%%EOF
File diff suppressed because it is too large Load Diff
+128
View File
@@ -0,0 +1,128 @@
%PDF-1.7
%âãÏÓ
1 0 obj
<< /Type /Catalog /Pages 2 0 R >>
endobj
2 0 obj
<< /Type /Pages /Count 4 /Kids [3 0 R 4 0 R 5 0 R 6 0 R] >>
endobj
3 0 obj
<< /Type /Page /Parent 2 0 R /MediaBox [0 0 550 470] /CropBox [20 30 530 450] /Rotate 0 /Resources << >> /Annots [9 0 R 10 0 R 11 0 R 12 0 R 13 0 R 14 0 R 15 0 R 16 0 R 17 0 R 18 0 R 19 0 R 20 0 R 21 0 R 22 0 R 23 0 R 24 0 R 25 0 R 26 0 R 27 0 R 28 0 R] >>
endobj
4 0 obj
<< /Type /Page /Parent 2 0 R /MediaBox [0 0 550 470] /CropBox [20 30 530 450] /Rotate 90 /Resources << >> /Annots [9 0 R 10 0 R 11 0 R 12 0 R 13 0 R 14 0 R 15 0 R 16 0 R 17 0 R 18 0 R 19 0 R 20 0 R 21 0 R 22 0 R 23 0 R 24 0 R 25 0 R 26 0 R 27 0 R 28 0 R] >>
endobj
5 0 obj
<< /Type /Page /Parent 2 0 R /MediaBox [0 0 550 470] /CropBox [20 30 530 450] /Rotate 180 /Resources << >> /Annots [9 0 R 10 0 R 11 0 R 12 0 R 13 0 R 14 0 R 15 0 R 16 0 R 17 0 R 18 0 R 19 0 R 20 0 R 21 0 R 22 0 R 23 0 R 24 0 R 25 0 R 26 0 R 27 0 R 28 0 R] >>
endobj
6 0 obj
<< /Type /Page /Parent 2 0 R /MediaBox [0 0 550 470] /CropBox [20 30 530 450] /Rotate 270 /Resources << >> /Annots [9 0 R 10 0 R 11 0 R 12 0 R 13 0 R 14 0 R 15 0 R 16 0 R 17 0 R 18 0 R 19 0 R 20 0 R 21 0 R 22 0 R 23 0 R 24 0 R 25 0 R 26 0 R 27 0 R 28 0 R] >>
endobj
7 0 obj
<< /Length 26 /Type /XObject /Subtype /Form /BBox [0 0 100 30] /Resources << >> >>
stream
0 0.8 0 rg 0 0 100 30 re f
endstream
endobj
8 0 obj
<< /Length 0 /Type /XObject /Subtype /Form /BBox [0 0 100 30] /Resources << >> >>
stream
endstream
endobj
9 0 obj
<< /Type /Annot /Subtype /Link /Rect [40 50 140 80] /A << /S /URI /URI (https://example.org/default) >> >>
endobj
10 0 obj
<< /Type /Annot /Subtype /Link /Rect [160 50 260 80] /A << /S /URI /URI (https://example.org/solid-rgb) >> /BS << /W 3 /S /S >> /C [0.8 0.1 0.2] >>
endobj
11 0 obj
<< /Type /Annot /Subtype /Link /Rect [280 50 380 80] /A << /S /URI /URI (https://example.org/dashed-border) >> /Border [0 0 2 [6 3]] /C [0 0.2 0.8] >>
endobj
12 0 obj
<< /Type /Annot /Subtype /Link /Rect [400 50 500 80] /A << /S /URI /URI (https://example.org/dashed-bs-odd) >> /BS << /W 2 /S /D /D [7 3 2] >> /C [0.1 0.5 0.2] >>
endobj
13 0 obj
<< /Type /Annot /Subtype /Link /Rect [40 125 140 155] /A << /S /URI /URI (https://example.org/dashed-default) >> /BS << /W 2 /S /D >> >>
endobj
14 0 obj
<< /Type /Annot /Subtype /Link /Rect [160 125 260 155] /A << /S /URI /URI (https://example.org/underline) >> /BS << /W 3 /S /U >> /C [0.6 0.1 0.8] >>
endobj
15 0 obj
<< /Type /Annot /Subtype /Link /Rect [280 125 380 155] /A << /S /URI /URI (https://example.org/bs-overrides-border) >> /Border [9 9 12 [1 1]] /BS << /W 2 /S /S >> /C [0 0.3 0.7] >>
endobj
16 0 obj
<< /Type /Annot /Subtype /Link /Rect [400 125 500 155] /A << /S /URI /URI (https://example.org/zero-width) >> /BS << /W 0 >> >>
endobj
17 0 obj
<< /Type /Annot /Subtype /Link /Rect [40 200 140 230] /A << /S /URI /URI (https://example.org/transparent) >> /BS << /W 4 >> /C [] >>
endobj
18 0 obj
<< /Type /Annot /Subtype /Link /Rect [160 200 260 230] /A << /S /URI /URI (https://example.org/hidden) >> /BS << /W 4 >> /F 2 >>
endobj
19 0 obj
<< /Type /Annot /Subtype /Link /Rect [280 200 380 230] /A << /S /URI /URI (https://example.org/no-view) >> /BS << /W 4 >> /F 32 >>
endobj
20 0 obj
<< /Type /Annot /Subtype /Link /Rect [400 200 500 230] /A << /S /URI /URI (https://example.org/print-flag-visible) >> /BS << /W 2 >> /F 4 >>
endobj
21 0 obj
<< /Type /Annot /Subtype /Link /Rect [40 275 140 305] /A << /S /URI /URI (https://example.org/gray) >> /BS << /W 3 >> /C [0.5] >>
endobj
22 0 obj
<< /Type /Annot /Subtype /Link /Rect [160 275 260 305] /A << /S /URI /URI (https://example.org/cmyk) >> /BS << /W 3 >> /C [1 0 0 0] >>
endobj
23 0 obj
<< /Type /Annot /Subtype /Link /Rect [280 275 380 305] /A << /S /URI /URI (https://example.org/rounded) >> /Border [8 6 2] /C [0.6 0.3 0.1] >>
endobj
24 0 obj
<< /Type /Annot /Subtype /Link /Rect [400 275 500 305] /A << /S /URI /URI (https://example.org/beveled) >> /BS << /W 3 /S /B >> /C [0.2 0.6 0.8] >>
endobj
25 0 obj
<< /Type /Annot /Subtype /Link /Rect [40 350 140 380] /A << /S /URI /URI (https://example.org/inset) >> /BS << /W 3 /S /I >> /C [0.2 0.6 0.8] >>
endobj
26 0 obj
<< /Type /Annot /Subtype /Link /Rect [160 350 260 380] /A << /S /URI /URI (https://example.org/appearance-preserved) >> /BS << /W 8 /S /D >> /C [1 0 0] /AP << /N 7 0 R >> >>
endobj
27 0 obj
<< /Type /Annot /Subtype /Link /Rect [280 350 380 380] /A << /S /URI /URI (https://example.org/empty-appearance-preserved) >> /BS << /W 8 >> /AP << /N 8 0 R >> >>
endobj
28 0 obj
<< /Type /Annot /Subtype /Link /Rect [400 350 500 380] /A << /S /URI /URI (https://example.org/alpha) >> /BS << /W 3 >> /C [0 0 1] /CA 0.5 >>
endobj
xref
0 29
0000000000 65535 f
0000000015 00000 n
0000000064 00000 n
0000000139 00000 n
0000000411 00000 n
0000000684 00000 n
0000000958 00000 n
0000001232 00000 n
0000001374 00000 n
0000001489 00000 n
0000001612 00000 n
0000001776 00000 n
0000001943 00000 n
0000002122 00000 n
0000002275 00000 n
0000002441 00000 n
0000002638 00000 n
0000002782 00000 n
0000002932 00000 n
0000003077 00000 n
0000003224 00000 n
0000003381 00000 n
0000003527 00000 n
0000003678 00000 n
0000003837 00000 n
0000004001 00000 n
0000004162 00000 n
0000004352 00000 n
0000004531 00000 n
trailer
<< /Size 29 /Root 1 0 R >>
startxref
4689
%%EOF
+26
View File
@@ -0,0 +1,26 @@
%PDF-1.7
%âãÏÓ
1 0 obj
<< /Type /Catalog /Pages 2 0 R >>
endobj
2 0 obj
<< /Type /Pages /Count 1 /Kids [3 0 R] >>
endobj
3 0 obj
<< /Type /Page /Parent 2 0 R /MediaBox [0 0 100 100] /Resources << >> /Annots [4 0 R] >>
endobj
4 0 obj
<< /Type /Annot /Subtype /Link /Rect [20 20 80 80] /BS << /S /Unknown >> >>
endobj
xref
0 5
0000000000 65535 f
0000000015 00000 n
0000000064 00000 n
0000000121 00000 n
0000000225 00000 n
trailer
<< /Size 5 /Root 1 0 R >>
startxref
316
%%EOF