[latex3-commits] [git/LaTeX3-latex3-pdfresources] backendtest: ocgx test added (e0f745a)

Ulrike Fischer fischer at troubleshooting-tex.de
Fri Aug 30 00:33:06 CEST 2019


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

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

commit e0f745a8e0052321c6b3186d0099d93ac042d9f5
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Fri Aug 30 00:33:06 2019 +0200

    ocgx test added


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

e0f745a8e0052321c6b3186d0099d93ac042d9f5
 .../properties-ocgx.pdftex.tpf                     | 233 ++++++++++-----------
 testfiles-noxetex/properties-ocgx.pvt              |  74 +++++++
 .../properties-ocgx.tpf                            | 226 +++++++++-----------
 testfiles-pool/properties-ocgx.pvt                 |  47 -----
 4 files changed, 283 insertions(+), 297 deletions(-)

diff --git a/testfiles-pool/properties-ocgx.tpf b/testfiles-noxetex/properties-ocgx.pdftex.tpf
similarity index 56%
rename from testfiles-pool/properties-ocgx.tpf
rename to testfiles-noxetex/properties-ocgx.pdftex.tpf
index 6640152..2d8e4ec 100644
--- a/testfiles-pool/properties-ocgx.tpf
+++ b/testfiles-noxetex/properties-ocgx.pdftex.tpf
@@ -1,22 +1,27 @@
 %PDF-1.5
 %ÐÔÅØ
-9 0 obj
+5 0 obj
+<< /Type/P >>
+endobj
+6 0 obj
 <</Type/OCG/Name (red Layer) >>
 endobj
-10 0 obj
+7 0 obj
 <</Type/OCG/Name (yellow Layer) >>
 endobj
-14 0 obj
+11 0 obj
 <<
-/Length 408       
+/Length 432       
 >>
 stream
 0 g 0 G
 0 g 0 G
+/Span /l3pdf1 BDC
+EMC
 BT
 /F8 9.9626 Tf 59.59 359.221 Td [(Some)]TJ
 ET
-/OC/rm at oc0 BDC
+/OC /l3pdf2 BDC
 1 0 0 rg 1 0 0 RG
 BT
 /F8 9.9626 Tf 86.157 359.221 Td [(la)28(y)28(ered)-334(text.)]TJ
@@ -26,7 +31,7 @@ EMC
 BT
 /F8 9.9626 Tf 59.59 347.266 Td [(Some)]TJ
 ET
-/OC/rm at oc1 BDC
+/OC /l3pdf3 BDC
 0 0 1 0 k 0 0 1 0 K
 BT
 /F8 9.9626 Tf 86.157 347.266 Td [(la)28(y)28(ered)-334(text.)]TJ
@@ -40,36 +45,36 @@ BT
 ET
 endstream
 endobj
-13 0 obj
+10 0 obj
 <<
 /Type /Page
-/Contents 14 0 R
-/Resources 12 0 R
+/Contents 11 0 R
+/Resources 9 0 R
 /MediaBox [0 0 297.638 419.528]
-/Parent 16 0 R
-/Annots [ 11 0 R ]
+/Parent 13 0 R
+/Annots [ 8 0 R ]
 >>
 endobj
-11 0 obj
+8 0 obj
 <<
 /Type /Annot
 /Ff 65537/FT/Btn/Subtype/Widget/T (pbs at ARFix@1)
-/Rect [0 416.539 2.989 419.528]
+/Rect [1 415.528 4 418.528]
 >>
 endobj
-12 0 obj
+9 0 obj
 <<
-/ExtGState 1 0 R /ColorSpace 2 0 R /Pattern 3 0 R /Shading 4 0 R /Properties 6 0 R 
-/Font << /F8 15 0 R >>
+/Properties <</l3pdf1 5 0 R /l3pdf2 6 0 R /l3pdf3 7 0 R >>
+/Font << /F8 12 0 R >>
 /ProcSet [ /PDF /Text ]
 >>
 endobj
-17 0 obj
+14 0 obj
 <</Type/OCG/Name (blue Layer) >>
 endobj
-21 0 obj
+18 0 obj
 <<
-/Length 242       
+/Length 243       
 >>
 stream
 0 g 0 G
@@ -77,7 +82,7 @@ stream
 BT
 /F8 9.9626 Tf 59.59 359.221 Td [(More)]TJ
 ET
