[latex3-commits] [git/LaTeX3-latex3-pdfresources] backendtest: testfile for ocproperties (fbefdf8)

Ulrike Fischer fischer at troubleshooting-tex.de
Sun Aug 25 22:48:37 CEST 2019


Repository : https://github.com/latex3/pdfresources
On branch  : backendtest
Link       : https://github.com/latex3/pdfresources/commit/fbefdf862142b3fc4957e70615b6ad134a095cf3

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

commit fbefdf862142b3fc4957e70615b6ad134a095cf3
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Sun Aug 25 22:48:37 2019 +0200

    testfile for ocproperties


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

fbefdf862142b3fc4957e70615b6ad134a095cf3
 .../ocproperties.luatex.tpf                        | 118 ++++++++++-----------
 {testfiles-pool => testfiles}/ocproperties.pvt     |   2 +-
 {testfiles-pool => testfiles}/ocproperties.tpf     | 115 ++++++++++----------
 ...{catalogAF.xetex.tpf => ocproperties.xetex.tpf} | 115 ++++++++++----------
 4 files changed, 171 insertions(+), 179 deletions(-)

diff --git a/testfiles-pool/ocproperties.luatex.tpf b/testfiles/ocproperties.luatex.tpf
similarity index 60%
rename from testfiles-pool/ocproperties.luatex.tpf
rename to testfiles/ocproperties.luatex.tpf
index 6b97282..0f72200 100644
--- a/testfiles-pool/ocproperties.luatex.tpf
+++ b/testfiles/ocproperties.luatex.tpf
@@ -1,54 +1,48 @@
-%PDF-1.5
+%PDF-1.7
 %ÌÕÁÔÅØÐÄÆ
-8 0 obj
+5 0 obj
+<< /Type/OCG/Name(View)/Usage<</Print<</PrintState/OFF>>/View<</ViewState/ON>>>> >>
+endobj
+6 0 obj
+<< /Type/OCG/Name(View)/Usage<</Print<</PrintState/ON>>/View<</ViewState/OFF>>>> >>
+endobj
+7 0 obj
+<< /OFF/Blabla >>
+endobj
+10 0 obj
 << /Length 111 >>        
 stream
 BT
-/F15 9.96264 Tf
+/F25 9.96264 Tf
 1 0 0 1 148.712 707.125 Tm [<001C0023>-28<002B>]TJ
 1 0 0 1 303.133 139.255 Tm [<0052>]TJ
 ET
 endstream
 endobj
-7 0 obj
-<< /Type /Page /Contents 8 0 R /Resources 6 0 R /MediaBox [ 0 0 595.276 841.89 ] /Parent 10 0 R >>
-endobj
-6 0 obj
-<< /ExtGState 1 0 R /ColorSpace 2 0 R /Pattern 3 0 R /Shading 4 0 R /Properties 5 0 R  /Font << /F15 9 0 R >> /ProcSet [ /PDF /Text ] >>
-endobj
-1 0 obj
-<<  >>
-endobj
-2 0 obj
-<<  >>
-endobj
-3 0 obj
-<<  >>
-endobj
-4 0 obj
-<<  >>
+9 0 obj
+<< /Type /Page /Contents 10 0 R /Resources 8 0 R /MediaBox [ 0 0 595.276 841.89 ] /Parent 12 0 R >>
 endobj
-5 0 obj
-<<  >>
+8 0 obj
+<< /Font << /F25 11 0 R >> /ProcSet [ /PDF /Text ] >>
 endobj
-11 0 obj
-<< /OCGs [1 0 R 2 0 R]/D 102 0 R/Configs [99 0 R 100 0 R 101 0 R] >>
+13 0 obj
+<< /OCGs [5 0 R 6 0 R]/D 7 0 R >>
 endobj
-12 0 obj
+14 0 obj
 [ 28 [ 500 ] 35 [ 556 ] 43 [ 444 ] 82 [ 500 ] ]
 endobj
-14 0 obj
+16 0 obj
 << /Length 11 >>         
 [BINARY STREAM]
 endobj
-15 0 obj
+17 0 obj
 << /Subtype /CIDFontType0C /Length 955 >>        
 [BINARY STREAM]
 endobj
