[latex3-commits] [git/LaTeX3-latex3-pdfresources] main, reworking-annot: adapt embedfile test to dict name change (9099c1d)

Ulrike Fischer fischer at troubleshooting-tex.de
Thu Feb 11 18:41:51 CET 2021


Repository : https://github.com/latex3/pdfresources
On branches: main,reworking-annot
Link       : https://github.com/latex3/pdfresources/commit/9099c1d08966dc0f395ff099606f8555273f9ce3

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

commit 9099c1d08966dc0f395ff099606f8555273f9ce3
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Thu Feb 11 18:41:51 2021 +0100

    adapt embedfile test to dict name change


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

9099c1d08966dc0f395ff099606f8555273f9ce3
 pdfmanagement.dtx              |   2 ++
 testfiles-dvips/embedfile.pvt  |  41 ++++++++++++++++++-----------------------
 testfiles-dvips/embedfile.tpf  | Bin 9285 -> 9285 bytes
 testfiles/embedfile.luatex.tpf |   6 +++---
 testfiles/embedfile.tpf        |   6 +++---
 testfiles/embedfile.xetex.tpf  |  34 +++++++++++++++++-----------------
 6 files changed, 43 insertions(+), 46 deletions(-)

diff --git a/pdfmanagement.dtx b/pdfmanagement.dtx
index 9da8b81..7917e5e 100644
--- a/pdfmanagement.dtx
+++ b/pdfmanagement.dtx
@@ -215,6 +215,8 @@
 % \item[l3pdftool] A number of commands like text conversion commands and
 % bcd/emc.  It will probably disappear. It is loaded by the bundle, and
 % should not be loaded independently.
+% \item[l3pdffile] This module provides commands for to embed files.
+%  It is not loaded automatically, it requires the pdf management. 
 %
 % \end{description}
 % \section{Incompabilities}
diff --git a/testfiles-dvips/embedfile.pvt b/testfiles-dvips/embedfile.pvt
index 211428e..d1d0887 100644
--- a/testfiles-dvips/embedfile.pvt
+++ b/testfiles-dvips/embedfile.pvt
@@ -1,19 +1,14 @@
-\input{regression-test}
-\RequirePackage{pdfmanagement}
-\DeclareDocumentMetadata{pdfversion=1.6}
+\PassOptionsToPackage{enable-debug,check-declarations}{expl3}
+\RequirePackage[debug]{pdfmanagement}
+\DeclareDocumentMetadata {pdfversion=1.6 }
+\RequirePackage{pdfmanagement-regressiontest}
+
 \documentclass{article}
 \usepackage{l3pdffile}
-\ExplSyntaxOn
-%%% for reproducible tests:
-\pdfmanagement_add:nnn {Info}{CreationDate}{(D:20200202111111+01'00')}
-\pdfmanagement_add:nnn {Info}{ModDate}{(D:20200202111111+01'00')}
-\pdfmanagement_add:nnn {Info}{Creator}{(l3build test)}
-%%%%%
-\ExplSyntaxOff
 
 \usepackage[]{hyperref}
-\hypersetup{pdfversion=1.6,pdfpagemode=UseAttachments}
-\usepackage{bookmark}
+\hypersetup{pdfpagemode=UseAttachments}
+
 \begin{filecontents}[overwrite]{grüße.txt}
 grüße
 \end{filecontents}
@@ -21,30 +16,30 @@ grüße
 \section{Testing embedding and attaching files}
 \ExplSyntaxOn
 \group_begin:
-\pdfdict_put:nnn  {l_file/FileSpec} {AFRelationship}{/Source}
+\pdfdict_put:nnn  {l_pdffile/FileSpec} {AFRelationship}{/Source}
 \pdf_text_convert:nnN {utf16/string-print} {this~is~something~odd~with~öäü}\l_tmpa_str
