[latex3-commits] [git/LaTeX3-latex3-pdfresources] testlinkstuff: corrected testfiles, new test (e00d624)

Ulrike Fischer fischer at troubleshooting-tex.de
Thu May 23 18:21:25 CEST 2019


Repository : https://github.com/latex3/pdfresources
On branch  : testlinkstuff
Link       : https://github.com/latex3/pdfresources/commit/e00d624255b4ef2af5803a105c9fc70bebcba967

>---------------------------------------------------------------

commit e00d624255b4ef2af5803a105c9fc70bebcba967
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Thu May 23 18:21:25 2019 +0200

    corrected testfiles, new test


>---------------------------------------------------------------

e00d624255b4ef2af5803a105c9fc70bebcba967
 testfiles/ocproperties.luatex.tpf |    2 +-
 testfiles/ocproperties.pvt        |    4 +-
 testfiles/ocproperties.tpf        |    2 +-
 testfiles/pgfpatches.tpf          |  197 ++++++++++++++++++++-----------------
 testfiles/viewerpreferences.pvt   |   13 +++
 testfiles/viewerpreferences.tpf   |  188 +++++++++++++++++++++++++++++++++++
 6 files changed, 309 insertions(+), 97 deletions(-)

diff --git a/testfiles/ocproperties.luatex.tpf b/testfiles/ocproperties.luatex.tpf
index 67d1f0b..545e333 100644
--- a/testfiles/ocproperties.luatex.tpf
+++ b/testfiles/ocproperties.luatex.tpf
@@ -1,7 +1,7 @@
 %PDF-1.5
 %ÌÕÁÔÅØÐÄÆ
 6 0 obj
-<< /OCGS [1 0 R 2 0 R]/D 102 0 R/Configs [99 0 R 100 0 R 101 0 R] >>
+<< /OCGs [1 0 R 2 0 R]/D 102 0 R/Configs [99 0 R 100 0 R 101 0 R] >>
 endobj
 9 0 obj
 << /Length 111 >>        
diff --git a/testfiles/ocproperties.pvt b/testfiles/ocproperties.pvt
index 09a2230..2b44eec 100644
--- a/testfiles/ocproperties.pvt
+++ b/testfiles/ocproperties.pvt
@@ -6,8 +6,8 @@
 \driver_pdf_compress_objects:n {0}
 
 %some senseless additions to test the commands
-\pdf_catalog_OCProperties_OCGS_gput:n{1~0~R}
-\pdf_catalog_OCProperties_OCGS_gput:n{2~0~R}
+\pdf_catalog_OCProperties_OCGs_gput:n{1~0~R}
+\pdf_catalog_OCProperties_OCGs_gput:n{2~0~R}
 \pdf_catalog_OCProperties_Configs_gput:n {99~0~R}
 \pdf_catalog_OCProperties_Configs_gput:n {100~0~R}
 \pdf_catalog_OCProperties_Configs_gput:n {101~0~R}
diff --git a/testfiles/ocproperties.tpf b/testfiles/ocproperties.tpf
index 85b13bd..5007685 100644
--- a/testfiles/ocproperties.tpf
+++ b/testfiles/ocproperties.tpf
@@ -1,7 +1,7 @@
 %PDF-1.5
 %ÐÔÅØ
 6 0 obj
-<< /OCGS [1 0 R 2 0 R]/D 102 0 R/Configs [99 0 R 100 0 R 101 0 R] >>
+<< /OCGs [1 0 R 2 0 R]/D 102 0 R/Configs [99 0 R 100 0 R 101 0 R] >>
 endobj
 9 0 obj
 <<
diff --git a/testfiles/pgfpatches.tpf b/testfiles/pgfpatches.tpf
index ec65933..a133bb2 100644
--- a/testfiles/pgfpatches.tpf
+++ b/testfiles/pgfpatches.tpf
@@ -7,9 +7,18 @@ endobj
 << /Type/OCG/Name(Print)/Usage<</Print<</PrintState/ON>> /View<</ViewState/OFF>> >> >>
 endobj
 12 0 obj
-<< /S /GoTo /D [13 0 R /Fit] >>
+[ 9 0 R 10 0 R ]
 endobj