-13 0 obj
-<< /Type /FontDescriptor /FontName /NSMWQI+LMRoman10-Regular /Flags 4 /FontBBox [ -430 -290 1417 1127 ] /Ascent 1127 /CapHeight 683 /Descent -290 /ItalicAngle 0 /StemV 93 /XHeight 431 /FontFile3 15 0 R /CIDSet 14 0 R >>
+15 0 obj
+<< /Type /FontDescriptor /FontName /NSMWQI+LMRoman10-Regular /Flags 4 /FontBBox [ -430 -290 1417 1127 ] /Ascent 1127 /CapHeight 683 /Descent -290 /ItalicAngle 0 /StemV 93 /XHeight 431 /FontFile3 17 0 R /CIDSet 16 0 R >>
 endobj
-16 0 obj
+18 0 obj
 << /Length 734 >>        
 stream
 %!PS-Adobe-3.0 Resource-CMap
@@ -87,45 +81,47 @@ end
 %%EOF
 endstream
 endobj
-9 0 obj
-<< /Type /Font /Subtype /Type0 /Encoding /Identity-H /BaseFont /NSMWQI+LMRoman10-Regular /DescendantFonts [ 17 0 R ] /ToUnicode 16 0 R >>
+11 0 obj
+<< /Type /Font /Subtype /Type0 /Encoding /Identity-H /BaseFont /NSMWQI+LMRoman10-Regular /DescendantFonts [ 19 0 R ] /ToUnicode 18 0 R >>
 endobj
-17 0 obj
-<< /Type /Font /Subtype /CIDFontType0 /BaseFont /NSMWQI+LMRoman10-Regular /FontDescriptor 13 0 R /W 12 0 R /CIDSystemInfo << /Registry (Adobe) /Ordering (Identity) /Supplement 0 >> >>
+19 0 obj
+<< /Type /Font /Subtype /CIDFontType0 /BaseFont /NSMWQI+LMRoman10-Regular /FontDescriptor 15 0 R /W 14 0 R /CIDSystemInfo << /Registry (Adobe) /Ordering (Identity) /Supplement 0 >> >>
 endobj
-10 0 obj
-<< /Type /Pages  /Count 1 /Kids [ 7 0 R ] >>
+12 0 obj
+<< /Type /Pages  /Count 1 /Kids [ 9 0 R ] >>
 endobj
-18 0 obj
-<< /Type /Catalog /Pages 10 0 R /OCProperties 11 0 R >>
+20 0 obj
+<< /Type /Catalog /Pages 12 0 R /OCProperties 13 0 R/Lang (de-DE) >>
 endobj
-19 0 obj
+21 0 obj
 << /Producer (LuaTeX) /Creator (TeX) /Trapped /False >>
 endobj
 xref
-0 20
-0000000000 65535 f 
-0000000456 00000 n 
-0000000478 00000 n 
-0000000500 00000 n 
-0000000522 00000 n 
-0000000544 00000 n 
-0000000304 00000 n 
-0000000190 00000 n 
+0 22
+0000000001 65535 f 
+0000000002 00000 f 
+0000000003 00000 f 
+0000000004 00000 f 
+0000000000 00000 f 
 0000000020 00000 n 
-0000002855 00000 n 
-0000003208 00000 n 
-0000000566 00000 n 
-0000000651 00000 n 
-0000001825 00000 n 
-0000000715 00000 n 
-0000000786 00000 n 
-0000002061 00000 n 
-0000003008 00000 n 
-0000003269 00000 n 
-0000003341 00000 n 
+0000000119 00000 n 
+0000000218 00000 n 
+0000000537 00000 n 
+0000000422 00000 n 
+0000000251 00000 n 
+0000002860 00000 n 
+0000003214 00000 n 
+0000000606 00000 n 
+0000000656 00000 n 
+0000001830 00000 n 
+0000000720 00000 n 
+0000000791 00000 n 
+0000002066 00000 n 
+0000003014 00000 n 
+0000003275 00000 n 
+0000003360 00000 n 
 trailer
-<< /Size 20 /Root 18 0 R /Info 19 0 R >>
+<< /Size 22 /Root 20 0 R /Info 21 0 R >>
 startxref
-3413
+3432
 %%EOF