-/OC/rm at oc2 BDC
+/OC /l3pdf4 BDC
 0 0 1 rg 0 0 1 RG
 BT
 /F8 9.9626 Tf 85.355 359.221 Td [(la)28(y)28(ered)-334(text.)]TJ
@@ -91,42 +96,42 @@ BT
 ET
 endstream
 endobj
-20 0 obj
+17 0 obj
 <<
 /Type /Page
-/Contents 21 0 R
-/Resources 19 0 R
+/Contents 18 0 R
+/Resources 16 0 R
 /MediaBox [0 0 297.638 419.528]
-/Parent 16 0 R
-/Annots [ 18 0 R ]
+/Parent 13 0 R
+/Annots [ 15 0 R ]
 >>
 endobj
-18 0 obj
+15 0 obj
 <<
 /Type /Annot
 /Ff 65537/FT/Btn/Subtype/Widget/T (pbs at ARFix@2)
-/Rect [0 416.539 2.989 419.528]
+/Rect [1 415.528 4 418.528]
 >>
 endobj
-19 0 obj
+16 0 obj
 <<
-/ExtGState 1 0 R /ColorSpace 2 0 R /Pattern 3 0 R /Shading 4 0 R /Properties 7 0 R 
-/Font << /F8 15 0 R >>
+/Properties <</l3pdf4 14 0 R >>
+/Font << /F8 12 0 R >>
 /ProcSet [ /PDF /Text ]
 >>
 endobj
-22 0 obj
-[ 9 0 R 10 0 R 17 0 R]
+19 0 obj
+[ 6 0 R 7 0 R 14 0 R]
 endobj
-23 0 obj
-[9 0 R]
+20 0 obj
+[6 0 R]
 endobj
-24 0 obj
-[ 9 0 R 10 0 R 17 0 R]
+21 0 obj
+[ 6 0 R 7 0 R 14 0 R]
 endobj
-28 0 obj
+25 0 obj
 <<
-/Length 259       
+/Length 260       
 >>
 stream
 0 g 0 G
@@ -135,7 +140,7 @@ stream
 BT
 /F8 9.9626 Tf 44.646 219.859 Td [(Some)]TJ
 ET
-/OC/rm at oc3 BDC
+/OC /l3pdf5 BDC
 1 0 0 rg 1 0 0 RG
 BT
 /F8 9.9626 Tf 71.213 219.859 Td [(la)28(y)28(ered)-334(text.)]TJ
@@ -150,58 +155,34 @@ BT
 ET
 endstream
 endobj
-27 0 obj
+24 0 obj
 <<
 /Type /Page
-/Contents 28 0 R
-/Resources 26 0 R
+/Contents 25 0 R
+/Resources 23 0 R
 /MediaBox [0 0 297.638 419.528]
-/Parent 16 0 R
-/Annots [ 25 0 R ]
+/Parent 13 0 R
+/Annots [ 22 0 R ]
 >>
 endobj
-25 0 obj
+22 0 obj
 <<
 /Type /Annot
 /Ff 65537/FT/Btn/Subtype/Widget/T (pbs at ARFix@3)
-/Rect [0 416.539 2.989 419.528]
+/Rect [1 415.528 4 418.528]
 >>
 endobj
-26 0 obj
+23 0 obj
 <<
-/ExtGState 1 0 R /ColorSpace 2 0 R /Pattern 3 0 R /Shading 4 0 R /Properties 8 0 R 
-/Font << /F8 15 0 R >>
+/Properties <</l3pdf5 6 0 R >>
+/Font << /F8 12 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
-<< /test <</test(value)>>  >>
-endobj
-6 0 obj
-<< /test <</test(value)>> /rm at oc0 9 0 R /rm at oc1 10 0 R  >>
-endobj
-7 0 obj
-<< /test <</test(value)>> /rm at oc2 17 0 R  >>
-endobj
-8 0 obj
-<< /test <</test(value)>> /rm at oc3 9 0 R  >>
-endobj
-29 0 obj
+26 0 obj
 [277.8 500 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]
 endobj
-30 0 obj
+27 0 obj
 <<
 /Length1 1595
 /Length2 10969
@@ -210,7 +191,7 @@ endobj
 >>
 [BINARY STREAM]
 endobj