-14 0 obj
+11 0 obj
+<< /OFF[10 0 R]/AS[<</Event/View/OCGs 12 0 R/Category[/View]>><</Event/Print/OCGs 12 0 R/Category[/Print]>><</Event/Export/OCGs 12 0 R/Category[/Print]>>] >>
+endobj
+13 0 obj
+<< /S /GoTo /D [14 0 R /Fit] >>
+endobj
+15 0 obj
+<< /OCGs [9 0 R 10 0 R]/D 11 0 R >>
+endobj
+16 0 obj
 <<
  /Type /Pattern /PatternType 1 /PaintType 2 /TilingType 1 /BBox [-0.99628 -0.99628 3.9851 3.9851] /XStep 2.98883 /YStep 2.98883 /Resources << >> 
 /Length 43        
@@ -18,7 +27,7 @@ stream
 q 0.3985 w 0.0 0.0 m 3.08846 3.08846 l S Q 
 endstream
 endobj
-15 0 obj
+17 0 obj
 <<
  /Type /Pattern /PatternType 1 /PaintType 1 /TilingType 1 /BBox [0.0 0.0 11.33871 11.33871] /XStep 11.33871 /YStep 11.33871 /Resources << >> 
 /Length 103       
@@ -27,18 +36,18 @@ stream
 q 0.0 0.0 11.6222 11.6222 re f 0.8 g 0.0 0.0 5.66934 5.66934 re 5.66934 5.66934 5.66934 5.66934 re f Q 
 endstream
 endobj
-17 0 obj
+19 0 obj
 <<
-/Length 969       
+/Length 870       
 >>
 stream
 0 g 0 G
 0 g 0 G
 0 g 0 G
 BT
-/F8 9.9626 Tf 148.712 657.235 Td [(l__h)28(yp_o)-28(cg_ref_arra)28(y_ob)-55(j9)-334(0)-333(R)-333(10)-334(0)-333(R)]TJ 0 -11.955 Td [(bbbb)]TJ
+/F8 9.9626 Tf 148.712 657.235 Td [(bbbb)]TJ
 ET
-1 0 0 1 152.033 636.646 cm
+1 0 0 1 152.033 648.601 cm
 q 
 0 G 
 0 g 
@@ -64,7 +73,7 @@ Q
 Q 
 n 
 Q 
-1 0 0 1 0 -11.956 cm
+1 0 0 1 0 -11.955 cm
 q 
 0 G 
 0 g 
@@ -90,7 +99,7 @@ Q
 Q 
 n 
 Q 
-1 0 0 1 -3.321 -32.663 cm
+1 0 0 1 -3.321 -32.664 cm
 q 
 0 G 
 0 g 
@@ -114,40 +123,40 @@ Q
 n 
 Q 
 0 g 0 G
-1 0 0 1 -148.712 -592.027 cm
+1 0 0 1 -148.712 -603.982 cm
 BT
 /F8 9.9626 Tf 303.133 89.365 Td [(1)]TJ
 0 g 0 G
 ET
 endstream
 endobj
-13 0 obj
+14 0 obj
 <<
 /Type /Page
-/Contents 17 0 R
-/Resources 16 0 R
+/Contents 19 0 R
+/Resources 18 0 R
 /MediaBox [0 0 612 792]
-/Parent 21 0 R
+/Parent 23 0 R
 >>
 endobj
-18 0 obj
+20 0 obj
 <<
-/D [13 0 R /XYZ 132.768 705.06 null]
+/D [14 0 R /XYZ 132.768 705.06 null]
 >>
 endobj
-20 0 obj
+21 0 obj
 <<
-/D [13 0 R /XYZ 133.768 655.298 null]
+/D [14 0 R /XYZ 133.768 667.198 null]
 >>
 endobj
-16 0 obj
+18 0 obj
 <<
 /ExtGState 1 0 R /ColorSpace 2 0 R /Pattern 3 0 R /Shading 4 0 R /Properties 5 0 R 
-/Font << /F8 19 0 R >>
+/Font << /F8 22 0 R >>
 /ProcSet [ /PDF /Text ]
 >>
 endobj
-22 0 obj
+24 0 obj
 <<
  /Type /Pattern /PatternType 1 /PaintType 1 /TilingType 1 /BBox [0.0 0.0 7.97021 7.97021] /XStep 7.97021 /YStep 7.97021 /Resources << >> 
 /Length 1052      
