[latex3-commits] [git/LaTeX3-latex3-pdfresources] backendtest: pageattr tests (33e7405)

Ulrike Fischer fischer at troubleshooting-tex.de
Sat Jun 22 00:48:13 CEST 2019


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

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

commit 33e7405ea62a79cf96ac3ad55be16c9effc84912
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Sat Jun 22 00:48:13 2019 +0200

    pageattr tests


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

33e7405ea62a79cf96ac3ad55be16c9effc84912
 testfiles/pageattr.luatex.tpf | 157 +++++++-------------------------------
 testfiles/pageattr.pvt        |  12 ++-
 testfiles/pageattr.tpf        | 170 +++++++++++-------------------------------
 testfiles/pageattr.xetex.tpf  |  42 +++++++++++
 4 files changed, 120 insertions(+), 261 deletions(-)

diff --git a/testfiles/pageattr.luatex.tpf b/testfiles/pageattr.luatex.tpf
index b442024..9946e87 100644
--- a/testfiles/pageattr.luatex.tpf
+++ b/testfiles/pageattr.luatex.tpf
@@ -1,151 +1,44 @@
 %PDF-1.5
 %ÌÕÁÔÅØÐÄÆ
 8 0 obj
-<< /Length 132 >>        
-stream
-BT
-/F25 9.96264 Tf
-1 0 0 1 148.712 707.125 Tm [<00620051004B0032>-333<0069003200740069>]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 ] /Rotate 90 /CropBox [0 0 300 300] /SSS (somesetting)  /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 << /F25 9 0 R >> /ProcSet [ /PDF /Text ] >>
-endobj
-13 0 obj
-<< /Length 158 >>        
-stream
-BT
-/F25 9.96264 Tf
-1 0 0 1 148.712 707.125 Tm [<00620051004B00320069003200740069004B0051006000320069003200740069>]TJ
-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 ] /CropBox [0 0 300 300] /SSS (somesetting)  /Parent 10 0 R >>
-endobj
-11 0 obj
-<< /ExtGState 1 0 R /ColorSpace 2 0 R /Pattern 3 0 R /Shading 4 0 R /Properties 5 0 R  /Font << /F25 9 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
-<<  >>
+<< /Filter /FlateDecode /Length 105 >>        
+[BINARY STREAM]
 endobj
 14 0 obj
-[ 50 [ 444 ] 75 [ 833 ] 81 [ 500 500 ] 96 [ 392 ] 98 [ 394 ] 105 [ 389 ] 107 [ 500 ] 116 [ 528 ] ]
-endobj
-16 0 obj
-<< /Length 15 >>         
+<< /Filter /FlateDecode /Length 110 >>        
 [BINARY STREAM]
 endobj
 17 0 obj
-<< /Subtype /CIDFontType0C /Length 1646 >>       
+<< /Filter /FlateDecode /Length 106 >>        
 [BINARY STREAM]
 endobj
-15 0 obj
-<< /Type /FontDescriptor /FontName /HJLIKI+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 >>
+20 0 obj
+<< /Filter /FlateDecode /Length 89 >>         
+[BINARY STREAM]
 endobj
-18 0 obj
-<< /Length 804 >>        
-stream
-%!PS-Adobe-3.0 Resource-CMap
-%%DocumentNeededResources: ProcSet (CIDInit)
-%%IncludeResource: ProcSet (CIDInit)
-%%BeginResource: CMap (TeX-HJLIKI-LMRoman10-Regular-0)
-%%Title: (TeX-HJLIKI-LMRoman10-Regular-0 TeX HJLIKI-LMRoman10-Regular 0)
-%%Version: 1.000
-%%EndComments
-/CIDInit /ProcSet findresource begin
-12 dict begin
-begincmap
-/CIDSystemInfo
-<< /Registry (TeX)
-/Ordering (HJLIKI-LMRoman10-Regular)
-/Supplement 0
->> def
-/CMapName /TeX-Identity-HJLIKI-LMRoman10-Regular def
-/CMapType 2 def
-1 begincodespacerange
-<0000> <FFFF>
-endcodespacerange
-0 beginbfrange
-endbfrange
-9 beginbfchar
-<0032> <0065>
-<004B> <006D>
-<0051> <006F>
-<0052> <0031>
-<0060> <0072>
-<0062> <0073>
-<0069> <0074>
-<006B> <0032>
-<0074> <0078>
-endbfchar
-endcmap
-CMapName currentdict /CMap defineresource pop
-end
-end
-%%EndResource
-%%EOF
-endstream
+23 0 obj
+<< /Filter /FlateDecode /Length 23 >>         
+[BINARY STREAM]
 endobj
-9 0 obj
-<< /Type /Font /Subtype /Type0 /Encoding /Identity-H /BaseFont /HJLIKI+LMRoman10-Regular /DescendantFonts [ 19 0 R ] /ToUnicode 18 0 R >>
+24 0 obj
+<< /Subtype /CIDFontType0C /Filter /FlateDecode /Length 1972 >>       
+[BINARY STREAM]
 endobj