-31 0 obj
+28 0 obj
 <<
 /Type /FontDescriptor
 /FontName /GGEKKH+CMR10
@@ -223,82 +204,82 @@ endobj
 /StemV 69
 /XHeight 431
 /CharSet (/M/S/a/d/e/l/m/o/one/period/r/t/three/two/x/y)
-/FontFile 30 0 R
+/FontFile 27 0 R
 >>
 endobj
-15 0 obj
+12 0 obj
 <<
 /Type /Font
 /Subtype /Type1
 /BaseFont /GGEKKH+CMR10
-/FontDescriptor 31 0 R
+/FontDescriptor 28 0 R
 /FirstChar 46
 /LastChar 121
-/Widths 29 0 R
+/Widths 26 0 R
 >>
 endobj
-16 0 obj
+13 0 obj
 <<
 /Type /Pages
 /Count 3
-/Kids [13 0 R 20 0 R 27 0 R]
+/Kids [10 0 R 17 0 R 24 0 R]
 >>
 endobj
-32 0 obj
+29 0 obj
 <<
 /Type /Catalog
-/Pages 16 0 R
-/OCProperties <</OCGs 22 0 R/D <</AS [<</Event/View/Category[/View]/OCGs 22 0 R>><</Event/Print/Category[/Print]/OCGs 22 0 R>><</Event/Export/Category[/Export]/OCGs 22 0 R>>]/BaseState/ON /OFF 23 0 R/Order 24 0 R/ListMode/VisiblePages>>>>
+/Pages 13 0 R
+/OCProperties <</OCGs 19 0 R/D <</AS [<</Event/View/Category[/View]/OCGs 19 0 R>><</Event/Print/Category[/Print]/OCGs 19 0 R>><</Event/Export/Category[/Export]/OCGs 19 0 R>>]/BaseState/ON /OFF 20 0 R/Order 21 0 R/ListMode/VisiblePages>>>>
 >>
 endobj
-33 0 obj
+30 0 obj
 <<
-/Producer (pdfTeX)
+/Producer (pdfTeX-1.40.20)
 /Creator (TeX)
+/CreationDate (D:20160520090000Z)
+/ModDate (D:20160520090000Z)
 /Trapped /False
+/PTEX.Fullbanner (This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/W32TeX) kpathsea version 6.3.1)
 >>
 endobj
 xref
-0 34
-0000000000 65535 f 
-0000002559 00000 n 
-0000002581 00000 n 
-0000002603 00000 n 
-0000002625 00000 n 
-0000002647 00000 n 
-0000002692 00000 n 
-0000002766 00000 n 
-0000002826 00000 n 
+0 31
+0000000001 65535 f 
+0000000002 00000 f 
+0000000003 00000 f 
+0000000004 00000 f 
+0000000000 00000 f 
 0000000015 00000 n 
-0000000062 00000 n 
-0000000715 00000 n 
-0000000830 00000 n 
-0000000580 00000 n 
-0000000113 00000 n 
-0000016235 00000 n 
-0000016375 00000 n 
-0000000983 00000 n 
-0000001468 00000 n 
-0000001583 00000 n 
-0000001333 00000 n 
-0000001032 00000 n 
-0000001736 00000 n 
-0000001775 00000 n 
-0000001799 00000 n 
-0000002291 00000 n 
-0000002406 00000 n 
-0000002156 00000 n 
-0000001838 00000 n 
-0000002885 00000 n 
-0000003312 00000 n 
-0000015975 00000 n 
-0000016448 00000 n 
-0000016738 00000 n 
+0000000044 00000 n 
+0000000091 00000 n 
+0000000765 00000 n 
+0000000875 00000 n 
+0000000632 00000 n 
+0000000141 00000 n 
+0000015815 00000 n 
+0000015955 00000 n 
+0000001002 00000 n 
+0000001488 00000 n 
+0000001599 00000 n 
+0000001353 00000 n 
+0000001051 00000 n 
+0000001700 00000 n 
+0000001738 00000 n 
+0000001762 00000 n 
+0000002254 00000 n 
+0000002365 00000 n 
+0000002119 00000 n 
+0000001800 00000 n 
+0000002465 00000 n 
+0000002892 00000 n 
+0000015555 00000 n 
+0000016028 00000 n 
+0000016318 00000 n 
 trailer