@@ -156,7 +165,7 @@ stream
 q 0.6875 0.76562 0.86718 rg 0.0 0.0 7.97021 7.97021 re f 0.93437 0.93828 0.94336 rg 2.98883 1.74348 m 2.98883 2.29372 2.54279 2.73976 1.99255 2.73976 c 1.4423 2.73976 0.99628 2.29372 0.99628 1.74348 c 0.99628 1.19324 1.4423 0.74721 1.99255 0.74721 c 2.54279 0.74721 2.98883 1.19324 2.98883 1.74348 c h 1.99255 1.74348 m 6.97394 5.72859 m 6.97394 6.27882 6.5279 6.72487 5.97766 6.72487 c 5.42741 6.72487 4.98138 6.27882 4.98138 5.72859 c 4.98138 5.17834 5.42741 4.73232 5.97766 4.73232 c 6.5279 4.73232 6.97394 5.17834 6.97394 5.72859 c h 5.97766 5.72859 m f 0.54062 0.56796 0.60352 rg 2.98883 2.24162 m 2.98883 2.79185 2.54279 3.2379 1.99255 3.2379 c 1.4423 3.2379 0.99628 2.79185 0.99628 2.24162 c 0.99628 1.69138 1.4423 1.24535 1.99255 1.24535 c 2.54279 1.24535 2.98883 1.69138 2.98883 2.24162 c h 1.99255 2.24162 m 6.97394 6.22673 m 6.97394 6.77696 6.5279 7.223 5.97766 7.223 c 5.42741 7.223 4.98138 6.77696 4.98138 6.22673 c 4.98138 5.67648 5.42741 5.23045 5.97766 5.23045 c 6.5279 5.23045 6.97394 5.67648 6.97394 6.22673 c h 5.97766 6.22673 m f Q 
 endstream
 endobj
-25 0 obj
+27 0 obj
 <<
 /Length 509       
 >>
@@ -204,24 +213,24 @@ BT
 ET
 endstream
 endobj
-24 0 obj
+26 0 obj
 <<
 /Type /Page
-/Contents 25 0 R
-/Resources 23 0 R
+/Contents 27 0 R
+/Resources 25 0 R
 /MediaBox [0 0 612 792]
-/Parent 21 0 R
+/Parent 23 0 R
 >>
 endobj
-26 0 obj
+28 0 obj
 <<
-/D [24 0 R /XYZ 132.768 705.06 null]
+/D [26 0 R /XYZ 132.768 705.06 null]
 >>
 endobj
-23 0 obj
+25 0 obj
 <<
 /ExtGState 1 0 R /ColorSpace 2 0 R /Pattern 3 0 R /Shading 4 0 R /Properties 5 0 R 
-/Font << /F8 19 0 R >>
+/Font << /F8 22 0 R >>
 /ProcSet [ /PDF /Text ]
 >>
 endobj
@@ -232,7 +241,7 @@ endobj
 << /pgfprgb  [/Pattern /DeviceRGB]  >>
 endobj
 3 0 obj
-<< /pgfpat3 14 0 R /pgfpat13 15 0 R /pgfpat20 22 0 R  >>
+<< /pgfpat3 16 0 R /pgfpat13 17 0 R /pgfpat20 24 0 R  >>
 endobj
 4 0 obj
 <<  >>
@@ -240,22 +249,22 @@ endobj
 5 0 obj
 << /OCView 9 0 R /OCPrint 10 0 R  >>
 endobj
-27 0 obj
-[500 500 500 500 500 500 500 500 500 500 277.8 277.8 277.8 777.8 472.2 472.2 777.8 750 708.3 722.2 763.9 680.6 652.8 784.7 750 361.1 513.9 777.8 625 916.7 750 777.8 680.6 777.8 736.1 555.6 722.2 750 750 1027.8 750 750 611.1 277.8 500 277.8 500 277.8 277.8 500 555.6 444.4 555.6 444.4 305.6 500 555.6 277.8 305.6 527.8 277.8 833.3 555.6 500 555.6 527.8 391.7 394.4 388.9 555.6 527.8 722.2 527.8 527.8]
+29 0 obj
+[500 500 500 500 500 500 500 500 500 277.8 277.8 277.8 777.8 472.2 472.2 777.8 750 708.3 722.2 763.9 680.6 652.8 784.7 750 361.1 513.9 777.8 625 916.7 750 777.8 680.6 777.8 736.1 555.6 722.2 750 750 1027.8 750 750 611.1 277.8 500 277.8 500 277.8 277.8 500 555.6 444.4 555.6 444.4 305.6 500 555.6 277.8 305.6 527.8 277.8 833.3 555.6 500 555.6 527.8 391.7 394.4 388.9 555.6 527.8 722.2 527.8]
 endobj
