[latex3-commits] [git/LaTeX3-latex3-pdfresources] testlinkstuff: more test files (f26fa75)
Ulrike Fischer
fischer at troubleshooting-tex.de
Sat May 11 00:28:57 CEST 2019
Repository : https://github.com/latex3/pdfresources
On branch : testlinkstuff
Link : https://github.com/latex3/pdfresources/commit/f26fa75e03c18746b0bb5694ee4c0c13f0d31b8e
>---------------------------------------------------------------
commit f26fa75e03c18746b0bb5694ee4c0c13f0d31b8e
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Sat May 11 00:28:57 2019 +0200
more test files
>---------------------------------------------------------------
f26fa75e03c18746b0bb5694ee4c0c13f0d31b8e
.../{pagesattr.luatex.tpf => infodict.luatex.tpf} | 10 +-
testfiles/infodict.pvt | 12 +++
testfiles/{pagesattr.tpf => infodict.tpf} | 9 +-
testfiles/infodict.xetex.tpf | 100 ++++++++++++++++++++
testfiles/pageattr.pvt | 29 ++++++
5 files changed, 150 insertions(+), 10 deletions(-)
diff --git a/testfiles/pagesattr.luatex.tpf b/testfiles/infodict.luatex.tpf
similarity index 92%
copy from testfiles/pagesattr.luatex.tpf
copy to testfiles/infodict.luatex.tpf
index 658749f..ba4ae1c 100644
--- a/testfiles/pagesattr.luatex.tpf
+++ b/testfiles/infodict.luatex.tpf
@@ -79,13 +79,13 @@ endobj
<< /Type /Font /Subtype /CIDFontType0 /BaseFont /KRCLMV+LMRoman10-Regular /FontDescriptor 7 0 R /W 6 0 R /CIDSystemInfo << /Registry (Adobe) /Ordering (Identity) /Supplement 0 >> >>
endobj
5 0 obj
-<< /Type /Pages /YYY (y22) /ZZZ (zzz) /SSS (somesetting) /Count 1 /Kids [ 2 0 R ] >>
+<< /Type /Pages /Count 1 /Kids [ 2 0 R ] >>
endobj
12 0 obj
<< /Type /Catalog /Pages 5 0 R >>
endobj
13 0 obj
-<< /Producer (LuaTeX) /Creator (TeX) /Trapped /False >>
+<< /Producer (LuaTeX)/Title (A Title)/Author (Some Author) /Creator (TeX) /Trapped /False >>
endobj
xref
0 14
@@ -101,10 +101,10 @@ xref
0000000557 00000 n
0000002286 00000 n
0000003275 00000 n
-0000003576 00000 n
-0000003626 00000 n
+0000003533 00000 n
+0000003583 00000 n
trailer
<< /Size 14 /Root 12 0 R /Info 13 0 R >>
startxref
-3698
+3692
%%EOF
diff --git a/testfiles/infodict.pvt b/testfiles/infodict.pvt
new file mode 100644
index 0000000..32b635d
--- /dev/null
+++ b/testfiles/infodict.pvt
@@ -0,0 +1,12 @@
+\PassOptionsToPackage{enable-debug,check-declarations}{expl3}
+\RequirePackage[debug]{pdfresources}
+\input{regression-test}
+\documentclass{article}
+\ExplSyntaxOn
+\pdf_info_string_gput:nn {Title}{A~Title}
+\pdf_info_string_gput:nn {Author}{Some~Author}
+\ExplSyntaxOff
+\begin{document}
+\START
+some text
+\end{document}
\ No newline at end of file
diff --git a/testfiles/pagesattr.tpf b/testfiles/infodict.tpf
similarity index 93%
copy from testfiles/pagesattr.tpf
copy to testfiles/infodict.tpf
index 6f984c6..bba01ec 100644
--- a/testfiles/pagesattr.tpf
+++ b/testfiles/infodict.tpf
@@ -69,7 +69,6 @@ endobj
/Type /Pages
/Count 1
/Kids [2 0 R]
-/YYY (y22) /ZZZ (zzz) /SSS (somesetting)
>>
endobj
9 0 obj
@@ -80,7 +79,7 @@ endobj
endobj
10 0 obj
<<
-/Producer (pdfTeX)
+/Producer (pdfTeX)/Title (A Title)/Author (Some Author)
/Creator (TeX)
/Trapped /False
>>
@@ -96,13 +95,13 @@ xref
0000000342 00000 n
0000000748 00000 n
0000011586 00000 n
-0000012051 00000 n
-0000012100 00000 n
+0000012009 00000 n
+0000012058 00000 n
trailer
<< /Size 11
/Root 9 0 R
/Info 10 0 R
>>
startxref
-12172
+12167
%%EOF
diff --git a/testfiles/infodict.xetex.tpf b/testfiles/infodict.xetex.tpf
new file mode 100644
index 0000000..24dba61
--- /dev/null
+++ b/testfiles/infodict.xetex.tpf
@@ -0,0 +1,100 @@
+%PDF-1.5
+%äðíø
+6 0 obj
+<</Length 137>>
+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
+endstream
+endobj
+7 0 obj
+<</Font<</F1 5 0 R>>/ProcSet[/PDF/Text/ImageC/ImageB/ImageI]>>
+endobj
+3 0 obj
+<</Resources 7 0 R/Type/Page/Parent 8 0 R/Contents[6 0 R]>>
+endobj
+8 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)/Title(A Title)/Author(Some Author)/CreationDate(D:20160520090000-00'00')>>
+endobj
+1 0 obj
+<</Pages 8 0 R/Type/Catalog>>
+endobj
+9 0 obj
+<</Length 440>>
+stream
+/CIDInit /ProcSet findresource begin
+12 dict begin
+begincmap
+/CMapName /APWWDF+LMRoman10-Regular-UTF16 def
+/CMapType 2 def
+/CIDSystemInfo <<
+ /Registry (Adobe)
+ /Ordering (UCS)
+ /Supplement 0
+>> def
+1 begincodespacerange
+<0000> <FFFF>
+endcodespacerange
+7 beginbfchar
+<0032> <0065>
+<004B> <006D>
+<0051> <006F>
+<0052> <0031>
+<0062> <0073>
+<0069> <0074>
+<0074> <0078>
+endbfchar
+endcmap
+CMapName currentdict /CMap defineresource pop
+end
+end
+endstream
+endobj
+11 0 obj
+<</Subtype/CIDFontType0C/Length 1387>>
+[BINARY STREAM]
+endobj
+12 0 obj
+[50[444]75[833]81[500 500]98[394]105[389]116[528]]
+endobj
+13 0 obj
+<</Length 15>>
+[BINARY STREAM]
+endobj
+4 0 obj
+<</Type/Font/Subtype/CIDFontType0/BaseFont/APWWDF+LMRoman10-Regular/CIDSystemInfo<</Registry(Adobe)/Ordering(Identity)/Supplement
+0>>/FontDescriptor 10 0 R/DW 280/W 12 0 R>>
+endobj
+10 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
+11 0 R/CIDSet 13 0 R>>
+endobj
+5 0 obj
+<</Type/Font/Subtype/Type0/BaseFont/APWWDF+LMRoman10-Regular-Identity-H/Encoding/Identity-H/DescendantFonts[4 0 R]/ToUnicode
+9 0 R>>
+endobj
+xref
+0 14
+0000000000 65535 f
+0000000559 00000 n
+0000000433 00000 n
+0000000279 00000 n
+0000002684 00000 n
+0000003134 00000 n
+0000000015 00000 n
+0000000201 00000 n
+0000000354 00000 n
+0000000604 00000 n
+0000002873 00000 n
+0000001093 00000 n
+0000002553 00000 n
+0000002620 00000 n
+trailer
+<</Root 1 0 R/Info 2 0 R/ID[<736b672455ecf863cca2980d059cc169><736b672455ecf863cca2980d059cc169>]/Size
+14>>
+startxref
+3282
+%%EOF
diff --git a/testfiles/pageattr.pvt b/testfiles/pageattr.pvt
new file mode 100644
index 0000000..569f5b8
--- /dev/null
+++ b/testfiles/pageattr.pvt
@@ -0,0 +1,29 @@
+\PassOptionsToPackage{enable-debug,check-declarations}{expl3}
+\RequirePackage[debug]{pdfresources}
+\input{regression-test}
+\documentclass{article}
+\begin{document}
+\START
+some text
+\ExplSyntaxOn
+ \pdf_pageattr_gput:nn {Rotate}{90}
+%test local:
+{\pdf_pageattr_gput:nn {CropBox}{[0~0~300~300]}}
+
+%test "wrong" primitive call:
+ \__driver_pdf_pageattr:n{/WWW~(someusersetting)}
+
+%test doublette
+ \pdf_pageattr_gput:nn {Rotate}{90}
+
+%test command:
+\newcommand\attributecontent{(somesetting)}
+\pdf_pageattr_gput:nn {SSS}{\attributecontent}
+\tl_show:N\g__pdf_pageattr_tl
+
+\newpage
+\pdf_pageattr_gremove:n {Rotate}
+
+some text more text
+\ExplSyntaxOff
+\end{document}
\ No newline at end of file
More information about the latex3-commits
mailing list