[latex3-commits] [git/LaTeX3-latex3-pdfresources] testlinkstuff: added patch for transparent (bc39f19)

Ulrike Fischer fischer at troubleshooting-tex.de
Sun May 12 23:33:03 CEST 2019


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

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

commit bc39f1900ab97a7f78ac297f0307111d57f8b348
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Sun May 12 23:33:03 2019 +0200

    added patch for transparent


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

bc39f1900ab97a7f78ac297f0307111d57f8b348
 pdfresources.dtx                                   |   30 ++-
 testfiles/transparent-tikz.luatex.tpf              |  206 ++++++++++++++++++
 testfiles/transparent-tikz.pvt                     |   18 ++
 testfiles/transparent-tikz.tpf                     |  227 ++++++++++++++++++++
 ...pagesattr.luatex.tpf => transparent.luatex.tpf} |   76 +++----
 testfiles/transparent.pvt                          |   12 ++
 testfiles/{pagesattr.tpf => transparent.tpf}       |   54 +++--
 7 files changed, 560 insertions(+), 63 deletions(-)

diff --git a/pdfresources.dtx b/pdfresources.dtx
index cf5fe26..73872eb 100644
--- a/pdfresources.dtx
+++ b/pdfresources.dtx
@@ -1161,9 +1161,10 @@
   \file_input_stop:
  }
 \msg_info:nn{pdf}{patches}