diff --git a/testfiles-pool/ocproperties.pvt b/testfiles/ocproperties.pvt
similarity index 97%
rename from testfiles-pool/ocproperties.pvt
rename to testfiles/ocproperties.pvt
index 0ce7bbb..3d77a65 100644
--- a/testfiles-pool/ocproperties.pvt
+++ b/testfiles/ocproperties.pvt
@@ -29,7 +29,7 @@
     
     
 \pdf_object_new:nn {ocg2}{dict}
-\pdf_object_write:nn {ocg1}
+\pdf_object_write:nn {ocg2}
  {/Type/OCG
   /Name(View)
   /Usage<<
diff --git a/testfiles-pool/ocproperties.tpf b/testfiles/ocproperties.tpf
similarity index 58%
rename from testfiles-pool/ocproperties.tpf
rename to testfiles/ocproperties.tpf
index a64d785..d973162 100644
--- a/testfiles-pool/ocproperties.tpf
+++ b/testfiles/ocproperties.tpf
@@ -1,6 +1,15 @@
-%PDF-1.5
+%PDF-1.7
 %ÐÔÅØ
-8 0 obj
+5 0 obj
+<< /Type/OCG/Name(View)/Usage<</Print<</PrintState/OFF>>/View<</ViewState/ON>>>> >>
+endobj
+6 0 obj
+<< /Type/OCG/Name(View)/Usage<</Print<</PrintState/ON>>/View<</ViewState/OFF>>>> >>
+endobj
+7 0 obj
+<< /OFF/Blabla >>
+endobj
+10 0 obj
 <<
 /Length 81        
 >>
@@ -10,44 +19,28 @@ BT
 ET
 endstream
 endobj
-7 0 obj
+9 0 obj
 <<
 /Type /Page
-/Contents 8 0 R
-/Resources 6 0 R
+/Contents 10 0 R
+/Resources 8 0 R
 /MediaBox [0 0 595.276 841.89]
-/Parent 10 0 R
+/Parent 12 0 R
 >>
 endobj
-6 0 obj
+8 0 obj
 <<
-/ExtGState 1 0 R /ColorSpace 2 0 R /Pattern 3 0 R /Shading 4 0 R /Properties 5 0 R 
-/Font << /F8 9 0 R >>
+/Font << /F8 11 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
-<<  >>
-endobj
-11 0 obj
-<< /OCGs [1 0 R 2 0 R]/D 102 0 R/Configs [99 0 R 100 0 R 101 0 R] >>
+13 0 obj
+<< /OCGs [5 0 R 6 0 R]/D 7 0 R >>
 endobj
-12 0 obj
+14 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
-13 0 obj
+15 0 obj
 <<
 /Length1 1407
 /Length2 7801
@@ -56,7 +49,7 @@ endobj
 >>
 [BINARY STREAM]
 endobj
-14 0 obj
+16 0 obj
 <<
 /Type /FontDescriptor
 /FontName /EVYFYC+CMR10
@@ -69,35 +62,35 @@ endobj
 /StemV 69
 /XHeight 431
 /CharSet (/a/b/c/one)
-/FontFile 13 0 R
+/FontFile 15 0 R
 >>
 endobj
-9 0 obj
+11 0 obj
 <<
 /Type /Font
 /Subtype /Type1
 /BaseFont /EVYFYC+CMR10
-/FontDescriptor 14 0 R
+/FontDescriptor 16 0 R
 /FirstChar 49
 /LastChar 99
-/Widths 12 0 R
+/Widths 14 0 R
 >>
 endobj
-10 0 obj
+12 0 obj
 <<
 /Type /Pages
 /Count 1
-/Kids [7 0 R]
+/Kids [9 0 R]
 >>
 endobj
-15 0 obj
+17 0 obj
 <<
 /Type /Catalog
-/Pages 10 0 R
-/OCProperties 11 0 R
+/Pages 12 0 R
+/OCProperties 13 0 R/Lang (de-DE)
 >>
 endobj
-16 0 obj
+18 0 obj
 <<
 /Producer (pdfTeX)
 /Creator (TeX)
@@ -105,29 +98,31 @@ endobj
 >>
 endobj
 xref
-0 17
-0000000000 65535 f 
-0000000417 00000 n 
-0000000439 00000 n 
-0000000461 00000 n 
-0000000483 00000 n 
-0000000505 00000 n 
-0000000266 00000 n 
-0000000154 00000 n 
+0 19
+0000000001 65535 f 
+0000000002 00000 f 
+0000000003 00000 f 
+0000000004 00000 f 
+0000000000 00000 f 
 0000000015 00000 n 
-0000010428 00000 n 
-0000010566 00000 n 
-0000000527 00000 n 
-0000000612 00000 n 
-0000000897 00000 n 
-0000010203 00000 n 
-0000010624 00000 n 
-0000010696 00000 n 
+0000000114 00000 n 
+0000000213 00000 n 
+0000000499 00000 n 
+0000000386 00000 n 
+0000000246 00000 n 
+0000010433 00000 n 
+0000010572 00000 n 
+0000000567 00000 n 
+0000000617 00000 n 
+0000000902 00000 n 
+0000010208 00000 n 
+0000010630 00000 n 
+0000010715 00000 n 
 trailer
-<< /Size 17
-/Root 15 0 R
-/Info 16 0 R
+<< /Size 19
+/Root 17 0 R
+/Info 18 0 R
  >>
 startxref
-10768
+10787
 %%EOF
diff --git a/testfiles/catalogAF.xetex.tpf b/testfiles/ocproperties.xetex.tpf
similarity index 51%
copy from testfiles/catalogAF.xetex.tpf
copy to testfiles/ocproperties.xetex.tpf
index b134f95..955d659 100644
--- a/testfiles/catalogAF.xetex.tpf
+++ b/testfiles/ocproperties.xetex.tpf
@@ -1,13 +1,13 @@
-%PDF-2.0
+%PDF-1.7
 %äðíø
-13 0 obj
-<</Length 137>>
+14 0 obj
+<</Length 116>>
 stream
- q 1 0 0 1 72 769.89 cm BT /F1 9.9626 Tf 76.712 -62.765 Td[<00620051004b0032>-333<0069003200740069>]TJ 154.421 -567.87 Td[<0052>]TJ ET Q
+ q 1 0 0 1 72 769.89 cm BT /F1 9.9626 Tf 76.712 -62.765 Td[<001c0023>-28<002b>]TJ 154.421 -567.87 Td[<0052>]TJ ET Q
 endstream
 endobj
-14 0 obj
-<</ExtGState 4 0 R/ColorSpace 5 0 R/Pattern 6 0 R/Shading 7 0 R/Font<</F1 12 0 R>>/ProcSet[/PDF/Text/ImageC/ImageB/ImageI]>>
+15 0 obj
+<</ExtGState 4 0 R/ColorSpace 5 0 R/Pattern 6 0 R/Shading 7 0 R/Font<</F1 13 0 R>>/ProcSet[/PDF/Text/ImageC/ImageB/ImageI]>>
 endobj
 4 0 obj
 <<>>
@@ -22,28 +22,31 @@ endobj
 <<>>
 endobj
 8 0 obj
-<</Type/Filespec/UF(example1.pdf)>>
+<</Type/OCG/Name(View)/Usage<</Print<</PrintState/OFF>>/View<</ViewState/ON>>>>>>
 endobj
 9 0 obj
-<</Type/Filespec/UF(example2.pdf)>>
+<</Type/OCG/Name(View)/Usage<</Print<</PrintState/ON>>/View<</ViewState/OFF>>>>>>
 endobj
 10 0 obj
-[8 0 R 9 0 R]
+<</OFF/Blabla>>
+endobj
+11 0 obj
+<</OCGs[8 0 R 9 0 R]/D 10 0 R>>
 endobj
 3 0 obj
-<</Resources 14 0 R/Type/Page/Parent 15 0 R/Contents[13 0 R]>>
+<</Resources 15 0 R/Type/Page/Parent 16 0 R/Contents[14 0 R]>>
 endobj
-15 0 obj
+16 0 obj
 <</Type/Pages/Count 1/Kids[3 0 R]/MediaBox[0 0 595.28 841.89]>>
 endobj
 2 0 obj
 <</Creator(TeX)/Producer(xdvipdfmx)/CreationDate(D:20160520090000-00'00')>>
 endobj
 1 0 obj
-<</AF 10 0 R/Lang(de-DE)/Pages 15 0 R/Type/Catalog>>
+<</OCProperties 11 0 R/Lang(de-DE)/Pages 16 0 R/Type/Catalog>>
 endobj
-16 0 obj
-<</Length 440>>
+17 0 obj
+<</Length 398>>
 stream
 /CIDInit /ProcSet findresource begin
 12 dict begin
@@ -58,14 +61,11 @@ begincmap
 1 begincodespacerange
 <0000> <FFFF>
 endcodespacerange
-7 beginbfchar
-<0032> <0065>
-<004B> <006D>
-<0051> <006F>
+4 beginbfchar
+<001C> <0061>
+<0023> <0062>
+<002B> <0063>
 <0052> <0031>
-<0062> <0073>
-<0069> <0074>
-<0074> <0078>
 endbfchar
 endcmap
 CMapName currentdict /CMap defineresource pop
@@ -73,56 +73,57 @@ end
 end
 endstream
 endobj
-18 0 obj
-<</Subtype/CIDFontType0C/Length 1387>>
-[BINARY STREAM]
-endobj
 19 0 obj
-[50[444]75[833]81[500 500]98[394]105[389]116[528]]
+<</Subtype/CIDFontType0C/Length 929>>
+[BINARY STREAM]
 endobj
 20 0 obj
-<</Length 15>>
+[28[500]35[556]43[444]82[500]]
+endobj
+21 0 obj
+<</Length 11>>
 [BINARY STREAM]
 endobj
-11 0 obj
+12 0 obj
 <</Type/Font/Subtype/CIDFontType0/BaseFont/APWWDF+LMRoman10-Regular/CIDSystemInfo<</Registry(Adobe)/Ordering(Identity)/Supplement
-0>>/FontDescriptor 17 0 R/DW 280/W 19 0 R>>
+0>>/FontDescriptor 18 0 R/DW 280/W 20 0 R>>
 endobj
-17 0 obj
+18 0 obj
 <</Type/FontDescriptor/Ascent 806/Descent -194/StemV 69/CapHeight 806/AvgWidth 549/FontBBox[-430
 -290 1417 1127]/ItalicAngle 0/Flags 6/Style<</Panose<000000000500000000000000>>>/FontName/APWWDF+LMRoman10-Regular/FontFile3
-18 0 R/CIDSet 20 0 R>>
+19 0 R/CIDSet 21 0 R>>
 endobj
-12 0 obj
-<</Type/Font/Subtype/Type0/BaseFont/APWWDF+LMRoman10-Regular-Identity-H/Encoding/Identity-H/DescendantFonts[11 0 R]/ToUnicode
-16 0 R>>
+13 0 obj
+<</Type/Font/Subtype/Type0/BaseFont/APWWDF+LMRoman10-Regular-Identity-H/Encoding/Identity-H/DescendantFonts[12 0 R]/ToUnicode
+17 0 R>>
 endobj
 xref
-0 21
+0 22
 0000000000 65535 f 
-0000000804 00000 n 
-0000000713 00000 n 
-0000000555 00000 n 
-0000000343 00000 n 
-0000000363 00000 n 
-0000000383 00000 n 
-0000000403 00000 n 
-0000000423 00000 n 
-0000000474 00000 n 
-0000000525 00000 n 
-0000002953 00000 n 
-0000003404 00000 n 
+0000000925 00000 n 
+0000000834 00000 n 
+0000000676 00000 n 
+0000000322 00000 n 
+0000000342 00000 n 
+0000000362 00000 n 
+0000000382 00000 n 
+0000000402 00000 n 
+0000000499 00000 n 
+0000000596 00000 n 
+0000000628 00000 n 
+0000002559 00000 n 
+0000003010 00000 n 
 0000000015 00000 n 
-0000000202 00000 n 
-0000000633 00000 n 
-0000000872 00000 n 
-0000003143 00000 n 
-0000001362 00000 n 
-0000002822 00000 n 
-0000002889 00000 n 
+0000000181 00000 n 
+0000000754 00000 n 
+0000001003 00000 n 
+0000002749 00000 n 
+0000001451 00000 n 
+0000002452 00000 n 
+0000002499 00000 n 
 trailer
-<</Root 1 0 R/Info 2 0 R/ID[<26499a6974bf884402cef9e19dfde92e><26499a6974bf884402cef9e19dfde92e>]/Size
-21>>
+<</Root 1 0 R/Info 2 0 R/ID[<3708164a8c6373b0d48c347f0f670043><3708164a8c6373b0d48c347f0f670043>]/Size
+22>>
 startxref
-3555
+3161
 %%EOF





More information about the latex3-commits mailing list