-19 0 obj
-<< /Type /Font /Subtype /CIDFontType0 /BaseFont /HJLIKI+LMRoman10-Regular /FontDescriptor 15 0 R /W 14 0 R /CIDSystemInfo << /Registry (Adobe) /Ordering (Identity) /Supplement 0 >> >>
+25 0 obj
+<< /Filter /FlateDecode /Length 425 >>        
+[BINARY STREAM]
 endobj
-10 0 obj
-<< /Type /Pages  /Count 2 /Kids [ 7 0 R 12 0 R ] >>
+28 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
-20 0 obj
-<< /Type /Catalog /Pages 10 0 R >>
+11 0 obj
+<< /Type /ObjStm /N 14 /First 97 /Filter /FlateDecode /Length 620 >>        
+[BINARY STREAM]
 endobj
-21 0 obj
-<< /Producer (LuaTeX) /Creator (TeX) /Trapped /False >>
+29 0 obj
+<< /Type /XRef /Index [ 0 30 ] /Size 30 /W [ 1 2 1 ] /Root 27 0 R /Info 28 0 R /ID [ <17069F1968950BFE6820C0C530666C8E> <17069F1968950BFE6820C0C530666C8E> ] /Filter /FlateDecode /Length 88 >>         
+[BINARY STREAM]
 endobj
-xref
-0 22
-0000000000 65535 f 
-0000001062 00000 n 
-0000001084 00000 n 
-0000001106 00000 n 
-0000001128 00000 n 
-0000001150 00000 n 
-0000000379 00000 n 
-0000000211 00000 n 
-0000000020 00000 n 
-0000004192 00000 n 
-0000004545 00000 n 
-0000000909 00000 n 
-0000000749 00000 n 
-0000000531 00000 n 
-0000001172 00000 n 
-0000003092 00000 n 
-0000001287 00000 n 
-0000001362 00000 n 
-0000003328 00000 n 
-0000004345 00000 n 
-0000004613 00000 n 
-0000004664 00000 n 
-trailer
-<< /Size 22 /Root 20 0 R /Info 21 0 R >>
 startxref
-4736
+4398
 %%EOF
diff --git a/testfiles/pageattr.pvt b/testfiles/pageattr.pvt
index e8ee06f..e2c3cb3 100644
--- a/testfiles/pageattr.pvt
+++ b/testfiles/pageattr.pvt
@@ -1,6 +1,6 @@
 \PassOptionsToPackage{enable-debug,check-declarations}{expl3}
 \RequirePackage[debug]{pdfresources}
-\input{regression-test}
+%\input{regression-test}
 \documentclass{article}
 \begin{document}
 \START
@@ -8,7 +8,7 @@ some text
 \ExplSyntaxOn
  \pdf_pageattr_gput:nn {Rotate}{90}
 %test local:
-{\pdf_pageattr_gput:nn {CropBox}{[0~0~300~300]}}
+{\pdf_pageattr_gput:nn {CropBox}{[0~0~300~350]}}
 
 %test doublette
  \pdf_pageattr_gput:nn {Rotate}{90}
@@ -19,7 +19,13 @@ some text
 
 \newpage
 \pdf_pageattr_gremove:n {Rotate}
-
+\pdf_pageattr_gremove:n {CropBox}
 some text more text
+\begin{figure}[p]
+\rule{1cm}{15cm}
+\pdf_thispageattr_gput:nn{Rotate}{-90}
+\end{figure}
+\newpage
+abbb
 \ExplSyntaxOff
 \end{document} 
\ No newline at end of file
diff --git a/testfiles/pageattr.tpf b/testfiles/pageattr.tpf
index f92c152..2783154 100644
--- a/testfiles/pageattr.tpf
+++ b/testfiles/pageattr.tpf
@@ -3,157 +3,75 @@
 8 0 obj
 <<
 /Length 91        
+/Filter /FlateDecode
 >>
-stream
-BT
-/F8 9.9626 Tf 148.712 707.125 Td [(some)-333(te)-1(xt)]TJ 154.421 -567.87 Td [(1)]TJ
-ET
-endstream
-endobj
-7 0 obj
-<<
-/Type /Page
-/Contents 8 0 R
-/Resources 6 0 R
-/MediaBox [0 0 595.276 841.89]
-/Rotate 90 /CropBox [0 0 300 300] /SSS (somesetting) 
-/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 << /F8 9 0 R >>
-/ProcSet [ /PDF /Text ]
->>
+[BINARY STREAM]
 endobj
-13 0 obj
+14 0 obj
 <<
-/Length 89        
+/Length 87        
+/Filter /FlateDecode
 >>
-stream
-BT
-/F8 9.9626 Tf 148.712 707.125 Td [(sometextmoretext)]TJ 154.421 -567.87 Td [(2)]TJ
-ET
-endstream
+[BINARY STREAM]
 endobj
-12 0 obj
+17 0 obj
 <<
-/Type /Page
-/Contents 13 0 R
-/Resources 11 0 R
-/MediaBox [0 0 595.276 841.89]
-/CropBox [0 0 300 300] /SSS (somesetting) 
-/Parent 10 0 R
+/Length 100       
+/Filter /FlateDecode
 >>