-28 0 obj
+30 0 obj
 <<
-/Length1 1658
-/Length2 11614
+/Length1 1410
+/Length2 7892
 /Length3 0
-/Length 13272     
+/Length 9302      
 >>
 [BINARY STREAM]
 endobj
-29 0 obj
+31 0 obj
 <<
 /Type /FontDescriptor
-/FontName /CVMXFW+CMR10
+/FontName /IWFLWM+CMR10
 /Flags 4
 /FontBBox [-40 -250 1009 750]
 /Ascent 694
@@ -264,95 +273,97 @@ endobj
 /ItalicAngle 0
 /StemV 69
 /XHeight 431
-/CharSet (/R/a/b/c/dotaccent/e/f/g/h/j/l/nine/o/one/p/r/two/x/y/zero)
-/FontFile 28 0 R
+/CharSet (/b/one/two/x)
+/FontFile 30 0 R
 >>
 endobj
-19 0 obj
+22 0 obj
 <<
 /Type /Font
 /Subtype /Type1
-/BaseFont /CVMXFW+CMR10
-/FontDescriptor 29 0 R
-/FirstChar 48
-/LastChar 121
-/Widths 27 0 R
+/BaseFont /IWFLWM+CMR10
+/FontDescriptor 31 0 R
+/FirstChar 49
+/LastChar 120
+/Widths 29 0 R
 >>
 endobj
-21 0 obj
+23 0 obj
 <<
 /Type /Pages
 /Count 2
-/Kids [13 0 R 24 0 R]
+/Kids [14 0 R 26 0 R]
 >>
 endobj
-30 0 obj
+32 0 obj
 <<
-/Names [(\376\377\000D\000o\000c\000-\000S\000t\000a\000r\000t) 20 0 R (\376\377\000p\000a\000g\000e\000.\0001) 18 0 R (\376\377\000p\000a\000g\000e\000.\0002) 26 0 R]
-/Limits [(\376\377\000D\000o\000c\000-\000S\000t\000a\000r\000t) (\376\377\000p\000a\000g\000e\000.\0002)]
+/Names [(Doc-Start) 21 0 R (page.1) 20 0 R (page.2) 28 0 R]
+/Limits [(Doc-Start) (page.2)]
 >>
 endobj
-31 0 obj
+33 0 obj
 <<
-/Dests 30 0 R
+/Dests 32 0 R
 >>
 endobj
-32 0 obj
+34 0 obj
 <<
 /Type /Catalog
-/Pages 21 0 R
-/Names 31 0 R
-/OCProperties <</OCGs 11 0 R/D<</OFF[10 0 R]/AS[<</Event/View/OCGs 11 0 R/Category[/View]>><</Event/Print/OCGs 11 0 R/Category[/Print]>><</Event/Export/OCGs 11 0 R/Category[/Print]>>]>>>>
-/OpenAction 12 0 R
+/Pages 23 0 R
+/Names 33 0 R
+/OCProperties 15 0 R/PageMode /UseOutlines
+/OpenAction 13 0 R
 >>
 endobj
-33 0 obj
+35 0 obj
 <<
 /Producer (pdfTeX)/Creator (LaTeX with hyperref)
 /Trapped /False
 >>
 endobj
 xref
-0 34
+0 36
 0000000006 65535 f 
-0000004364 00000 n 
-0000004438 00000 n 
-0000004492 00000 n 
-0000004564 00000 n 
-0000004586 00000 n 
+0000004524 00000 n 
+0000004598 00000 n 
+0000004652 00000 n 
+0000004724 00000 n 
+0000004746 00000 n 
 0000000007 00000 f 
 0000000008 00000 f 