-<< /Size 34
-/Root 32 0 R
-/Info 33 0 R
- >>
+<< /Size 31
+/Root 29 0 R
+/Info 30 0 R
+/ID [<D774E23E9A73DC81DA40F867FA14BA4A> <D774E23E9A73DC81DA40F867FA14BA4A>] >>
 startxref
-16810
+16573
 %%EOF
diff --git a/testfiles-noxetex/properties-ocgx.pvt b/testfiles-noxetex/properties-ocgx.pvt
new file mode 100644
index 0000000..e7673a1
--- /dev/null
+++ b/testfiles-noxetex/properties-ocgx.pvt
@@ -0,0 +1,74 @@
+%\input{regression-test}
+\RequirePackage[enable-debug]{expl3}
+\RequirePackage[patches]{pdfresources}
+\DeclareDocumentMetaData{uncompress}
+\documentclass{article}
+
+\usepackage[a6paper]{geometry}
+\usepackage{ocgx2}
+\usepackage{color}
+\ExplSyntaxOn
+\cs_new:Npn \__pdf_name_pbsobj:Nn #1 #2 %#1 Tl, #2 e.g. 1 0 R or @pbs at obj0 or ...
+ {
+  \__pdf_backend_name_pbsobj:Nn #1 { #2 } 
+ }
+\cs_generate_variant:Nn \exp_last_unbraced:NNn {NNx}
+\tl_new:N\l__pdf_nametmpa_tl
+\bool_if:nT {\sys_if_engine_luatex_p: || (\sys_if_engine_pdftex_p: && \sys_if_output_pdf_p:) }
+ {
+  \cs_new:Npn \__pdf_backend_name_pbsobj:Nn #1 #2
+   { 
+     \tl_set:Nx \l__pdf_nametmpa_tl {#2}
+     \exp_last_unbraced:NNo \__pdf_split_obj_number:Nw #1 \l__pdf_nametmpa_tl\q_stop 
+   }
+  \cs_new:Npn \__pdf_split_obj_number:Nw #1 #2~0~R\q_stop {\tl_set:Nn #1{#2}}
+ }
+ 
+%xetex and dvips probably don't work without rewrite pdf_bdc or the object ref code:
+%as the object name is not a simple number. So only luatex/pdftex:
+  
+\cs_set:Npn \pbs_pdfbdc:nn #1 #2
+ { 
+   %#2 is basically an object number
+   % it looks as if pdf doesn't like it if the object is referenced through another object
+   % so we need to give the number a name so that we can use \pdf_bdc:nn
+  \__pdf_backend_name_pbsobj:Nn \l_tmpa_tl { #2} 
+  %\exp_args:Nx  \pdf_object_new:nn   {pbs at bdcobj\int_use:N\g_pbs_oc_int}{array}
+  %\exp_args:Nxx \pdf_object_write:nn {pbs at bdcobj\int_use:N\g_pbs_oc_int} {#2}
+  \int_const:cn {c__pdf_backend_object_ pbs at bdcobj\int_use:N\g_pbs_oc_int _int}{\l_tmpa_tl}
+  \exp_args:Nxx \pdf_bdc:nn {\tl_tail:n{#1}}    {pbs at bdcobj\int_use:N\g_pbs_oc_int}
+  \int_gincr:N\g_pbs_oc_int
+ }
+\cs_set_eq:NN \pbs_pdfemc: \pdf_emc: 
+\ExplSyntaxOff
+\begin{document}
+\ExplSyntaxOn\makeatletter
+\pdf_object_new:nn {testbdc}{dict}
+\pdf_object_write:nn{testbdc} {/Type /P}
+\pdf_bdc:nn {Span}{testbdc}\pdf_emc:
+
+
+\ExplSyntaxOff
+
+Some \begin{ocg}{red Layer}{red}{on}
+{\color{red}layered text.}
+\end{ocg}
+
+Some \begin{ocg}{yellow Layer}{yellow}{on}
+{\color{yellow}layered text.}
+\end{ocg}
+
+\newpage
+
+More \begin{ocg}{blue Layer}{blue}{on}
+{\color{blue}layered text.}
+\end{ocg}
+
+\begin{figure}[p]
+
+Some \begin{ocg}{red Layer}{red}{on}
+{\color{red}layered text.}
+\end{ocg}
+
+\end{figure}
+\end{document} 
\ No newline at end of file
diff --git a/testfiles-pool/properties-ocgx.luatex.tpf b/testfiles-noxetex/properties-ocgx.tpf
similarity index 56%
rename from testfiles-pool/properties-ocgx.luatex.tpf
rename to testfiles-noxetex/properties-ocgx.tpf
index bf08230..40c6e5d 100644
--- a/testfiles-pool/properties-ocgx.luatex.tpf
+++ b/testfiles-noxetex/properties-ocgx.tpf
@@ -1,21 +1,26 @@
 %PDF-1.5
 %ÌÕÁÔÅØÐÄÆ
-9 0 obj
+5 0 obj
+<< /Type/P >>
+endobj
+6 0 obj
 <</Type/OCG/Name (red Layer) >>
 endobj
-10 0 obj
+7 0 obj
 <</Type/OCG/Name (yellow Layer) >>
 endobj
-14 0 obj
-<< /Length 555 >>        
+11 0 obj
+<< /Length 579 >>        
 stream
 0 g 0 G
 0 g 0 G
+/Span /l3pdf1 BDC
+EMC
 BT
 /F25 9.96264 Tf
 1 0 0 1 59.59 359.221 Tm [<00610051004B0032>]TJ
 ET
-/OC/rm at oc0 BDC
+/OC /l3pdf2 BDC
 1 0 0 rg 1 0 0 RG
 BT
 /F25 9.96264 Tf
@@ -27,7 +32,7 @@ BT
 /F25 9.96264 Tf
 1 0 0 1 59.59 347.266 Tm [<00610051004B0032>]TJ
 ET
-/OC/rm at oc1 BDC
+/OC /l3pdf3 BDC
 0 0 1 0 k 0 0 1 0 K
 BT
 /F25 9.96264 Tf
@@ -43,23 +48,23 @@ BT
 ET
 endstream
 endobj
-13 0 obj
-<< /Type /Page /Contents 14 0 R /Resources 12 0 R /MediaBox [ 0 0 297.638 419.528 ] /Parent 16 0 R /Annots 17 0 R >>
+10 0 obj
+<< /Type /Page /Contents 11 0 R /Resources 9 0 R /MediaBox [ 0 0 297.638 419.528 ] /Parent 13 0 R /Annots 14 0 R >>
 endobj
-17 0 obj
-[ 11 0 R ]
+14 0 obj
+[ 8 0 R ]
 endobj
-11 0 obj
-<< /Type /Annot /Ff 65537/FT/Btn/Subtype/Widget/T (pbs at ARFix@1) /Rect [ 0 416.539 2.989 419.528 ] >>
+8 0 obj
+<< /Type /Annot /Ff 65537/FT/Btn/Subtype/Widget/T (pbs at ARFix@1) /Rect [ 1 415.528 4 418.528 ] >>
 endobj
-12 0 obj
-<< /ExtGState 1 0 R /ColorSpace 2 0 R /Pattern 3 0 R /Shading 4 0 R /Properties 6 0 R  /Font << /F25 15 0 R >> /ProcSet [ /PDF /Text ] >>
+9 0 obj
+<< /Properties <</l3pdf1 5 0 R/l3pdf2 6 0 R/l3pdf3 7 0 R>> /Font << /F25 12 0 R >> /ProcSet [ /PDF /Text ] >>
 endobj
-18 0 obj
+15 0 obj
 <</Type/OCG/Name (blue Layer) >>
 endobj
-22 0 obj
-<< /Length 323 >>        
+19 0 obj
+<< /Length 324 >>        
 stream
 0 g 0 G
 0 g 0 G
@@ -67,7 +72,7 @@ BT
 /F25 9.96264 Tf
 1 0 0 1 59.59 359.221 Tm [<004A005100600032>]TJ
 ET
-/OC/rm at oc2 BDC
+/OC /l3pdf4 BDC
 0 0 1 rg 0 0 1 RG
 BT
 /F25 9.96264 Tf
@@ -83,29 +88,29 @@ BT
 ET
 endstream
 endobj
-21 0 obj
-<< /Type /Page /Contents 22 0 R /Resources 20 0 R /MediaBox [ 0 0 297.638 419.528 ] /Parent 16 0 R /Annots 23 0 R >>
+18 0 obj
+<< /Type /Page /Contents 19 0 R /Resources 17 0 R /MediaBox [ 0 0 297.638 419.528 ] /Parent 13 0 R /Annots 20 0 R >>
 endobj
-23 0 obj
-[ 19 0 R ]
+20 0 obj
+[ 16 0 R ]
 endobj
-19 0 obj
-<< /Type /Annot /Ff 65537/FT/Btn/Subtype/Widget/T (pbs at ARFix@2) /Rect [ 0 416.539 2.989 419.528 ] >>
+16 0 obj
+<< /Type /Annot /Ff 65537/FT/Btn/Subtype/Widget/T (pbs at ARFix@2) /Rect [ 1 415.528 4 418.528 ] >>
 endobj
-20 0 obj
-<< /ExtGState 1 0 R /ColorSpace 2 0 R /Pattern 3 0 R /Shading 4 0 R /Properties 7 0 R  /Font << /F25 15 0 R >> /ProcSet [ /PDF /Text ] >>
+17 0 obj
+<< /Properties <</l3pdf4 15 0 R>> /Font << /F25 12 0 R >> /ProcSet [ /PDF /Text ] >>
 endobj
-24 0 obj
-[ 9 0 R 10 0 R 18 0 R]
+21 0 obj
+[ 6 0 R 7 0 R 15 0 R]
 endobj
-25 0 obj
-[9 0 R]
+22 0 obj
+[6 0 R]
 endobj
-26 0 obj
-[ 9 0 R 10 0 R 18 0 R]
+23 0 obj
+[ 6 0 R 7 0 R 15 0 R]
 endobj
-30 0 obj
-<< /Length 340 >>        
+27 0 obj
+<< /Length 341 >>        
 stream
 0 g 0 G
 0 g 0 G
@@ -114,7 +119,7 @@ BT
 /F25 9.96264 Tf
 1 0 0 1 44.646 219.859 Tm [<00610051004B0032>]TJ
 ET
-/OC/rm at oc3 BDC
+/OC /l3pdf5 BDC
 1 0 0 rg 1 0 0 RG
 BT
 /F25 9.96264 Tf
@@ -131,57 +136,33 @@ BT
 ET
 endstream
 endobj
-29 0 obj
-<< /Type /Page /Contents 30 0 R /Resources 28 0 R /MediaBox [ 0 0 297.638 419.528 ] /Parent 16 0 R /Annots 31 0 R >>
-endobj
-31 0 obj
-[ 27 0 R ]
-endobj
-27 0 obj
-<< /Type /Annot /Ff 65537/FT/Btn/Subtype/Widget/T (pbs at ARFix@3) /Rect [ 0 416.539 2.989 419.528 ] >>
+26 0 obj
+<< /Type /Page /Contents 27 0 R /Resources 25 0 R /MediaBox [ 0 0 297.638 419.528 ] /Parent 13 0 R /Annots 28 0 R >>
 endobj
 28 0 obj
-<< /ExtGState 1 0 R /ColorSpace 2 0 R /Pattern 3 0 R /Shading 4 0 R /Properties 8 0 R  /Font << /F25 15 0 R >> /ProcSet [ /PDF /Text ] >>
-endobj
-1 0 obj
-<<  >>
-endobj
-2 0 obj
-<<  >>
+[ 24 0 R ]
 endobj
-3 0 obj
-<<  >>
-endobj
-4 0 obj
-<<  >>
-endobj
-5 0 obj
-<< /test <</test(value)>>  >>
-endobj
-6 0 obj
-<< /test <</test(value)>> /rm at oc0 9 0 R /rm at oc1 10 0 R  >>
-endobj
-7 0 obj
-<< /test <</test(value)>> /rm at oc2 18 0 R  >>
+24 0 obj
+<< /Type /Annot /Ff 65537/FT/Btn/Subtype/Widget/T (pbs at ARFix@3) /Rect [ 1 415.528 4 418.528 ] >>
 endobj
-8 0 obj
-<< /test <</test(value)>> /rm at oc3 9 0 R  >>
+25 0 obj
+<< /Properties <</l3pdf5 6 0 R>> /Font << /F25 12 0 R >> /ProcSet [ /PDF /Text ] >>
 endobj
-32 0 obj
+29 0 obj
 [ 28 [ 500 ] 47 [ 556 ] 50 [ 444 ] 72 [ 278 ] 74 [ 917 833 ] 81 [ 500 500 ] 88 [ 278 ] 96 [ 392 556 ] 105 [ 389 500 500 ] 116 [ 528 ] 118 [ 528 ] ]
 endobj
-34 0 obj
+31 0 obj
 << /Length 15 >>         
 [BINARY STREAM]
 endobj
-35 0 obj
+32 0 obj
 << /Subtype /CIDFontType0C /Length 2487 >>       
 [BINARY STREAM]
 endobj
-33 0 obj
-<< /Type /FontDescriptor /FontName /LZSLYI+LMRoman10-Regular /Flags 4 /FontBBox [ -430 -290 1417 1127 ] /Ascent 1127 /CapHeight 683 /Descent -290 /ItalicAngle 0 /StemV 93 /XHeight 431 /FontFile3 35 0 R /CIDSet 34 0 R >>
+30 0 obj
+<< /Type /FontDescriptor /FontName /LZSLYI+LMRoman10-Regular /Flags 4 /FontBBox [ -430 -290 1417 1127 ] /Ascent 1127 /CapHeight 683 /Descent -290 /ItalicAngle 0 /StemV 93 /XHeight 431 /FontFile3 32 0 R /CIDSet 31 0 R >>
 endobj
-36 0 obj
+33 0 obj
 << /Length 903 >>        
 stream
 %!PS-Adobe-3.0 Resource-CMap
@@ -232,65 +213,62 @@ end
 %%EOF
 endstream
 endobj
-15 0 obj
-<< /Type /Font /Subtype /Type0 /Encoding /Identity-H /BaseFont /LZSLYI+LMRoman10-Regular /DescendantFonts [ 37 0 R ] /ToUnicode 36 0 R >>
+12 0 obj
+<< /Type /Font /Subtype /Type0 /Encoding /Identity-H /BaseFont /LZSLYI+LMRoman10-Regular /DescendantFonts [ 34 0 R ] /ToUnicode 33 0 R >>
 endobj
-37 0 obj
-<< /Type /Font /Subtype /CIDFontType0 /BaseFont /LZSLYI+LMRoman10-Regular /FontDescriptor 33 0 R /W 32 0 R /CIDSystemInfo << /Registry (Adobe) /Ordering (Identity) /Supplement 0 >> >>
+34 0 obj
+<< /Type /Font /Subtype /CIDFontType0 /BaseFont /LZSLYI+LMRoman10-Regular /FontDescriptor 30 0 R /W 29 0 R /CIDSystemInfo << /Registry (Adobe) /Ordering (Identity) /Supplement 0 >> >>
 endobj
-16 0 obj
-<< /Type /Pages  /Count 3 /Kids [ 13 0 R 21 0 R 29 0 R ] >>
+13 0 obj
+<< /Type /Pages  /Count 3 /Kids [ 10 0 R 18 0 R 26 0 R ] >>
 endobj
-38 0 obj
-<< /Type /Catalog /Pages 16 0 R /OCProperties <</OCGs 24 0 R/D <</AS [<</Event/View/Category[/View]/OCGs 24 0 R>><</Event/Print/Category[/Print]/OCGs 24 0 R>><</Event/Export/Category[/Export]/OCGs 24 0 R>>]/BaseState/ON /OFF 25 0 R/Order 26 0 R/ListMode/VisiblePages>>>> >>
+35 0 obj
+<< /Type /Catalog /Pages 13 0 R /OCProperties <</OCGs 21 0 R/D <</AS [<</Event/View/Category[/View]/OCGs 21 0 R>><</Event/Print/Category[/Print]/OCGs 21 0 R>><</Event/Export/Category[/Export]/OCGs 21 0 R>>]/BaseState/ON /OFF 22 0 R/Order 23 0 R/ListMode/VisiblePages>>>> >>
 endobj
-39 0 obj
-<< /Producer (LuaTeX) /Creator (TeX) /Trapped /False >>
+36 0 obj
+<< /Producer (LuaTeX-1.10.0) /Creator (TeX) /CreationDate (D:20160520110000+02'00') /ModDate (D:20160520110000+02'00') /Trapped /False /PTEX.FullBanner (This is LuaTeX, Version 1.10.0 (TeX Live 2019/W32TeX)) >>
 endobj
 xref
-0 40
-0000000000 65535 f 
-0000002960 00000 n 
-0000002982 00000 n 
-0000003004 00000 n 
-0000003026 00000 n 
-0000003048 00000 n 
-0000003093 00000 n 
-0000003167 00000 n 
-0000003227 00000 n 
+0 37
+0000000001 65535 f 
+0000000002 00000 f 
+0000000003 00000 f 
+0000000004 00000 f 
+0000000000 00000 f 
 0000000020 00000 n 
-0000000067 00000 n 
-0000000893 00000 n 
-0000001010 00000 n 
-0000000733 00000 n 
-0000000118 00000 n 
-0000007295 00000 n 
-0000007649 00000 n 
-0000000866 00000 n 
-0000001164 00000 n 
-0000001756 00000 n 
-0000001873 00000 n 
-0000001596 00000 n 
-0000001213 00000 n 
-0000001729 00000 n 
-0000002027 00000 n 
-0000002066 00000 n 
-0000002090 00000 n 
-0000002689 00000 n 
-0000002806 00000 n 
-0000002529 00000 n 
-0000002129 00000 n 
-0000002662 00000 n 
-0000003286 00000 n 
-0000006096 00000 n 
-0000003450 00000 n 
-0000003525 00000 n 
-0000006332 00000 n 
-0000007449 00000 n 
-0000007725 00000 n 
-0000008015 00000 n 
+0000000049 00000 n 
+0000000096 00000 n 
+0000000943 00000 n 
+0000001055 00000 n 
+0000000785 00000 n 
+0000000146 00000 n 
+0000006870 00000 n 
+0000007224 00000 n 
+0000000917 00000 n 
+0000001180 00000 n 
+0000001773 00000 n 
+0000001886 00000 n 
+0000001613 00000 n 
+0000001229 00000 n 
+0000001746 00000 n 
+0000001987 00000 n 
+0000002025 00000 n 
+0000002049 00000 n 
+0000002648 00000 n 
+0000002761 00000 n 
+0000002488 00000 n 
+0000002087 00000 n 
+0000002621 00000 n 
+0000002861 00000 n 
+0000005671 00000 n 
+0000003025 00000 n 
+0000003100 00000 n 
+0000005907 00000 n 
+0000007024 00000 n 
+0000007300 00000 n 
+0000007590 00000 n 
 trailer
-<< /Size 40 /Root 38 0 R /Info 39 0 R >>
+<< /Size 37 /Root 35 0 R /Info 36 0 R /ID [ <0558A7385E7A81253B3BFCB30EB5EABC> <0558A7385E7A81253B3BFCB30EB5EABC> ] >>
 startxref
-8087
+7817
 %%EOF
diff --git a/testfiles-pool/properties-ocgx.pvt b/testfiles-pool/properties-ocgx.pvt
deleted file mode 100644
index 25c5512..0000000
--- a/testfiles-pool/properties-ocgx.pvt
+++ /dev/null
@@ -1,47 +0,0 @@
-\input{regression-test}
-\RequirePackage[enable-debug]{expl3}
-\RequirePackage[patches]{pdfresources}
-\documentclass{article}
-
-\usepackage[a6paper]{geometry}
-\usepackage{ocgx2}
-\usepackage{color}
-\ExplSyntaxOn
-\pdf_pageresources_gput:nnn {Properties}{test}{<</test (value)>>}
-\ExplSyntaxOff
-\begin{document}
-\ExplSyntaxOn\makeatletter
-\tl_if_exist:NT \pbs at last@page
-{
- \int_step_inline:nn{\pbs at last@page}
- {
-  \seq_map_inline:cn { pbs at props@#1 }
-  {
-   \pdf_pageresources_split_gput:nnn {#1} {Properties}{##1}
-  }
- }
-}
-\ExplSyntaxOff
-
-Some \begin{ocg}{red Layer}{red}{on}
-{\color{red}layered text.}
-\end{ocg}
-
-Some \begin{ocg}{yellow Layer}{yellow}{on}
-{\color{yellow}layered text.}
-\end{ocg}
-
-\newpage
-
-More \begin{ocg}{blue Layer}{blue}{on}
-{\color{blue}layered text.}
-\end{ocg}
-
-\begin{figure}[p]
-
-Some \begin{ocg}{red Layer}{red}{on}
-{\color{red}layered text.}
-\end{ocg}
-
-\end{figure}
-\end{document} 
\ No newline at end of file





More information about the latex3-commits mailing list