[latex3-commits] [git/LaTeX3-latex3-pdfresources] master: testfiles for thispageattr (09133b9)

Ulrike Fischer fischer at troubleshooting-tex.de
Mon Mar 9 00:45:00 CET 2020


Repository : https://github.com/latex3/pdfresources
On branch  : master
Link       : https://github.com/latex3/pdfresources/commit/09133b9b0bf1333eb2755749596339b96c59ab74

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

commit 09133b9b0bf1333eb2755749596339b96c59ab74
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Mon Mar 9 00:45:00 2020 +0100

    testfiles for thispageattr


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

09133b9b0bf1333eb2755749596339b96c59ab74
 testfiles/thispageattr.luatex.tpf | 245 ++++++++++++++++++++++++++++++++++++++
 testfiles/thispageattr.pvt        |  38 ++++++
 testfiles/thispageattr.tpf        | 226 +++++++++++++++++++++++++++++++++++
 3 files changed, 509 insertions(+)

diff --git a/testfiles/thispageattr.luatex.tpf b/testfiles/thispageattr.luatex.tpf
new file mode 100644
index 0000000..4d7b309
--- /dev/null
+++ b/testfiles/thispageattr.luatex.tpf
@@ -0,0 +1,245 @@
+%PDF-1.5
+%ÌÕÁÔÅØÐÄÆ
+7 0 obj
+<< /Length 127 >>        
+stream
+BT
+/F26 24.78705 Tf
+1 0 0 1 148.712 700.158 Tm [<0068003100730068>]TJ
+/F25 9.96264 Tf
+1 0 0 1 303.133 139.255 Tm [<0052>]TJ
+ET
+endstream
+endobj
+6 0 obj
+<< /Type /Page /Contents 7 0 R /Resources 5 0 R /MediaBox [ 0 0 595.276 841.89 ] /Parent 10 0 R >>
+endobj
+5 0 obj
+<< /Font << /F26 8 0 R /F25 9 0 R >> /ProcSet [ /PDF /Text ] >>
+endobj
+13 0 obj
+<< /Length 363 >>        
+stream
+BT
+/F26 24.78705 Tf
+1 0 0 1 133.768 594.217 Tm [<002B0051>-26<002F0032>-302<00420062>-302<0051004D>-302<0054001C003B0032>-302<0052>]TJ
+1 0 0 1 133.768 564.329 Tm [<007E0051001C0069>-302<00420062>-302<0051004D>-302<0054001C003B0032>-302<006B>]TJ
+ET
+q
+1 0 0 1 133.768 274.811 cm
+0 0 28.346 283.465 re f
+Q
+BT
+/F25 9.96264 Tf
+1 0 0 1 303.133 139.255 Tm [<006B>]TJ
+ET
+endstream
+endobj
+12 0 obj
+<< /Type /Page /Contents 13 0 R /Resources 11 0 R /MediaBox [ 0 0 595.276 841.89 ] /Rotate 90  /Parent 10 0 R >>
+endobj
+11 0 obj
+<< /Font << /F26 8 0 R /F25 9 0 R >> /ProcSet [ /PDF /Text ] >>
+endobj
+16 0 obj
+<< /Length 363 >>        
+stream
+BT
+/F26 24.78705 Tf
+1 0 0 1 133.768 594.217 Tm [<002B0051>-26<002F0032>-302<00420062>-302<0051004D>-302<0054001C003B0032>-302<0052>]TJ
+1 0 0 1 133.768 564.329 Tm [<007E0051001C0069>-302<00420062>-302<0051004D>-302<0054001C003B0032>-302<006A>]TJ
+ET
+q
+1 0 0 1 133.768 274.811 cm
+0 0 28.346 283.465 re f
+Q
+BT
+/F25 9.96264 Tf
+1 0 0 1 303.133 139.255 Tm [<006A>]TJ
+ET
+endstream
+endobj
+15 0 obj
+<< /Type /Page /Contents 16 0 R /Resources 14 0 R /MediaBox [ 0 0 595.276 841.89 ] /Rotate -90 /Parent 10 0 R >>
+endobj
+14 0 obj
+<< /Font << /F26 8 0 R /F25 9 0 R >> /ProcSet [ /PDF /Text ] >>
+endobj
+17 0 obj
+[ 82 [ 500 ] 106 [ 500 500 ] ]
+endobj
+19 0 obj
+<< /Length 14 >>         
+[BINARY STREAM]
+endobj
+20 0 obj
+<< /Subtype /CIDFontType0C /Length 851 >>        
+[BINARY STREAM]
+endobj
+18 0 obj
+<< /Type /FontDescriptor /FontName /CCPAUQ+LMRoman10-Regular /Flags 4 /FontBBox [ -430 -290 1417 1127 ] /Ascent 1127 /CapHeight 683 /Descent -290 /ItalicAngle 0 /StemV 93 /XHeight 431 /FontFile3 20 0 R /CIDSet 19 0 R >>
+endobj
+21 0 obj
+<< /Length 720 >>        
+stream
+%!PS-Adobe-3.0 Resource-CMap
+%%DocumentNeededResources: ProcSet (CIDInit)
+%%IncludeResource: ProcSet (CIDInit)
+%%BeginResource: CMap (TeX-CCPAUQ-LMRoman10-Regular-0)
+%%Title: (TeX-CCPAUQ-LMRoman10-Regular-0 TeX CCPAUQ-LMRoman10-Regular 0)
+%%Version: 1.000
+%%EndComments
+/CIDInit /ProcSet findresource begin
+12 dict begin
+begincmap
+/CIDSystemInfo
+<< /Registry (TeX)
+/Ordering (CCPAUQ-LMRoman10-Regular)
+/Supplement 0
+>> def
+/CMapName /TeX-Identity-CCPAUQ-LMRoman10-Regular def
+/CMapType 2 def
+1 begincodespacerange
+<0000> <FFFF>
+endcodespacerange
+0 beginbfrange
+endbfrange
+3 beginbfchar
+<0052> <0031>
+<006A> <0033>
+<006B> <0032>
+endbfchar
+endcmap
+CMapName currentdict /CMap defineresource pop
+end
+end
+%%EndResource
+%%EOF
+endstream
+endobj
+9 0 obj
+<< /Type /Font /Subtype /Type0 /Encoding /Identity-H /BaseFont /CCPAUQ+LMRoman10-Regular /DescendantFonts [ 22 0 R ] /ToUnicode 21 0 R >>
+endobj
+22 0 obj
+<< /Type /Font /Subtype /CIDFontType0 /BaseFont /CCPAUQ+LMRoman10-Regular /FontDescriptor 18 0 R /W 17 0 R /CIDSystemInfo << /Registry (Adobe) /Ordering (Identity) /Supplement 0 >> >>
+endobj
+23 0 obj
+[ 28 [ 459 ] 43 [ 406 ] 47 [ 511 ] 49 [ 628 406 ] 59 [ 459 ] 66 [ 250 ] 77 [ 511 ] 81 [ 459 459 ] 84 [ 511 ] 98 [ 359 ] 104 [ 668 354 459 459 ] 115 [ 693 ] 126 [ 499 ] ]
+endobj
+25 0 obj
+<< /Length 16 >>         
+[BINARY STREAM]
+endobj
+26 0 obj
+<< /Subtype /CIDFontType0C /Length 2928 >>       
+[BINARY STREAM]
+endobj
+24 0 obj
+<< /Type /FontDescriptor /FontName /QETWKP+LMRoman17-Regular /Flags 4 /FontBBox [ -400 -286 1338 1125 ] /Ascent 1125 /CapHeight 683 /Descent -286 /ItalicAngle 0 /StemV 83 /XHeight 431 /FontFile3 26 0 R /CIDSet 25 0 R >>
+endobj
+27 0 obj
+<< /Length 935 >>        
+stream
+%!PS-Adobe-3.0 Resource-CMap
+%%DocumentNeededResources: ProcSet (CIDInit)
+%%IncludeResource: ProcSet (CIDInit)
+%%BeginResource: CMap (TeX-QETWKP-LMRoman17-Regular-0)
+%%Title: (TeX-QETWKP-LMRoman17-Regular-0 TeX QETWKP-LMRoman17-Regular 0)
+%%Version: 1.000
+%%EndComments
+/CIDInit /ProcSet findresource begin
+12 dict begin
+begincmap
+/CIDSystemInfo
+<< /Registry (TeX)
+/Ordering (QETWKP-LMRoman17-Regular)
+/Supplement 0
+>> def
+/CMapName /TeX-Identity-QETWKP-LMRoman17-Regular def
+/CMapType 2 def
+1 begincodespacerange
+<0000> <FFFF>
+endcodespacerange
+0 beginbfrange
+endbfrange
+18 beginbfchar
+<001C> <0061>
+<002B> <0063>
+<002F> <0064>
+<0031> <0045>
+<0032> <0065>
+<003B> <0067>
+<0042> <0069>
+<004D> <006E>
+<0051> <006F>
+<0052> <0031>
+<0054> <0070>
+<0062> <0073>
+<0068> <0054>
+<0069> <0074>
+<006A> <0033>
+<006B> <0032>
+<0073> <0058>
+<007E> <0066006C>
+endbfchar
+endcmap
+CMapName currentdict /CMap defineresource pop
+end
+end
+%%EndResource
+%%EOF
+endstream
+endobj
+8 0 obj
+<< /Type /Font /Subtype /Type0 /Encoding /Identity-H /BaseFont /QETWKP+LMRoman17-Regular /DescendantFonts [ 28 0 R ] /ToUnicode 27 0 R >>
+endobj
+28 0 obj
+<< /Type /Font /Subtype /CIDFontType0 /BaseFont /QETWKP+LMRoman17-Regular /FontDescriptor 24 0 R /W 23 0 R /CIDSystemInfo << /Registry (Adobe) /Ordering (Identity) /Supplement 0 >> >>
+endobj
+10 0 obj
+<< /Type /Pages  /Count 3 /Kids [ 6 0 R 12 0 R 15 0 R ] >>
+endobj
+29 0 obj
+<< /Type /Catalog /Pages 10 0 R >>
+endobj
+30 0 obj
+<< /Producer (LuaTeX) /Creator (TeX) /Trapped /False >>
+endobj
+xref
+0 31
+0000000001 65535 f 
+0000000002 00000 f 
+0000000003 00000 f 
+0000000004 00000 f 
+0000000000 00000 f 
+0000000320 00000 n 
+0000000206 00000 n 
+0000000020 00000 n 
+0000008593 00000 n 
+0000003735 00000 n 
+0000008946 00000 n 
+0000000951 00000 n 
+0000000822 00000 n 
+0000000399 00000 n 
+0000001583 00000 n 
+0000001454 00000 n 
+0000001031 00000 n 
+0000001663 00000 n 
+0000002719 00000 n 
+0000001710 00000 n 
+0000001784 00000 n 
+0000002955 00000 n 
+0000003888 00000 n 
+0000004088 00000 n 
+0000007362 00000 n 
+0000004274 00000 n 
+0000004350 00000 n 
+0000007598 00000 n 
+0000008746 00000 n 
+0000009021 00000 n 
+0000009072 00000 n 
+trailer
+<< /Size 31 /Root 29 0 R /Info 30 0 R >>
+startxref
+9144
+%%EOF
diff --git a/testfiles/thispageattr.pvt b/testfiles/thispageattr.pvt
new file mode 100644
index 0000000..77580c0
--- /dev/null
+++ b/testfiles/thispageattr.pvt
@@ -0,0 +1,38 @@
+\input{regression-test}
+\documentclass{article}
+\RequirePackage{pdfresources}
+\usepackage{l3pdf}
+\usepackage{zref-user}
+\ExplSyntaxOn
+\pdf_uncompress:
+\cs_generate_variant:Nn \pdf_thispageattr_gput:nn {nx}
+\ExplSyntaxOff
+\makeatletter
+\def\myrotate#1{\ifodd\zref at extractdefault{#1}{page}{0} -90\else 90 \fi}
+\makeatother
+\begin{document}
+\START
+\showoutput 
+\makeatletter
+\ExplSyntaxOn
+\Huge TEXT
+
+\begin{figure}[p]
+\zlabel{a}\label{a}
+\pdf_thispageattr_gput:nx{Rotate}{\myrotate{a}}
+\Huge
+code~is~on~page~\thepage\par
+float~is~on~page~\zpageref{a}\par
+\rule{1cm}{10cm}
+\end{figure}
+
+\begin{figure}[p]
+\zlabel{b}
+\pdf_thispageattr_gput:nx{Rotate}{\myrotate{b}}
+\Huge
+code~is~on~page~\thepage\par
+\label{b}float~is~on~page~\pageref{b}\par
+\rule{1cm}{10cm}
+\end{figure}
+
+\end{document}
\ No newline at end of file
diff --git a/testfiles/thispageattr.tpf b/testfiles/thispageattr.tpf
new file mode 100644
index 0000000..6f004e3
--- /dev/null
+++ b/testfiles/thispageattr.tpf
@@ -0,0 +1,226 @@
+%PDF-1.5
+%ÐÔÅØ
+7 0 obj
+<<
+/Length 93        
+>>
+stream
+BT
+/F25 24.7871 Tf 148.712 700.153 Td [(TEXT)]TJ/F8 9.9626 Tf 154.421 -560.898 Td [(1)]TJ
+ET
+endstream
+endobj
+6 0 obj
+<<
+/Type /Page
+/Contents 7 0 R
+/Resources 5 0 R
+/MediaBox [0 0 595.276 841.89]
+/Parent 10 0 R
+>>
+endobj
+5 0 obj
+<<
+/Font << /F25 8 0 R /F8 9 0 R >>
+/ProcSet [ /PDF /Text ]
+>>
+endobj
+13 0 obj
+<<
+/Length 252       
+>>
+stream
+BT
+/F25 24.7871 Tf 133.768 594.094 Td [(co)-26(de)-302(is)-302(on)-302(page)-302(1)]TJ 0 -29.888 Td [(\015oat)-302(is)-302(on)-302(page)-302(2)]TJ
+ET
+q
+1 0 0 1 133.768 274.924 cm
+0 0 28.346 283.465 re f
+Q
+BT
+/F8 9.9626 Tf 303.133 139.255 Td [(2)]TJ
+ET
+endstream
+endobj
+12 0 obj
+<<
+/Type /Page
+/Contents 13 0 R
+/Resources 11 0 R
+/MediaBox [0 0 595.276 841.89]
+/Rotate 90  
+/Parent 10 0 R
+>>
+endobj
+11 0 obj
+<<
+/Font << /F25 8 0 R /F8 9 0 R >>
+/ProcSet [ /PDF /Text ]
+>>
+endobj
+16 0 obj
+<<
+/Length 252       
+>>
+stream
+BT
+/F25 24.7871 Tf 133.768 594.094 Td [(co)-26(de)-302(is)-302(on)-302(page)-302(1)]TJ 0 -29.888 Td [(\015oat)-302(is)-302(on)-302(page)-302(3)]TJ
+ET
+q
+1 0 0 1 133.768 274.924 cm
+0 0 28.346 283.465 re f
+Q
+BT
+/F8 9.9626 Tf 303.133 139.255 Td [(3)]TJ
+ET
+endstream
+endobj
+15 0 obj
+<<
+/Type /Page
+/Contents 16 0 R
+/Resources 14 0 R
+/MediaBox [0 0 595.276 841.89]
+/Rotate -90 
+/Parent 10 0 R
+>>
+endobj
+14 0 obj
+<<
+/Font << /F25 8 0 R /F8 9 0 R >>
+/ProcSet [ /PDF /Text ]
+>>
+endobj
+17 0 obj
+[500 500 500]
+endobj
+18 0 obj
+[499.3 748.9 748.9 249.6 275.8 458.6 458.6 458.6 458.6 458.6 693.3 406.4 458.6 667.6 719.8 458.6 837.2 941.7 719.8 249.6 249.6 458.6 772.1 458.6 772.1 719.8 249.6 354.1 354.1 458.6 719.8 249.6 301.9 249.6 458.6 458.6 458.6 458.6 458.6 458.6 458.6 458.6 458.6 458.6 458.6 249.6 249.6 249.6 719.8 432.5 432.5 719.8 693.3 654.3 667.6 706.6 628.2 602.1 726.3 693.3 327.6 471.5 719.4 576 850 693.3 719.8 628.2 719.8 680.5 510.9 667.6 693.3 693.3 954.5 693.3 693.3 563.1 249.6 458.6 249.6 458.6 249.6 249.6 458.6 510.9 406.4 510.9 406.4 275.8 458.6 510.9 249.6 275.8 484.7 249.6 772.1 510.9 458.6 510.9 484.7 354.1 359.4 354.1]
+endobj
+19 0 obj
+<<
+/Length1 1399
+/Length2 6896
+/Length3 0
+/Length 8295      
+>>
+[BINARY STREAM]
+endobj
+20 0 obj
+<<
+/Type /FontDescriptor
+/FontName /KGVGIZ+CMR10
+/Flags 4
+/FontBBox [-40 -250 1009 750]
+/Ascent 694
+/CapHeight 683
+/Descent -194
+/ItalicAngle 0
+/StemV 69
+/XHeight 431
+/CharSet (/one/three/two)
+/FontFile 19 0 R
+>>
+endobj
+21 0 obj
+<<
+/Length1 1618
+/Length2 9147
+/Length3 0
+/Length 10765     
+>>
+[BINARY STREAM]
+endobj
+22 0 obj
+<<
+/Type /FontDescriptor
+/FontName /QGXUFZ+CMR17
+/Flags 4
+/FontBBox [-33 -250 945 749]
+/Ascent 694
+/CapHeight 683
+/Descent -195
+/ItalicAngle 0
+/StemV 53
+/XHeight 430
+/CharSet (/E/T/X/a/c/d/e/fl/g/i/n/o/one/p/s/t/three/two)
+/FontFile 21 0 R
+>>
+endobj
+9 0 obj
+<<
+/Type /Font
+/Subtype /Type1
+/BaseFont /KGVGIZ+CMR10
+/FontDescriptor 20 0 R
+/FirstChar 49
+/LastChar 51
+/Widths 17 0 R
+>>
+endobj
+8 0 obj
+<<
+/Type /Font
+/Subtype /Type1
+/BaseFont /QGXUFZ+CMR17
+/FontDescriptor 22 0 R
+/FirstChar 13
+/LastChar 116
+/Widths 18 0 R
+>>
+endobj
+10 0 obj
+<<
+/Type /Pages
+/Count 3
+/Kids [6 0 R 12 0 R 15 0 R]
+>>
+endobj
+23 0 obj
+<<
+/Type /Catalog
+/Pages 10 0 R
+>>
+endobj
+24 0 obj
+<<
+/Producer (pdfTeX)
+/Creator (TeX)
+/Trapped /False
+>>
+endobj
+xref
+0 25
+0000000001 65535 f 
+0000000002 00000 f 
+0000000003 00000 f 
+0000000004 00000 f 
+0000000000 00000 f 
+0000000278 00000 n 
+0000000166 00000 n 
+0000000015 00000 n 
+0000021942 00000 n 
+0000021804 00000 n 
+0000022081 00000 n 
+0000000795 00000 n 
+0000000667 00000 n 
+0000000356 00000 n 
+0000001313 00000 n 
+0000001185 00000 n 
+0000000874 00000 n 
+0000001392 00000 n 
+0000001422 00000 n 
+0000002060 00000 n 
+0000010453 00000 n 
+0000010682 00000 n 
+0000021545 00000 n 
+0000022153 00000 n 
+0000022204 00000 n 
+trailer
+<< /Size 25
+/Root 23 0 R
+/Info 24 0 R
+ >>
+startxref
+22276
+%%EOF





More information about the latex3-commits mailing list.