-0000000011 00000 f 
+0000000000 00000 f 
 0000000015 00000 n 
 0000000116 00000 n 
-0000000000 00000 f 
+0000000252 00000 n 
 0000000219 00000 n 
-0000001847 00000 n 
-0000000267 00000 n 
-0000000515 00000 n 
-0000002074 00000 n 
-0000000819 00000 n 
-0000001955 00000 n 
-0000018699 00000 n 
-0000002014 00000 n 
-0000018839 00000 n 
-0000002227 00000 n 
-0000004211 00000 n 
-0000004044 00000 n 
-0000003476 00000 n 
-0000004152 00000 n 
-0000004638 00000 n 
-0000005055 00000 n 
-0000018426 00000 n 
-0000018905 00000 n 
-0000019202 00000 n 
-0000019238 00000 n 
-0000019510 00000 n 
+0000000426 00000 n 
+0000002007 00000 n 
+0000000474 00000 n 
+0000000526 00000 n 
+0000000774 00000 n 
+0000002234 00000 n 
+0000001078 00000 n 
+0000002115 00000 n 
+0000002174 00000 n 
+0000014832 00000 n 
+0000014972 00000 n 
+0000002387 00000 n 
+0000004371 00000 n 
+0000004204 00000 n 
+0000003636 00000 n 
+0000004312 00000 n 
+0000004798 00000 n 
+0000005205 00000 n 
+0000014605 00000 n 
+0000015038 00000 n 
+0000015151 00000 n 
+0000015187 00000 n 
+0000015314 00000 n 
 trailer
-<< /Size 34
-/Root 32 0 R
-/Info 33 0 R
+<< /Size 36
+/Root 34 0 R
+/Info 35 0 R
  >>
 startxref
-19597
+15401
 %%EOF