+[BINARY STREAM]
 endobj
-11 0 obj
+20 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 >>
-/ProcSet [ /PDF /Text ]
+/Length 78        
+/Filter /FlateDecode
 >>
+[BINARY STREAM]
 endobj
-1 0 obj
-<<  >>
-endobj
-2 0 obj
-<<  >>
-endobj
-3 0 obj
-<<  >>
-endobj
-4 0 obj
-<<  >>
-endobj
-5 0 obj
-<<  >>
-endobj
-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 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
-15 0 obj
+22 0 obj
 <<
-/Length1 1486
-/Length2 9650
+/Length1 1549
+/Length2 10451
 /Length3 0
-/Length 11136     
+/Length 11484     
+/Filter /FlateDecode
 >>
 [BINARY STREAM]
 endobj
-16 0 obj
-<<
-/Type /FontDescriptor
-/FontName /PNKNLS+CMR10
-/Flags 4
-/FontBBox [-40 -250 1009 750]
-/Ascent 694
-/CapHeight 683
-/Descent -194
-/ItalicAngle 0
-/StemV 69
-/XHeight 431
-/CharSet (/e/m/o/one/r/s/t/two/x)
-/FontFile 15 0 R
->>
-endobj
-9 0 obj
+25 0 obj
 <<
-/Type /Font
-/Subtype /Type1
-/BaseFont /PNKNLS+CMR10
-/FontDescriptor 16 0 R
-/FirstChar 49
-/LastChar 120
-/Widths 14 0 R
+/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
 10 0 obj
 <<
-/Type /Pages
-/Count 2
-/Kids [7 0 R 12 0 R]
->>
-endobj
-17 0 obj
-<<
-/Type /Catalog
-/Pages 10 0 R
+/Type /ObjStm
+/N 13
+/First 90
+/Length 641       
+/Filter /FlateDecode
 >>
+[BINARY STREAM]
 endobj
-18 0 obj
+26 0 obj
 <<
-/Producer (pdfTeX)
-/Creator (TeX)
-/Trapped /False
+/Type /XRef
+/Index [0 27]
+/Size 27
+/W [1 2 1]
+/Root 24 0 R
+/Info 25 0 R
+/ID [<C2B2414BBE3DE0EE4CCC4349949DE8C2> <C2B2414BBE3DE0EE4CCC4349949DE8C2>]
+/Length 76        
+/Filter /FlateDecode
 >>
+[BINARY STREAM]
 endobj
-xref
-0 19
-0000000000 65535 f 
-0000000939 00000 n 
-0000000961 00000 n 
-0000000983 00000 n 
-0000001005 00000 n 
-0000001027 00000 n 
-0000000330 00000 n 
-0000000164 00000 n 
-0000000015 00000 n 
-0000012927 00000 n 
-0000013066 00000 n 
-0000000787 00000 n 
-0000000629 00000 n 
-0000000481 00000 n 
-0000001049 00000 n 
-0000001456 00000 n 
-0000012690 00000 n 
-0000013131 00000 n 
-0000013182 00000 n 
-trailer
-<< /Size 19
-/Root 17 0 R
-/Info 18 0 R
- >>
 startxref
-13254
+13300
 %%EOF
diff --git a/testfiles/pageattr.xetex.tpf b/testfiles/pageattr.xetex.tpf
new file mode 100644
index 0000000..391eb82
--- /dev/null
+++ b/testfiles/pageattr.xetex.tpf
@@ -0,0 +1,42 @@
+%PDF-1.5
+%äðíø
+6 0 obj
+<</Filter/FlateDecode/Length 116>>
+[BINARY STREAM]
+endobj
+10 0 obj
+<</Filter/FlateDecode/Length 119>>
+[BINARY STREAM]
+endobj
+13 0 obj
+<</Filter/FlateDecode/Length 106>>
+[BINARY STREAM]
+endobj
+16 0 obj
+<</Filter/FlateDecode/Length 101>>
+[BINARY STREAM]
+endobj
+19 0 obj
+<</Filter/FlateDecode/Length 307>>
+[BINARY STREAM]
+endobj
+21 0 obj
+<</Subtype/CIDFontType0C/Filter/FlateDecode/Length 1966>>
+[BINARY STREAM]
+endobj
+23 0 obj
+<</Filter/FlateDecode/Length 23>>
+[BINARY STREAM]
+endobj
+8 0 obj
+<</Type/ObjStm/N 15/First 97/Filter/FlateDecode/Length 705>>
+[BINARY STREAM]
+endobj
+24 0 obj
+<</Type/XRef/Root 1 0 R/Info 2 0 R/ID[<e101807412511fb6436de4958aee6fad><e101807412511fb6436de4958aee6fad>]/Size
+25/W[1 2 2]/Filter/FlateDecode/Length 82>>
+[BINARY STREAM]
+endobj
+startxref
+4056
+%%EOF





More information about the latex3-commits mailing list