Skip to content

Commit

Permalink
remade ocgcolorlinks tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrike Fischer committed Jan 21, 2021
1 parent 91cb048 commit 733ce33
Show file tree
Hide file tree
Showing 5 changed files with 284 additions and 265 deletions.
4 changes: 4 additions & 0 deletions resave.bat
Expand Up @@ -3,3 +3,7 @@ rem l3build save -e\2 \1
rem l3build save -cconfig-dvips \1
rem l3build save -cconfig-luatex -e\2 \1
rem l3build save -cconfig-noxetex -e\2 \1

l3build save -eluatex ocgcolorlinks
l3build save -epdftex ocgcolorlinks
l3build save -exetex ocgcolorlinks
136 changes: 71 additions & 65 deletions testfiles/ocgcolorlinks.luatex.tpf
Expand Up @@ -12,9 +12,15 @@ endobj
7 0 obj
<< /OFF[6 0 R]/AS[<</Event/View/OCGs 8 0 R/Category[/View]>><</Event/Print/OCGs 8 0 R/Category[/Print]>><</Event/Export/OCGs 8 0 R/Category[/Print]>>] >>
endobj
1 0 obj
<< /opacity1 <</ca 1/CA 1>> >>
endobj
23 0 obj
<< /Length 6287 >>
<< /Length 6326 >>
stream
/opacity1 gs
/opacity1 gs
/opacity1 gs
0 g 0 G
0 g 0 G
0 g 0 G
Expand Down Expand Up @@ -303,7 +309,7 @@ endobj
endobj
13 0 obj
<< /Type /Annot /Border [0 0 0] /H /I /C [0 1 1] /Rect [ 226.869 532.988 386.271 546.936 ]
/Subtype/Link/A<</Type/Action /S/URI /URI(https://www.latex-project.org/) >>
/Subtype/Link/A<</Type/Action /S/URI /URI(https://www.latex-project.org/)>>
>>
endobj
14 0 obj
Expand All @@ -313,7 +319,7 @@ endobj
endobj
15 0 obj
<< /Type /Annot /Border [0 0 0] /H /I /C [0 .7 .7] /Rect [ 226.869 485.168 291.497 499.115 ]
/Subtype/Link/A<</F(sumatra)/S/Launch>>
/Subtype/Link/A<</F (sumatra)/S/Launch>>
>>
endobj
16 0 obj
Expand All @@ -329,7 +335,7 @@ endobj
endobj
19 0 obj
<< /Type /Annot /Border [1 1 1] /H /I /C [0 1 1] /Rect [ 274.859 335.929 434.262 349.877 ]
/Subtype/Link/A<</Type/Action /S/URI /URI(https://www.latex-project.org/) >>
/Subtype/Link/A<</Type/Action /S/URI /URI(https://www.latex-project.org/)>>
>>
endobj
20 0 obj
Expand All @@ -339,7 +345,7 @@ endobj
endobj
21 0 obj
<< /Type /Annot /Border [1 1 1] /H /I /C [0 .7 .7] /Rect [ 274.859 288.109 339.487 302.056 ]
/Subtype/Link/A<</F(sumatra)/S/Launch>>
/Subtype/Link/A<</F (sumatra)/S/Launch>>
>>
endobj
24 0 obj
Expand All @@ -361,7 +367,7 @@ endobj
<< /D [ 9 0 R /XYZ 133.768 256.975 null ] >>
endobj
22 0 obj
<< /Properties <</l3pdf1 6 0 R/l3pdf10 5 0 R/l3pdf11 6 0 R/l3pdf12 5 0 R/l3pdf13 6 0 R/l3pdf14 5 0 R/l3pdf15 6 0 R/l3pdf16 5 0 R/l3pdf17 6 0 R/l3pdf18 5 0 R/l3pdf19 6 0 R/l3pdf2 5 0 R/l3pdf20 5 0 R/l3pdf21 6 0 R/l3pdf22 5 0 R/l3pdf23 6 0 R/l3pdf24 5 0 R/l3pdf3 6 0 R/l3pdf4 5 0 R/l3pdf5 6 0 R/l3pdf6 5 0 R/l3pdf7 6 0 R/l3pdf8 5 0 R/l3pdf9 6 0 R>> /Font << /F25 27 0 R /F23 28 0 R /F36 29 0 R >> /ProcSet [ /PDF /Text ] >>
<< /Properties <</l3pdf1 6 0 R/l3pdf10 5 0 R/l3pdf11 6 0 R/l3pdf12 5 0 R/l3pdf13 6 0 R/l3pdf14 5 0 R/l3pdf15 6 0 R/l3pdf16 5 0 R/l3pdf17 6 0 R/l3pdf18 5 0 R/l3pdf19 6 0 R/l3pdf2 5 0 R/l3pdf20 5 0 R/l3pdf21 6 0 R/l3pdf22 5 0 R/l3pdf23 6 0 R/l3pdf24 5 0 R/l3pdf3 6 0 R/l3pdf4 5 0 R/l3pdf5 6 0 R/l3pdf6 5 0 R/l3pdf7 6 0 R/l3pdf8 5 0 R/l3pdf9 6 0 R>>/ExtGState 1 0 R /Font << /F25 27 0 R /F23 28 0 R /F36 29 0 R >> /ProcSet [ /PDF /Text ] >>
endobj
35 0 obj
<< /OCGs [5 0 R 6 0 R]/D 7 0 R >>
Expand Down Expand Up @@ -638,73 +644,73 @@ endobj
endobj
xref
0 65
0000000001 65535 f
0000000002 00000 f
0000000002 65535 f
0000000423 00000 n
0000000003 00000 f
0000000004 00000 f
0000000000 00000 f
0000000051 00000 n
0000000152 00000 n
0000000254 00000 n
0000000020 00000 n
0000006770 00000 n
0000006998 00000 n
0000007157 00000 n
0000007316 00000 n
0000007489 00000 n
0000007679 00000 n
0000007827 00000 n
0000007982 00000 n
0000008140 00000 n
0000008299 00000 n
0000008471 00000 n
0000008661 00000 n
0000008809 00000 n
0000009328 00000 n
0000000423 00000 n
0000008964 00000 n
0000009024 00000 n
0000009085 00000 n
0000025482 00000 n
0000020904 00000 n
0000014258 00000 n
0000009146 00000 n
0000009207 00000 n
0000009267 00000 n
0000025830 00000 n
0000006894 00000 n
0000009766 00000 n
0000009816 00000 n
0000026039 00000 n
0000009862 00000 n
0000010039 00000 n
0000025965 00000 n
0000010085 00000 n
0000010250 00000 n
0000013037 00000 n
0000010458 00000 n
0000010533 00000 n
0000013272 00000 n
0000014411 00000 n
0000014610 00000 n
0000019477 00000 n
0000014963 00000 n
0000015039 00000 n
0000019713 00000 n
0000021058 00000 n
0000021258 00000 n
0000024258 00000 n
0000021476 00000 n
0000021551 00000 n
0000024492 00000 n
0000025633 00000 n
0000025891 00000 n
0000026113 00000 n
0000026294 00000 n
0000026330 00000 n
0000026511 00000 n
0000006856 00000 n
0000007084 00000 n
0000007243 00000 n
0000007402 00000 n
0000007575 00000 n
0000007764 00000 n
0000007912 00000 n
0000008068 00000 n
0000008226 00000 n
0000008385 00000 n
0000008557 00000 n
0000008746 00000 n
0000008894 00000 n
0000009414 00000 n
0000000470 00000 n
0000009050 00000 n
0000009110 00000 n
0000009171 00000 n
0000025584 00000 n
0000021006 00000 n
0000014360 00000 n
0000009232 00000 n
0000009293 00000 n
0000009353 00000 n
0000025932 00000 n
0000006980 00000 n
0000009868 00000 n
0000009918 00000 n
0000026141 00000 n
0000009964 00000 n
0000010141 00000 n
0000026067 00000 n
0000010187 00000 n
0000010352 00000 n
0000013139 00000 n
0000010560 00000 n
0000010635 00000 n
0000013374 00000 n
0000014513 00000 n
0000014712 00000 n
0000019579 00000 n
0000015065 00000 n
0000015141 00000 n
0000019815 00000 n
0000021160 00000 n
0000021360 00000 n
0000024360 00000 n
0000021578 00000 n
0000021653 00000 n
0000024594 00000 n
0000025735 00000 n
0000025993 00000 n
0000026215 00000 n
0000026396 00000 n
0000026432 00000 n
0000026613 00000 n
trailer
<< /Size 65 /Root 63 0 R /Info 64 0 R >>
startxref
26659
26761
%%EOF
5 changes: 2 additions & 3 deletions testfiles/ocgcolorlinks.pvt
Expand Up @@ -3,9 +3,8 @@
\DeclareDocumentMetadata { }
\documentclass{article}
\usepackage{xcolor}
\usepackage[verbose,ocgcolorlinks,customdriver=hgeneric-experimental]
{hyperref}

\usepackage[verbose,ocgcolorlinks]{hyperref}
\hypersetup{ocgcolorlinks}

\begin{document}
\hypupdateattribute
Expand Down
116 changes: 61 additions & 55 deletions testfiles/ocgcolorlinks.tpf
Expand Up @@ -12,11 +12,17 @@ endobj
7 0 obj
<< /OFF[6 0 R]/AS[<</Event/View/OCGs 8 0 R/Category[/View]>><</Event/Print/OCGs 8 0 R/Category[/Print]>><</Event/Export/OCGs 8 0 R/Category[/Print]>>] >>
endobj
1 0 obj
<< /opacity1 <</ca 1/CA 1>> >>
endobj
23 0 obj
<<
/Length 4165
/Length 4204
>>
stream
/opacity1 gs
/opacity1 gs
/opacity1 gs
0 g 0 G
0 g 0 G
0 g 0 G
Expand Down Expand Up @@ -283,7 +289,7 @@ endobj
/Type /Annot
/Border [0 0 0] /H /I /C [0 1 1]
/Rect [226.864 532.999 386.265 546.946]
/Subtype/Link/A<</Type/Action /S/URI /URI(https://www.latex-project.org/) >>
/Subtype/Link/A<</Type/Action /S/URI /URI(https://www.latex-project.org/)>>
>>
endobj
14 0 obj
Expand All @@ -299,7 +305,7 @@ endobj
/Type /Annot
/Border [0 0 0] /H /I /C [0 .7 .7]
/Rect [226.864 485.178 291.483 499.126]
/Subtype/Link/A<</F(sumatra)/S/Launch>>
/Subtype/Link/A<</F (sumatra)/S/Launch>>
>>
endobj
16 0 obj
Expand Down Expand Up @@ -333,7 +339,7 @@ endobj
/Type /Annot
/Border [1 1 1] /H /I /C [0 1 1]
/Rect [274.823 335.965 434.224 349.913]
/Subtype/Link/A<</Type/Action /S/URI /URI(https://www.latex-project.org/) >>
/Subtype/Link/A<</Type/Action /S/URI /URI(https://www.latex-project.org/)>>
>>
endobj
20 0 obj
Expand All @@ -349,7 +355,7 @@ endobj
/Type /Annot
/Border [1 1 1] /H /I /C [0 .7 .7]
/Rect [274.823 288.145 339.442 302.092]
/Subtype/Link/A<</F(sumatra)/S/Launch>>
/Subtype/Link/A<</F (sumatra)/S/Launch>>
>>
endobj
24 0 obj
Expand Down Expand Up @@ -384,7 +390,7 @@ endobj
endobj
22 0 obj
<<
/Properties <</l3pdf1 6 0 R /l3pdf2 5 0 R /l3pdf3 6 0 R /l3pdf4 5 0 R /l3pdf5 6 0 R /l3pdf6 5 0 R /l3pdf7 6 0 R /l3pdf8 5 0 R /l3pdf9 6 0 R /l3pdf10 5 0 R /l3pdf11 6 0 R /l3pdf12 5 0 R /l3pdf13 6 0 R /l3pdf14 5 0 R /l3pdf15 6 0 R /l3pdf16 5 0 R /l3pdf17 6 0 R /l3pdf18 5 0 R /l3pdf19 6 0 R /l3pdf20 5 0 R /l3pdf21 6 0 R /l3pdf22 5 0 R /l3pdf23 6 0 R /l3pdf24 5 0 R >>
/Properties <</l3pdf1 6 0 R /l3pdf2 5 0 R /l3pdf3 6 0 R /l3pdf4 5 0 R /l3pdf5 6 0 R /l3pdf6 5 0 R /l3pdf7 6 0 R /l3pdf8 5 0 R /l3pdf9 6 0 R /l3pdf10 5 0 R /l3pdf11 6 0 R /l3pdf12 5 0 R /l3pdf13 6 0 R /l3pdf14 5 0 R /l3pdf15 6 0 R /l3pdf16 5 0 R /l3pdf17 6 0 R /l3pdf18 5 0 R /l3pdf19 6 0 R /l3pdf20 5 0 R /l3pdf21 6 0 R /l3pdf22 5 0 R /l3pdf23 6 0 R /l3pdf24 5 0 R >>/ExtGState 1 0 R
/Font << /F29 27 0 R /F19 28 0 R /F30 29 0 R >>
/ProcSet [ /PDF /Text ]
>>
Expand Down Expand Up @@ -580,66 +586,66 @@ endobj
endobj
xref
0 55
0000000001 65535 f
0000000002 00000 f
0000000002 65535 f
0000000418 00000 n
0000000003 00000 f
0000000004 00000 f
0000000000 00000 f
0000000046 00000 n
0000000147 00000 n
0000000249 00000 n
0000000015 00000 n
0000004642 00000 n
0000004845 00000 n
0000005001 00000 n
0000005158 00000 n
0000005327 00000 n
0000005513 00000 n
0000005657 00000 n
0000005808 00000 n
0000005965 00000 n
0000006121 00000 n
0000006290 00000 n
0000006476 00000 n
0000006620 00000 n
0000007124 00000 n
0000000418 00000 n
0000006771 00000 n
0000006829 00000 n
0000006888 00000 n
0000048571 00000 n
0000048712 00000 n
0000048852 00000 n
0000006947 00000 n
0000007006 00000 n
0000007065 00000 n
0000048993 00000 n
0000007586 00000 n
0000007636 00000 n
0000049199 00000 n
0000007682 00000 n
0000007858 00000 n
0000049125 00000 n
0000007904 00000 n
0000008068 00000 n
0000008390 00000 n
0000009000 00000 n
0000009442 00000 n
0000020238 00000 n
0000020501 00000 n
0000036432 00000 n
0000036751 00000 n
0000048303 00000 n
0000049051 00000 n
0000049273 00000 n
0000049450 00000 n
0000049486 00000 n
0000049667 00000 n
0000004728 00000 n
0000004931 00000 n
0000005087 00000 n
0000005244 00000 n
0000005413 00000 n
0000005598 00000 n
0000005742 00000 n
0000005894 00000 n
0000006051 00000 n
0000006207 00000 n
0000006376 00000 n
0000006561 00000 n
0000006705 00000 n
0000007210 00000 n
0000000465 00000 n
0000006857 00000 n
0000006915 00000 n
0000006974 00000 n
0000048674 00000 n
0000048815 00000 n
0000048955 00000 n
0000007033 00000 n
0000007092 00000 n
0000007151 00000 n
0000049096 00000 n
0000007689 00000 n
0000007739 00000 n
0000049302 00000 n
0000007785 00000 n
0000007961 00000 n
0000049228 00000 n
0000008007 00000 n
0000008171 00000 n
0000008493 00000 n
0000009103 00000 n
0000009545 00000 n
0000020341 00000 n
0000020604 00000 n
0000036535 00000 n
0000036854 00000 n
0000048406 00000 n
0000049154 00000 n
0000049376 00000 n
0000049553 00000 n
0000049589 00000 n
0000049770 00000 n
trailer
<< /Size 55
/Root 53 0 R
/Info 54 0 R
>>
startxref
49815
49918
%%EOF

0 comments on commit 733ce33

Please sign in to comment.