+\RequirePackage{etoolbox}
+  %Trying to patch pgf ..
 \AtBeginDocument
  {
-  %Trying to patch pgf ...
   % extgstate
   \cs_new:Npn \__pdf_patch_pgfextgs:w  #1/#2<<#3>>#4\q_stop
    {
@@ -1172,6 +1173,7 @@
 
   \def\pgf at sys@addpdfresource at extgs@plain#1
    {
+    \exp_after:wN %for transparent which passes a command
     \__pdf_patch_pgfextgs:w #1\q_stop
    }
 
@@ -1190,11 +1192,29 @@
    {
     \driver_pdf_pageresources_gput:nnn {ColorSpace}{#2}{[#3]}
    }
-
-  \exp_last_unbraced:NV
-   \__pdf_patch_pgfcolorspace:w  \pgf at sys@pgf at resource@list at colorspaces\q_stop
-
+  \tl_if_exist:NT \pgf at sys@pgf at resource@list at colorspaces
+  {
+   \exp_last_unbraced:NV
+    \__pdf_patch_pgfcolorspace:w  \pgf at sys@pgf at resource@list at colorspaces\q_stop
    \pgfutil at everybye{}
+  }
+ }
+% transparent, we assume that pdfresource is loaded first.
+
+\AtEndPreamble
+ {
+  \def\TRP at addresource
+   {
+    \driver_pdf_pageresources_gput:nnn{ExtGState}{TRP1}{<</ca~1/CA~1>>}
+   }
+  \def\transparent at use#1
+  {
+   \tl_if_exist:cF{TRP#1}
+    {
+     \driver_pdf_pageresources_gput:nnn{ExtGState}{TRP#1}{<</ca~#1/CA~#1>>}
+     \tl_const:cn{TRP#1}{/TRP#1~gs}
+    }
+  }
  }
 
 %</package>
diff --git a/testfiles/transparent-tikz.luatex.tpf b/testfiles/transparent-tikz.luatex.tpf
new file mode 100644
index 0000000..82ebe8d
--- /dev/null
+++ b/testfiles/transparent-tikz.luatex.tpf
@@ -0,0 +1,206 @@
+%PDF-1.5
+%ÌÕÁÔÅØÐÄÆ
+11 0 obj
+<< /Length 159 >>        
+stream
+/TRP1 gs
+0 g 0 G
+0 g 0 G
+0 g 0 G
+BT
+/F25 9.96264 Tf
+1 0 0 1 148.712 657.235 Tm [<001C0023>-28<002B>]TJ
+0 g 0 G
+1 0 0 1 303.133 89.365 Tm [<0052>]TJ
+0 g 0 G
+ET
+endstream
+endobj
+10 0 obj
+<< /Type /Page /Contents 11 0 R /Resources 9 0 R /MediaBox [ 0 0 612 792 ] /Parent 13 0 R >>
+endobj
+9 0 obj
+<< /ExtGState 1 0 R /ColorSpace 2 0 R  /Font << /F25 12 0 R >> /ProcSet [ /PDF /Text ] >>
+endobj
+16 0 obj
+<< /Length 349 >>        
+stream
+/TRP1 gs
+0 g 0 G
+0 g 0 G
+1 0 0 1 148.712 638.852 cm
+q 
+0 G 
+0 g 
+0.3985 w 
+q 
+q 
+1 0 0 rg 1 0 0 RG
+/pgf at CA0.5 gs 
+/pgf at ca0.5 gs 
+0.0 0.0 m 
+0.0 0.0 m 
+0.0 28.3468 l 
+28.3468 28.3468 l 
+28.3468 0.0 l 
+h 
+28.3468 28.3468 m 
+f 
+0 g 0 G
+Q 
+Q 
+n 
+Q 
+0 g 0 G
+1 0 0 1 -148.712 -638.852 cm
+BT
+/F25 9.96264 Tf
+1 0 0 1 303.133 89.365 Tm [<006B>]TJ
+0 g 0 G
+ET
+endstream
+endobj
+15 0 obj
+<< /Type /Page /Contents 16 0 R /Resources 14 0 R /MediaBox [ 0 0 612 792 ] /Parent 13 0 R >>
+endobj
+14 0 obj
+<< /ExtGState 1 0 R /ColorSpace 2 0 R  /Font << /F25 12 0 R >> /ProcSet [ /PDF /Text ] >>
+endobj
+1 0 obj
+<< /TRP.5 <</ca .5/CA .5>> /TRP.3 <</ca .3/CA .3>> /TRP1 <</ca 1/CA 1>> /pgf at CA0.5  << /CA 0.5 >> /pgf at ca0.5  << /ca 0.5 >>  >>
+endobj
+2 0 obj
+<< /pgfprgb  [/Pattern /DeviceRGB]  >>
+endobj
+19 0 obj
+<< /Length 294 >>        
+stream
+/TRP1 gs
+0 g 0 G
+0 g 0 G
+/TRP.5 gs
+BT
+/F25 9.96264 Tf
+1 0 0 1 148.712 657.235 Tm [<00740074007400740074007400740074007400740074>]TJ
+/TRP1 gs
+/TRP.3 gs
+1 0 0 1 209.893 657.235 Tm [<00740074007400740074007400740074007400740074>]TJ
+/TRP1 gs
+0 g 0 G
+1 0 0 1 303.133 89.365 Tm [<006A>]TJ
+0 g 0 G
+ET
+endstream
+endobj
+18 0 obj
+<< /Type /Page /Contents 19 0 R /Resources 17 0 R /MediaBox [ 0 0 612 792 ] /Parent 13 0 R >>
+endobj
+17 0 obj
+<< /ExtGState 1 0 R /ColorSpace 2 0 R  /Font << /F25 12 0 R >> /ProcSet [ /PDF /Text ] >>
+endobj
+20 0 obj
+[ 28 [ 500 ] 35 [ 556 ] 43 [ 444 ] 82 [ 500 ] 106 [ 500 500 ] 116 [ 528 ] ]
+endobj
+22 0 obj
+<< /Length 15 >>         
+[BINARY STREAM]
+endobj
+23 0 obj
+<< /Subtype /CIDFontType0C /Length 1423 >>       
+[BINARY STREAM]
+endobj
+21 0 obj
+<< /Type /FontDescriptor /FontName /BXGANP+LMRoman10-Regular /Flags 4 /FontBBox [ -430 -290 1417 1127 ] /Ascent 1127 /CapHeight 683 /Descent -290 /ItalicAngle 0 /StemV 93 /XHeight 431 /FontFile3 23 0 R /CIDSet 22 0 R >>
+endobj
+24 0 obj
+<< /Length 776 >>        
+stream
+%!PS-Adobe-3.0 Resource-CMap
+%%DocumentNeededResources: ProcSet (CIDInit)
+%%IncludeResource: ProcSet (CIDInit)
+%%BeginResource: CMap (TeX-BXGANP-LMRoman10-Regular-0)
+%%Title: (TeX-BXGANP-LMRoman10-Regular-0 TeX BXGANP-LMRoman10-Regular 0)
+%%Version: 1.000
+%%EndComments
+/CIDInit /ProcSet findresource begin
+12 dict begin
+begincmap
+/CIDSystemInfo
+<< /Registry (TeX)
+/Ordering (BXGANP-LMRoman10-Regular)
+/Supplement 0
+>> def
+/CMapName /TeX-Identity-BXGANP-LMRoman10-Regular def
+/CMapType 2 def
+1 begincodespacerange
+<0000> <FFFF>
+endcodespacerange
+0 beginbfrange
+endbfrange
+7 beginbfchar
+<001C> <0061>
+<0023> <0062>
+<002B> <0063>
+<0052> <0031>
+<006A> <0033>
+<006B> <0032>
+<0074> <0078>
+endbfchar
+endcmap
+CMapName currentdict /CMap defineresource pop
+end
+end
+%%EndResource
+%%EOF
+endstream
+endobj
+12 0 obj
+<< /Type /Font /Subtype /Type0 /Encoding /Identity-H /BaseFont /BXGANP+LMRoman10-Regular /DescendantFonts [ 25 0 R ] /ToUnicode 24 0 R >>
+endobj
+25 0 obj
+<< /Type /Font /Subtype /CIDFontType0 /BaseFont /BXGANP+LMRoman10-Regular /FontDescriptor 21 0 R /W 20 0 R /CIDSystemInfo << /Registry (Adobe) /Ordering (Identity) /Supplement 0 >> >>
+endobj
+13 0 obj
+<< /Type /Pages  /Count 3 /Kids [ 10 0 R 15 0 R 18 0 R ] >>
+endobj
+26 0 obj
+<< /Type /Catalog /Pages 13 0 R >>
+endobj
+27 0 obj
+<< /Producer (LuaTeX) /Creator (TeX) /Trapped /False >>
+endobj
+xref
+0 28
+0000000003 65535 f 
+0000001078 00000 n 
+0000001221 00000 n 
+0000000004 00000 f 
+0000000005 00000 f 
+0000000006 00000 f 
+0000000007 00000 f 
+0000000008 00000 f 
+0000000000 00000 f 
+0000000348 00000 n 
+0000000239 00000 n 
+0000000020 00000 n 
+0000004591 00000 n 
+0000004945 00000 n 
+0000000972 00000 n 
+0000000862 00000 n 
+0000000453 00000 n 
+0000001739 00000 n 
+0000001629 00000 n 
+0000001275 00000 n 
+0000001845 00000 n 
+0000003519 00000 n 
+0000001937 00000 n 
+0000002012 00000 n 
+0000003755 00000 n 
+0000004745 00000 n 
+0000005021 00000 n 
+0000005072 00000 n 
+trailer
+<< /Size 28 /Root 26 0 R /Info 27 0 R >>
+startxref
+5144
+%%EOF
diff --git a/testfiles/transparent-tikz.pvt b/testfiles/transparent-tikz.pvt
new file mode 100644
index 0000000..599844a
--- /dev/null
+++ b/testfiles/transparent-tikz.pvt
@@ -0,0 +1,18 @@
+% !Mode:: "TeX:UTF-8:Main"
+\input{regression-test}
+\RequirePackage[enable-debug,check-declarations]{expl3}
+\RequirePackage[patches]{pdfresources}
+\documentclass{article}
+\usepackage{transparent}
+\usepackage{tikz}
+\begin{document}
+\START
+abc
+\newpage
+\tikz\fill[red,opacity=0.5] (0,0) rectangle (1,1);
+
+\newpage
+
+\texttransparent{0.5}{xxxxxxxxxxx}
+\texttransparent{0.3}{xxxxxxxxxxx}
+\end{document}
\ No newline at end of file
diff --git a/testfiles/transparent-tikz.tpf b/testfiles/transparent-tikz.tpf
new file mode 100644
index 0000000..d305083
--- /dev/null
+++ b/testfiles/transparent-tikz.tpf
@@ -0,0 +1,227 @@
+%PDF-1.5
+%ÐÔÅØ
+11 0 obj
+<<
+/Length 131       
+>>
+stream
+/TRP1 gs
+0 g 0 G
+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
+10 0 obj
+<<
+/Type /Page
+/Contents 11 0 R
+/Resources 9 0 R
+/MediaBox [0 0 612 792]
+/Parent 13 0 R
+>>
+endobj
+9 0 obj
+<<
+/ExtGState 1 0 R /ColorSpace 2 0 R 
+/Font << /F8 12 0 R >>
+/ProcSet [ /PDF /Text ]
+>>
+endobj
+16 0 obj
+<<
+/Length 336       
+>>
+stream
+/TRP1 gs
+0 g 0 G
+0 g 0 G
+1 0 0 1 148.712 638.852 cm
+q 
+0 G 
+0 g 
+0.3985 w 
+q 
+q 
+1 0 0 rg 1 0 0 RG
+/pgf at CA0.5 gs 
+/pgf at ca0.5 gs 
+0.0 0.0 m 
+0.0 0.0 m 
+0.0 28.3468 l 
+28.3468 28.3468 l 
+28.3468 0.0 l 
+h 
+28.3468 28.3468 m 
+f 
+0 g 0 G
+Q 
+Q 
+n 
+Q 
+0 g 0 G
+1 0 0 1 -148.712 -638.852 cm
+BT
+/F8 9.9626 Tf 303.133 89.365 Td [(2)]TJ
+0 g 0 G
+ET
+endstream
+endobj
+15 0 obj
+<<
+/Type /Page
+/Contents 16 0 R
+/Resources 14 0 R
+/MediaBox [0 0 612 792]
+/Parent 13 0 R
+>>
+endobj
+14 0 obj
+<<
+/ExtGState 1 0 R /ColorSpace 2 0 R 
+/Font << /F8 12 0 R >>
+/ProcSet [ /PDF /Text ]
+>>
+endobj
+1 0 obj
+<< /TRP.5 <</ca .5/CA .5>> /TRP.3 <</ca .3/CA .3>> /TRP1 <</ca 1/CA 1>> /pgf at CA0.5  << /CA 0.5 >> /pgf at ca0.5  << /ca 0.5 >>  >>
+endobj
+2 0 obj
+<< /pgfprgb  [/Pattern /DeviceRGB]  >>
+endobj
+19 0 obj
+<<
+/Length 187       
+>>
+stream
+/TRP1 gs
+0 g 0 G
+0 g 0 G
+/TRP.5 gs
+BT
+/F8 9.9626 Tf 148.712 657.235 Td [(xxxxxxxxxxx)]TJ
+/TRP1 gs
+/TRP.3 gs
+ [-333(xxxxxxxxxxx)]TJ
+/TRP1 gs
+0 g 0 G
+ 154.421 -567.87 Td [(3)]TJ
+0 g 0 G
+ET
+endstream
+endobj
+18 0 obj
+<<
+/Type /Page
+/Contents 19 0 R
+/Resources 17 0 R
+/MediaBox [0 0 612 792]
+/Parent 13 0 R
+>>
+endobj
+17 0 obj
+<<
+/ExtGState 1 0 R /ColorSpace 2 0 R 
+/Font << /F8 12 0 R >>
+/ProcSet [ /PDF /Text ]
+>>
+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 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
+21 0 obj
+<<
+/Length1 1456
+/Length2 8544
+/Length3 0
+/Length 10000     
+>>
+[BINARY STREAM]
+endobj
+22 0 obj
+<<
+/Type /FontDescriptor
+/FontName /OCJAFC+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/three/two/x)
+/FontFile 21 0 R
+>>
+endobj
+12 0 obj
+<<
+/Type /Font
+/Subtype /Type1
+/BaseFont /OCJAFC+CMR10
+/FontDescriptor 22 0 R
+/FirstChar 49
+/LastChar 120
+/Widths 20 0 R
+>>
+endobj
+13 0 obj
+<<
+/Type /Pages
+/Count 3
+/Kids [10 0 R 15 0 R 18 0 R]
+>>
+endobj
+23 0 obj
+<<
+/Type /Catalog
+/Pages 13 0 R
+>>
+endobj
+24 0 obj
+<<
+/Producer (pdfTeX)
+/Creator (TeX)
+/Trapped /False
+>>
+endobj
+xref
+0 25
+0000000003 65535 f 
+0000001024 00000 n 
+0000001167 00000 n 
+0000000004 00000 f 
+0000000005 00000 f 
+0000000006 00000 f 
+0000000007 00000 f 
+0000000008 00000 f 
+0000000000 00000 f 
+0000000312 00000 n 
+0000000205 00000 n 
+0000000015 00000 n 
+0000012422 00000 n 
+0000012562 00000 n 
+0000000919 00000 n 
+0000000811 00000 n 
+0000000416 00000 n 
+0000001575 00000 n 
+0000001467 00000 n 
+0000001221 00000 n 
+0000001680 00000 n 
+0000002087 00000 n 
+0000012185 00000 n 
+0000012635 00000 n 
+0000012686 00000 n 
+trailer
+<< /Size 25
+/Root 23 0 R
+/Info 24 0 R
+ >>
+startxref
+12758
+%%EOF
diff --git a/testfiles/pagesattr.luatex.tpf b/testfiles/transparent.luatex.tpf
similarity index 55%
copy from testfiles/pagesattr.luatex.tpf
copy to testfiles/transparent.luatex.tpf
index c7e4056..4b467c8 100644
--- a/testfiles/pagesattr.luatex.tpf
+++ b/testfiles/transparent.luatex.tpf
@@ -1,11 +1,20 @@
 %PDF-1.5
 %ÌÕÁÔÅØÐÄÆ
+1 0 obj
+<< /TRP.5 <</ca .5/CA .5>> /TRP.3 <</ca .3/CA .3>> /TRP1 <</ca 1/CA 1>>  >>
+endobj
 8 0 obj
-<< /Length 132 >>        
+<< /Length 263 >>        
 stream
+/TRP1 gs
+/TRP.5 gs
 BT
 /F25 9.96264 Tf
-1 0 0 1 148.712 707.125 Tm [<00620051004B0032>-333<0069003200740069>]TJ
+1 0 0 1 148.712 707.125 Tm [<00740074007400740074007400740074007400740074>]TJ
+/TRP1 gs
+/TRP.3 gs
+1 0 0 1 209.893 707.125 Tm [<00740074007400740074007400740074007400740074>]TJ
+/TRP1 gs
 1 0 0 1 303.133 139.255 Tm [<0052>]TJ
 ET
 endstream
@@ -14,30 +23,30 @@ endobj
 << /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
-<< /Font << /F25 9 0 R >> /ProcSet [ /PDF /Text ] >>
+<< /ExtGState 1 0 R  /Font << /F25 9 0 R >> /ProcSet [ /PDF /Text ] >>
 endobj
 11 0 obj
-[ 50 [ 444 ] 75 [ 833 ] 81 [ 500 500 ] 98 [ 394 ] 105 [ 389 ] 116 [ 528 ] ]
+[ 82 [ 500 ] 116 [ 528 ] ]
 endobj
 13 0 obj
 << /Length 15 >>         
 [BINARY STREAM]
 endobj
 14 0 obj
-<< /Subtype /CIDFontType0C /Length 1413 >>       
+<< /Subtype /CIDFontType0C /Length 772 >>        
 [BINARY STREAM]
 endobj
 12 0 obj
-<< /Type /FontDescriptor /FontName /KRCLMV+LMRoman10-Regular /Flags 4 /FontBBox [ -430 -290 1417 1127 ] /Ascent 1127 /CapHeight 683 /Descent -290 /ItalicAngle 0 /StemV 93 /XHeight 431 /FontFile3 14 0 R /CIDSet 13 0 R >>
+<< /Type /FontDescriptor /FontName /QVKDUG+LMRoman10-Regular /Flags 4 /FontBBox [ -430 -290 1417 1127 ] /Ascent 1127 /CapHeight 683 /Descent -290 /ItalicAngle 0 /StemV 93 /XHeight 431 /FontFile3 14 0 R /CIDSet 13 0 R >>
 endobj
 15 0 obj
-<< /Length 776 >>        
+<< /Length 706 >>        
 stream
 %!PS-Adobe-3.0 Resource-CMap
 %%DocumentNeededResources: ProcSet (CIDInit)
 %%IncludeResource: ProcSet (CIDInit)
-%%BeginResource: CMap (TeX-KRCLMV-LMRoman10-Regular-0)
-%%Title: (TeX-KRCLMV-LMRoman10-Regular-0 TeX KRCLMV-LMRoman10-Regular 0)
+%%BeginResource: CMap (TeX-QVKDUG-LMRoman10-Regular-0)
+%%Title: (TeX-QVKDUG-LMRoman10-Regular-0 TeX QVKDUG-LMRoman10-Regular 0)
 %%Version: 1.000
 %%EndComments
 /CIDInit /ProcSet findresource begin
@@ -45,23 +54,18 @@ stream
 begincmap
 /CIDSystemInfo
 << /Registry (TeX)
-/Ordering (KRCLMV-LMRoman10-Regular)
+/Ordering (QVKDUG-LMRoman10-Regular)
 /Supplement 0
 >> def
-/CMapName /TeX-Identity-KRCLMV-LMRoman10-Regular def
+/CMapName /TeX-Identity-QVKDUG-LMRoman10-Regular def
 /CMapType 2 def
 1 begincodespacerange
 <0000> <FFFF>
 endcodespacerange
 0 beginbfrange
 endbfrange
-7 beginbfchar
-<0032> <0065>
-<004B> <006D>
-<0051> <006F>
+2 beginbfchar
 <0052> <0031>
-<0062> <0073>
-<0069> <0074>
 <0074> <0078>
 endbfchar
 endcmap
@@ -73,13 +77,13 @@ end
 endstream
 endobj
 9 0 obj
-<< /Type /Font /Subtype /Type0 /Encoding /Identity-H /BaseFont /KRCLMV+LMRoman10-Regular /DescendantFonts [ 16 0 R ] /ToUnicode 15 0 R >>
+<< /Type /Font /Subtype /Type0 /Encoding /Identity-H /BaseFont /QVKDUG+LMRoman10-Regular /DescendantFonts [ 16 0 R ] /ToUnicode 15 0 R >>
 endobj
 16 0 obj
-<< /Type /Font /Subtype /CIDFontType0 /BaseFont /KRCLMV+LMRoman10-Regular /FontDescriptor 12 0 R /W 11 0 R /CIDSystemInfo << /Registry (Adobe) /Ordering (Identity) /Supplement 0 >> >>
+<< /Type /Font /Subtype /CIDFontType0 /BaseFont /QVKDUG+LMRoman10-Regular /FontDescriptor 12 0 R /W 11 0 R /CIDSystemInfo << /Registry (Adobe) /Ordering (Identity) /Supplement 0 >> >>
 endobj
 10 0 obj
-<< /Type /Pages /YYY (y22) /ZZZ (zzz) /SSS (somesetting)    /Count 1 /Kids [ 7 0 R ] >>
+<< /Type /Pages  /Count 1 /Kids [ 7 0 R ] >>
 endobj
 17 0 obj
 << /Type /Catalog /Pages 10 0 R >>
@@ -89,27 +93,27 @@ endobj
 endobj
 xref
 0 19
-0000000001 65535 f 
-0000000002 00000 f 
+0000000002 65535 f 
+0000000020 00000 n 
 0000000003 00000 f 
 0000000004 00000 f 
 0000000005 00000 f 
 0000000000 00000 f 
-0000000325 00000 n 
-0000000211 00000 n 
-0000000020 00000 n 
-0000003129 00000 n 
-0000003482 00000 n 
-0000000393 00000 n 
-0000002057 00000 n 
-0000000485 00000 n 
-0000000560 00000 n 
-0000002293 00000 n 
-0000003282 00000 n 
-0000003586 00000 n 
-0000003637 00000 n 
+0000000547 00000 n 
+0000000433 00000 n 
+0000000111 00000 n 
+0000002609 00000 n 
+0000002962 00000 n 
+0000000633 00000 n 
+0000001607 00000 n 
+0000000676 00000 n 
+0000000751 00000 n 
+0000001843 00000 n 
+0000002762 00000 n 
+0000003023 00000 n 
+0000003074 00000 n 
 trailer
 << /Size 19 /Root 17 0 R /Info 18 0 R >>
 startxref
-3709
+3146
 %%EOF
diff --git a/testfiles/transparent.pvt b/testfiles/transparent.pvt
new file mode 100644
index 0000000..863553d
--- /dev/null
+++ b/testfiles/transparent.pvt
@@ -0,0 +1,12 @@
+% !Mode:: "TeX:UTF-8:Main"
+\input{regression-test}
+\RequirePackage[enable-debug,check-declarations]{expl3}
+\RequirePackage[patches]{pdfresources}
+\documentclass{article}
+\usepackage{transparent}
+\begin{document}
+\START
+
+\texttransparent{0.5}{xxxxxxxxxxx}
+\texttransparent{0.3}{xxxxxxxxxxx}
+\end{document}
\ No newline at end of file
diff --git a/testfiles/pagesattr.tpf b/testfiles/transparent.tpf
similarity index 68%
copy from testfiles/pagesattr.tpf
copy to testfiles/transparent.tpf
index 8bbcf96..9c46b9f 100644
--- a/testfiles/pagesattr.tpf
+++ b/testfiles/transparent.tpf
@@ -1,12 +1,22 @@
 %PDF-1.5
 %ÐÔÅØ
+1 0 obj
+<< /TRP.5 <</ca .5/CA .5>> /TRP.3 <</ca .3/CA .3>> /TRP1 <</ca 1/CA 1>>  >>
+endobj
 8 0 obj
 <<
-/Length 91        
+/Length 155       
 >>
 stream
+/TRP1 gs
+/TRP.5 gs
 BT
-/F8 9.9626 Tf 148.712 707.125 Td [(some)-333(te)-1(xt)]TJ 154.421 -567.87 Td [(1)]TJ
+/F8 9.9626 Tf 148.712 707.125 Td [(xxxxxxxxxxx)]TJ
+/TRP1 gs
+/TRP.3 gs
+ [-333(xxxxxxxxxxx)]TJ
+/TRP1 gs
+ 154.421 -567.87 Td [(1)]TJ
 ET
 endstream
 endobj
@@ -21,6 +31,7 @@ endobj
 endobj
 6 0 obj
 <<
+/ExtGState 1 0 R 
 /Font << /F8 9 0 R >>
 /ProcSet [ /PDF /Text ]
 >>
@@ -30,17 +41,17 @@ endobj
 endobj
 12 0 obj
 <<
-/Length1 1455
-/Length2 9286
+/Length1 1380
+/Length2 6282
 /Length3 0
-/Length 10741     
+/Length 7662      
 >>
 [BINARY STREAM]
 endobj
 13 0 obj
 <<
 /Type /FontDescriptor
-/FontName /CTWJDN+CMR10
+/FontName /XKHRBG+CMR10
 /Flags 4
 /FontBBox [-40 -250 1009 750]
 /Ascent 694
@@ -49,7 +60,7 @@ endobj
 /ItalicAngle 0
 /StemV 69
 /XHeight 431
-/CharSet (/e/m/o/one/s/t/x)
+/CharSet (/one/x)
 /FontFile 12 0 R
 >>
 endobj
@@ -57,7 +68,7 @@ endobj
 <<
 /Type /Font
 /Subtype /Type1
-/BaseFont /CTWJDN+CMR10
+/BaseFont /XKHRBG+CMR10
 /FontDescriptor 13 0 R
 /FirstChar 49
 /LastChar 120
@@ -69,7 +80,6 @@ endobj
 /Type /Pages
 /Count 1
 /Kids [7 0 R]
-/YYY (y22) /ZZZ (zzz) /SSS (somesetting) 
 >>
 endobj
 14 0 obj
@@ -87,27 +97,27 @@ endobj
 endobj
 xref
 0 16
-0000000001 65535 f 
-0000000002 00000 f 
+0000000002 65535 f 
+0000000015 00000 n 
 0000000003 00000 f 
 0000000004 00000 f 
 0000000005 00000 f 
 0000000000 00000 f 
-0000000276 00000 n 
-0000000164 00000 n 
-0000000015 00000 n 
-0000011820 00000 n 
-0000011959 00000 n 
-0000000343 00000 n 
-0000000750 00000 n 
-0000011589 00000 n 
-0000012059 00000 n 
-0000012110 00000 n 
+0000000431 00000 n 
+0000000319 00000 n 
+0000000106 00000 n 
+0000008904 00000 n 
+0000009043 00000 n 
+0000000516 00000 n 
+0000000923 00000 n 
+0000008683 00000 n 
+0000009101 00000 n 
+0000009152 00000 n 
 trailer
 << /Size 16
 /Root 14 0 R
 /Info 15 0 R
  >>
 startxref
-12182
+9224
 %%EOF





More information about the latex3-commits mailing list