-\pdfdict_put:nnx  {l_file/FileSpec} {Desc}{\l_tmpa_str}
-\pdfdict_put:nnx  {l_file/Params} {ModDate}{(D:20200422135851Z)}
+\pdfdict_put:nnx  {l_pdffile/FileSpec} {Desc}{\l_tmpa_str}
+\pdfdict_put:nnx  {l_pdffile/Params} {ModDate}{(D:20200422135851Z)}
 \pdffile_embed_file:nnn {testinput.txt}{grüße.txt}{example1}
 \group_end:
 
 
 \group_begin:
-\pdfdict_put:nnn  {l_file/FileSpec} {AFRelationship}{/Source}
+\pdfdict_put:nnn  {l_pdffile/FileSpec} {AFRelationship}{/Source}
 \pdf_text_convert:nnN {utf16/string-print} {this~is~something~odd~with~öäü}\l_tmpa_str
-\pdfdict_put:nnx  {l_file/FileSpec} {Desc}{\l_tmpa_str}
-\pdfdict_put:nnx  {l_file/Params} {ModDate}{(D:20200422155851+02'00')}
+\pdfdict_put:nnx  {l_pdffile/FileSpec} {Desc}{\l_tmpa_str}
+\pdfdict_put:nnx  {l_pdffile/Params} {ModDate}{(D:20200422155851+02'00')}
 \pdffile_embed_file:nnn {grüße.txt}{echtegrüße.txt}{example2}
 \group_end:
 
 \group_begin:
-\pdfdict_put:nnn  {l_file/FileSpec} {AFRelationship}{/Source}
-\pdfdict_put:nnn  {l_file/FileSpec} {Desc}{(this~is~a~eps)}
-\pdfdict_put:nnx  {l_file/Params} {ModDate}{(D:20200422135851Z)} %for test
+\pdfdict_put:nnn  {l_pdffile/FileSpec} {AFRelationship}{/Source}
+\pdfdict_put:nnn  {l_pdffile/FileSpec} {Desc}{(this~is~a~eps)}
+\pdfdict_put:nnx  {l_pdffile/Params} {ModDate}{(D:20200422135851Z)} %for test
 \pdffile_embed_file:nnn {testinput.txt}{Some~txt~file}{example3}
 
-\pdfdict_put:nnn  {l_file/FileSpec} {AFRelationship}{/Data}
-\pdfdict_put:nnn  {l_file/FileSpec} {Desc}{(this~is~a~text~file)}
+\pdfdict_put:nnn  {l_pdffile/FileSpec} {AFRelationship}{/Data}
+\pdfdict_put:nnn  {l_pdffile/FileSpec} {Desc}{(this~is~a~text~file)}
 \pdffile_embed_stream:nnn {stream content} {Some~stream} {example4}
 
 
diff --git a/testfiles-dvips/embedfile.tpf b/testfiles-dvips/embedfile.tpf
index 6c691d1..993a16b 100644
Binary files a/testfiles-dvips/embedfile.tpf and b/testfiles-dvips/embedfile.tpf differ
diff --git a/testfiles/embedfile.luatex.tpf b/testfiles/embedfile.luatex.tpf
index 98cf0a6..036941e 100644
--- a/testfiles/embedfile.luatex.tpf
+++ b/testfiles/embedfile.luatex.tpf
@@ -227,7 +227,7 @@ endobj
 << /Type /Catalog /Pages 21 0 R /Outlines 38 0 R /Names 40 0 R /PageMode /UseAttachments/OpenAction [5 0 R /Fit]/PageLabels <</Nums[0<</S/D>>]>> >>
 endobj
 42 0 obj
-<< /Producer (LuaTeX)/Creator <FEFF004C006100540065005800200077006900740068002000680079007000650072007200650066> /Trapped /False >>
+<< /Creator <FEFF004C006100540065005800200077006900740068002000680079007000650072007200650066>/Producer (LuaTeX)/CreationDate (D:20010101205959-00'00')/ModDate (D:20010101205959-00'00') /Trapped /False >>
 endobj
 xref
 0 43
@@ -275,7 +275,7 @@ xref
 0000010036 00000 n 
 0000010200 00000 n 
 trailer