diff --git a/testfiles/viewerpreferences.pvt b/testfiles/viewerpreferences.pvt
new file mode 100644
index 0000000..ff8e2c5
--- /dev/null
+++ b/testfiles/viewerpreferences.pvt
@@ -0,0 +1,13 @@
+\input{regression-test}
+\documentclass{article}
+\usepackage[customdriver=hluatex-experimental,
+            ocgcolorlinks,
+            pdftoolbar=false,
+            pdfnonfullscreenpagemode=UseNone,
+            pdfnumcopies=4,
+            pdfpagelayout=SinglePage]{hyperref}
+\begin{document}
+\START
+abc
+
+\end{document}
diff --git a/testfiles/viewerpreferences.tpf b/testfiles/viewerpreferences.tpf
new file mode 100644
index 0000000..30e8417
--- /dev/null
+++ b/testfiles/viewerpreferences.tpf
@@ -0,0 +1,188 @@
+%PDF-1.5
+%ÐÔÅØ
+6 0 obj
+<< /Type/OCG/Name(View)/Usage<</Print<</PrintState/OFF>> /View<</ViewState/ON>> >> >>
+endobj
+7 0 obj
+<< /Type/OCG/Name(Print)/Usage<</Print<</PrintState/ON>> /View<</ViewState/OFF>> >> >>
+endobj
+9 0 obj
+[ 6 0 R 7 0 R ]
+endobj
+8 0 obj
+<< /OFF[7 0 R]/AS[<</Event/View/OCGs 9 0 R/Category[/View]>><</Event/Print/OCGs 9 0 R/Category[/Print]>><</Event/Export/OCGs 9 0 R/Category[/Print]>>] >>
+endobj
+10 0 obj
+<< /S /GoTo /D [11 0 R /Fit] >>
+endobj
+12 0 obj
+<< /OCGs [6 0 R 7 0 R]/D 8 0 R >>
+endobj
+13 0 obj
+<< /HideToolbar true /NonFullScreenPageMode /UseNone /NumCopies 4  >>
+endobj
+15 0 obj
+<<
+/Length 114       
+>>
+stream
+0 g 0 G
+0 g 0 G
+BT
+/F8 9.9626 Tf 148.712 657.235 Td [(ab)-28(c)]TJ
+0 g 0 G
+ 154.421 -567.87 Td [(1)]TJ
+0 g 0 G
+ET
+endstream
+endobj
+11 0 obj
+<<
+/Type /Page
+/Contents 15 0 R
+/Resources 14 0 R
+/MediaBox [0 0 612 792]
+/Parent 19 0 R
+>>
+endobj
+16 0 obj
+<<
+/D [11 0 R /XYZ 132.768 705.06 null]
+>>
+endobj
+17 0 obj
+<<
+/D [11 0 R /XYZ 133.768 667.198 null]
+>>
+endobj
+14 0 obj
+<<
+/ExtGState 1 0 R /ColorSpace 2 0 R /Pattern 3 0 R /Shading 4 0 R /Properties 5 0 R 
+/Font << /F8 18 0 R >>
+/ProcSet [ /PDF /Text ]
+>>
+endobj
+1 0 obj
+<<  >>
+endobj
+2 0 obj
+<<  >>
+endobj
+3 0 obj
+<<  >>
+endobj
+4 0 obj
+<<  >>
+endobj
+5 0 obj
+<< /OCView 6 0 R /OCPrint 7 0 R  >>
+endobj
+20 0 obj
+[500 500 500 500 500 500 500 500 500 277.8 277.8 277.8 777.8 472.2 472.2 777.8 750 708.3 722.2 763.9 680.6 652.8 784.7 750 361.1 513.9 777.8 625 916.7 750 777.8 680.6 777.8 736.1 555.6 722.2 750 750 1027.8 750 750 611.1 277.8 500 277.8 500 277.8 277.8 500 555.6 444.4]
+endobj
+21 0 obj
+<<
+/Length1 1407
+/Length2 7801
+/Length3 0
+/Length 9208      
+>>
+[BINARY STREAM]
+endobj
+22 0 obj
+<<
+/Type /FontDescriptor
+/FontName /EVYFYC+CMR10
+/Flags 4
+/FontBBox [-40 -250 1009 750]
+/Ascent 694
+/CapHeight 683
+/Descent -194
+/ItalicAngle 0
+/StemV 69
+/XHeight 431
+/CharSet (/a/b/c/one)
+/FontFile 21 0 R
+>>
+endobj
+18 0 obj
+<<
+/Type /Font
+/Subtype /Type1
+/BaseFont /EVYFYC+CMR10
+/FontDescriptor 22 0 R
+/FirstChar 49
+/LastChar 99
+/Widths 20 0 R
+>>
+endobj
+19 0 obj
+<<
+/Type /Pages
+/Count 1
+/Kids [11 0 R]
+>>
+endobj
+23 0 obj
+<<
+/Names [(Doc-Start) 17 0 R (page.1) 16 0 R]
+/Limits [(Doc-Start) (page.1)]
+>>
+endobj
+24 0 obj
+<<
+/Dests 23 0 R
+>>
+endobj
+25 0 obj
+<<
+/Type /Catalog
+/Pages 19 0 R
+/Names 24 0 R
+/OCProperties 12 0 R/ViewerPreferences 13 0 R/PageMode /UseOutlines/PageLayout /SinglePage
+/OpenAction 10 0 R
+>>
+endobj
+26 0 obj
+<<
+/Producer (pdfTeX)/Creator (LaTeX with hyperref)
+/Trapped /False
+>>
+endobj
+xref
+0 27
+0000000000 65535 f 
+0000001155 00000 n 
+0000001177 00000 n 
+0000001199 00000 n 
+0000001221 00000 n 
+0000001243 00000 n 
+0000000015 00000 n 
+0000000116 00000 n 
+0000000249 00000 n 
+0000000218 00000 n 
+0000000418 00000 n 
+0000000775 00000 n 
+0000000466 00000 n 
+0000000516 00000 n 
+0000001002 00000 n 
+0000000602 00000 n 
+0000000883 00000 n 
+0000000942 00000 n 
+0000011110 00000 n 
+0000011249 00000 n 
+0000001294 00000 n 
+0000001579 00000 n 
+0000010885 00000 n 
+0000011308 00000 n 
+0000011405 00000 n 
+0000011441 00000 n 
+0000011616 00000 n 
+trailer
+<< /Size 27
+/Root 25 0 R
+/Info 26 0 R
+ >>
+startxref
+11703
+%%EOF





More information about the latex3-commits mailing list