-<< /Size 43 /Root 41 0 R /Info 42 0 R >>
+<< /Size 43 /Root 41 0 R /Info 42 0 R /ID [ <2350CAD05F8A7AF0AA4058486855344F> <2350CAD05F8A7AF0AA4058486855344F> ] >>
 startxref
-10348
+10421
 %%EOF
diff --git a/testfiles/embedfile.tpf b/testfiles/embedfile.tpf
index bd4f420..15d040f 100644
--- a/testfiles/embedfile.tpf
+++ b/testfiles/embedfile.tpf
@@ -231,7 +231,7 @@ endobj
 endobj
 36 0 obj
 <<
-/Producer (pdfTeX)/Creator <FEFF004C006100540065005800200077006900740068002000680079007000650072007200650066>
+/Creator <FEFF004C006100540065005800200077006900740068002000680079007000650072007200650066>/Producer (pdfTeX)/CreationDate (D:20010101205959-00'00')/ModDate (D:20010101205959-00'00')
 /Trapped /False
 >>
 endobj
@@ -278,7 +278,7 @@ trailer
 << /Size 37
 /Root 35 0 R
 /Info 36 0 R
- >>
+/ID [<9BD18DF3359C1216B83ADB4AA401CC9A> <9BD18DF3359C1216B83ADB4AA401CC9A>] >>
 startxref
-22844
+22917
 %%EOF
diff --git a/testfiles/embedfile.xetex.tpf b/testfiles/embedfile.xetex.tpf
index 4f5267a..a3451e1 100644
--- a/testfiles/embedfile.xetex.tpf
+++ b/testfiles/embedfile.xetex.tpf
@@ -91,7 +91,7 @@ endobj
 <</Type/Pages/Count 1/Kids[3 0 R]/MediaBox[0 0 595.28 841.89]>>
 endobj
 2 0 obj
-<</Creator<feff004c006100540065005800200077006900740068002000680079007000650072007200650066>/Producer(xdvipdfmx)/CreationDate(D:20160520090000-00'00')>>
+<</Creator<feff004c006100540065005800200077006900740068002000680079007000650072007200650066>/Producer(xetex)/CreationDate(D:20010101194934+01'00')/ModDate(D:20010101205959-00'00')>>
 endobj
 1 0 obj
 <</PageMode/UseAttachments/OpenAction[3 0 R/Fit]/PageLabels<</Nums[0<</S/D>>]>>/Names
@@ -214,18 +214,18 @@ endobj
 xref
 0 38
 0000000000 65535 f 
-0000003325 00000 n 
+0000003354 00000 n 
 0000003157 00000 n 
 0000002999 00000 n 
 0000000487 00000 n 
-0000008289 00000 n 
-0000007839 00000 n 
+0000008318 00000 n 
+0000007868 00000 n 
 0000000530 00000 n 
 0000001010 00000 n 
 0000001665 00000 n 
 0000002066 00000 n 
-0000008886 00000 n 
-0000008435 00000 n 
+0000008915 00000 n 
+0000008464 00000 n 
 0000000709 00000 n 
 0000001324 00000 n 
 0000001844 00000 n 
@@ -241,19 +241,19 @@ xref
 0000002945 00000 n 
 0000002724 00000 n 
 0000003077 00000 n 
-0000003477 00000 n 
-0000004095 00000 n 
-0000008025 00000 n 
-0000004501 00000 n 
-0000006933 00000 n 
-0000007063 00000 n 
-0000008625 00000 n 
-0000007128 00000 n 
-0000007753 00000 n 
-0000007779 00000 n 
+0000003506 00000 n 
+0000004124 00000 n 
+0000008054 00000 n 
+0000004530 00000 n 
+0000006962 00000 n 
+0000007092 00000 n 
+0000008654 00000 n 
+0000007157 00000 n 
+0000007782 00000 n 
+0000007808 00000 n 
 trailer
 <</ID[<ID-STRING><ID-STRING>]/Root
 1 0 R/Info 2 0 R/Size 38>>
 startxref
-9037
+9066
 %%EOF





More information about the latex3-commits mailing list.