[latex3-commits] [git/LaTeX3-latex3-pdfresources] splitting: improve embedding files and add testfile (88a90ad)

Ulrike Fischer fischer at troubleshooting-tex.de
Thu Jul 2 14:08:00 CEST 2020


Repository : https://github.com/latex3/pdfresources
On branch  : splitting
Link       : https://github.com/latex3/pdfresources/commit/88a90adb520580133de0ce010c42dc1bdcd9d79a

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

commit 88a90adb520580133de0ce010c42dc1bdcd9d79a
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Thu Jul 2 14:08:00 2020 +0200

    improve embedding files and add testfile


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

88a90adb520580133de0ce010c42dc1bdcd9d79a
 experiments/embedfiles.tex                         |  82 ++++--
 "experiments/gr\303\274\303\237e.txt"              |   6 +-
 l3pdfcoredict.dtx                                  |  16 +-
 l3pdffile.dtx                                      |  23 +-
 testfiles-dvips/embedfile.pvt                      |  53 ++++
 testfiles-dvips/embedfile.tpf                      | Bin 0 -> 9617 bytes
 .../support/gr\303\274\303\237e.txt"               |   0
 .../support}/testinput.txt                         |   0
 testfiles/embedfile.luatex.tpf                     | 275 ++++++++++++++++++++
 testfiles/embedfile.pvt                            |  53 ++++
 testfiles/embedfile.tpf                            | 277 +++++++++++++++++++++
 testfiles/embedfile.xetex.tpf                      | 255 +++++++++++++++++++
 .../support/gr\303\274\303\237e.txt"               |   0
 {experiments => testfiles/support}/testinput.txt   |   0
 14 files changed, 1011 insertions(+), 29 deletions(-)

diff --git a/experiments/embedfiles.tex b/experiments/embedfiles.tex
index 289a47d..e04a154 100644
--- a/experiments/embedfiles.tex
+++ b/experiments/embedfiles.tex
@@ -1,50 +1,102 @@
 % !Mode:: "TeX:UTF-8:Main"
+\input{regression-test}
 \RequirePackage{pdfresources}
 \DeclareDocumentMetaData{pdfversion=1.6}
+\ExplSyntaxOn
+\pdf_uncompress:
+\ExplSyntaxOff
 \documentclass{article}
-\usepackage{pdfresources}
 \usepackage{l3pdffile}
 \usepackage[customdriver=hgeneric-experimental]{hyperref}
 \hypersetup{pdfversion=1.6,pdfpagemode=UseAttachments}
+\usepackage{bookmark}
+
+\begin{document}
+\section{Testing embedding and attaching files}
+\ExplSyntaxOn
+%\pdftool_textstringlit_print:nN {xxxgrüße}\l_tmpa_str
+%\pdfextension outline goto name {Doc-Start}{\l_tmpa_str}
+\group_begin:
+\pdfdict_put:nnn  {file/FileSpec} {AFRelationship}{/Source}
+\pdftool_textstringlit_print:nN {this~is~something~odd~with~öäü}\l_tmpa_str
+\pdfdict_put:nnx  {file/FileSpec} {Desc}{\l_tmpa_str}
+\pdffile_embed_file:nnn {testinput.txt}{grüße.txt}{example1}
+\group_end:
+
+
+%\group_begin:
+%\pdfdict_put:nnn  {file/FileSpec} {AFRelationship}{/Source}
+%\pdftool_textstringlit_print:nN {this~is~something~odd~with~öäü}\l_tmpa_str
+%\pdfdict_put:nnx  {file/FileSpec} {Desc}{\l_tmpa_str}
+%\pdffile_embed_file:nnn {grüße.txt}{echtegrüße.txt}{example2}
+%\group_end:
+
+\group_begin:
+\pdfdict_put:nnn  {file/FileSpec} {AFRelationship}{/Source}
+\pdfdict_put:nnn  {file/FileSpec} {Desc}{(this~is~a~eps)}
+\pdffile_embed_file:nnn {testinput.txt}{some~text}{example3}
+
+\pdfdict_put:nnn  {file/FileSpec} {AFRelationship}{/Data}
+\pdfdict_put:nnn  {file/FileSpec} {Desc}{(this~is~a~text~file)}
+\pdffile_embed_stream:nnn {stream content} {stream.txt} {example4}
+
+
+
+\pdfcoredict_gput:nnx{Catalog/Names}{EmbeddedFiles}{\pdf_object_ref:n{example1}}
+%\pdfcoredict_gput:nnx{Catalog/Names}{EmbeddedFiles}{\pdf_object_ref:n{example2}}
+\pdfcoredict_gput:nnx{Catalog/Names}{EmbeddedFiles}{\pdf_object_ref:n{example3}}
+\pdfcoredict_gput:nnx{Catalog/Names}{EmbeddedFiles}{\pdf_object_ref:n{example4}}
+
+%\prop_show:N \g__pdffile_file_embed_sources_prop
+%\seq_show:N \g__pdf_backend_EmbeddedFiles_seq
+%\prop_show:N \g__pdf_backend_EmbeddedFiles_named_prop
+\group_end:
+\end{document}
+\RequirePackage{pdfresources}
+\DeclareDocumentMetaData{pdfversion=1.6}
 \ExplSyntaxOn
 \pdf_uncompress:
 \ExplSyntaxOff
+\documentclass{article}
+\usepackage{l3pdffile}
+\usepackage[customdriver=hgeneric-experimental]{hyperref}
+\hypersetup{pdfversion=1.6,pdfpagemode=UseAttachments}
 \usepackage{bookmark}
+
 \begin{document}
-\section{grüße Testing embedding and attaching files}
+\section{Testing embedding and attaching files}
 \ExplSyntaxOn
 %\pdftool_textstringlit_print:nN {xxxgrüße}\l_tmpa_str
 %\pdfextension outline goto name {Doc-Start}{\l_tmpa_str}
 \group_begin:
 \pdfdict_put:nnn  {file/FileSpec} {AFRelationship}{/Source}
-\pdfdict_put:nnn  {file/FileSpec} {Desc}{(this~is~a~eps)}
-%\pdfdict_show:n   {file/FileSpec}
-%\pdffile_embed:nn {example}{grüße.txt}
-%\pdffile_attach:n {example}
+\pdftool_textstringlit_print:nN {this~is~something~odd~with~öäü}\l_tmpa_str
+\pdfdict_put:nnx  {file/FileSpec} {Desc}{\l_tmpa_str}
+\pdffile_embed_file:nnn {testinput.txt}{grüße.txt}{example0}
 \group_end:
 
 \group_begin:
 \pdfdict_put:nnn  {file/FileSpec} {AFRelationship}{/Source}
 \pdfdict_put:nnn  {file/FileSpec} {Desc}{(this~is~a~eps)}
-
-\pdffile_embed_file:nnn {testinput.txt}{xxxxx.tex}{example1}
+\pdffile_embed_file:nnn {testinput.txt}{Some~txt~file}{example1}
 
 \pdfdict_put:nnn  {file/FileSpec} {AFRelationship}{/Data}
 \pdfdict_put:nnn  {file/FileSpec} {Desc}{(this~is~a~text~file)}
-\pdffile_embed_stream:nnn {stream text} {xxxxx.txt} {example2}
+\pdffile_embed_stream:nnn {stream content} {Some~stream} {example2}
+
 
-\prop_show:N \g__pdffile_file_embed_sources_prop
-\exp_args:Nx
-          \__pdf_backend_NamesEmbeddedFiles_add:n {\pdf_object_ref:n{example2}} 
-\exp_args:Nx
-          \__pdf_backend_NamesEmbeddedFiles_add:n {\pdf_object_ref:n{example1}} 
 
+\pdfcoredict_gput:nnx{Catalog/Names}{EmbeddedFiles}{\pdf_object_ref:n{example0}}
+\pdfcoredict_gput:nnx{Catalog/Names}{EmbeddedFiles}{\pdf_object_ref:n{example2}}
+\pdfcoredict_gput:nnx{Catalog/Names}{EmbeddedFiles}{\pdf_object_ref:n{example1}}
+
+\prop_show:N \g__pdffile_file_embed_sources_prop
 \seq_show:N \g__pdf_backend_EmbeddedFiles_seq
 \prop_show:N \g__pdf_backend_EmbeddedFiles_named_prop
-%\pdffile_attach:n {example1}
 \group_end:
 \end{document}
 %
+there is place for improvement here ;-)
 \group_begin:
 \pdfdict_put:nnn  {file/FileSpec} {AFRelationship}{/Data}
 \pdfdict_put:nnn  {file/FileSpec} {Desc}{(this~is~a~text~file)}
diff --git "a/experiments/gr\303\274\303\237e.txt" "b/experiments/gr\303\274\303\237e.txt"
index 8baef1b..2f782d9 100644
--- "a/experiments/gr\303\274\303\237e.txt"
+++ "b/experiments/gr\303\274\303\237e.txt"
@@ -1 +1,5 @@
-abc
+%% LaTeX2e file `grüße.txt'
+%% generated by the `filecontents' environment
+%% from source `embedfiles' on 2020/07/02.
+%%
+grüße
diff --git a/l3pdfcoredict.dtx b/l3pdfcoredict.dtx
index f4c7623..ea40e8e 100644
--- a/l3pdfcoredict.dtx
+++ b/l3pdfcoredict.dtx
@@ -440,6 +440,8 @@
 %                                         added to OCProperties/Configs.\\
 %    Catalog              & OutputIntents        & object reference\\
 %    Catalog              & Requirements         & object reference & PDF 1.7 \\
+%    Catalog/Names        & EmbeddedFiles        & object reference & This should reference a filespec dictionary. It will
+%                                                  attach the file to the file panel.  
 %   \end{tabularx}
 %
 % \end{documentation}
@@ -573,7 +575,6 @@
 %  \cs{@@_handler_gput:nnn} is the main command to fill the dictionaries.
 %  In simple cases it directly fill the property list, but if a handler exists
 %  this is called. It is important to use it only in places where this make sense.
-%  \cs{@@_put:nnn} is a simpler variant which only fills the property list.
 %
 %    \begin{macrocode}
 
@@ -1174,7 +1175,18 @@
   }
 %    \end{macrocode}
 % \end{macro}
-% % \paragraph{Building catalog entries: Names/EmbeddedFiles}
+% \paragraph{Building catalog entries: Names/EmbeddedFiles}
+% \begin{macro}{ Handler}
+% EmbeddedFiles is an array and needs a special handler to add values.
+%    \begin{macrocode}
+\pdfdict_gnew:n { Core/Catalog/Names }
+
+\cs_new_protected:cpn { @@_handler/Catalog/Names/EmbeddedFiles_gput:n } #1
+  {
+    \__pdf_backend_NamesEmbeddedFiles_add:n { #1 }
+  }
+%    \end{macrocode}
+% \end{macro}
 % The entry should only be added if there are actually embedded files.
 % This can be tested by checking the names_seq
 % \begin{macro}{\@@_/Catalog/Names/EmbeddedFiles_gpush:}
diff --git a/l3pdffile.dtx b/l3pdffile.dtx
index 5c36bef..f19eb0a 100644
--- a/l3pdffile.dtx
+++ b/l3pdffile.dtx
@@ -541,7 +541,8 @@
       {
         \tl_if_blank:nTF {#2}
           {
-            %error or use #3 instead??
+            %ignore, error or use #3 instead??
+            \msg_error:nnn { pdffile } { target-name-missing } { #3 }
           }
           {
             \prop_gput:Nnn
@@ -600,16 +601,16 @@
       }
   }
 
-\cs_new_protected:Npn \pdffile_attach:n #1% #1 name of filespec object, #2 in case the name must be retourned
- {
-   \@@_backend_object_if_exist:nTF { #1 }
-     {
-       \@@_file_check_attach_aux:n { #1 }
-     }
-     {
-       \msg_error:nnn { pdffile } { file-object-no-found } { #1 }
-     }
- }
+%\cs_new_protected:Npn \pdffile_attach:n #1% #1 name of filespec object, #2 in case the name must be retourned
+% {
+%   \@@_backend_object_if_exist:nTF { #1 }
+%     {
+%       \@@_file_check_attach_aux:n { #1 }
+%     }
+%     {
+%       \msg_error:nnn { pdffile } { file-object-no-found } { #1 }
+%     }
+% }
 
 %\cs_new_protected:Npn \pdffile_attach:n #1 % name of filespec object
 % {
diff --git a/testfiles-dvips/embedfile.pvt b/testfiles-dvips/embedfile.pvt
new file mode 100644
index 0000000..178d0f3
--- /dev/null
+++ b/testfiles-dvips/embedfile.pvt
@@ -0,0 +1,53 @@
+\input{regression-test}
+\RequirePackage{pdfresources}
+\DeclareDocumentMetaData{pdfversion=1.6}
+\documentclass{article}
+\usepackage{l3pdffile}
+\usepackage[customdriver=hgeneric-experimental]{hyperref}
+\hypersetup{pdfversion=1.6,pdfpagemode=UseAttachments}
+\usepackage{bookmark}
+\begin{filecontents}[overwrite]{grüße.txt}
+grüße
+\end{filecontents}
+\begin{document}
+\section{Testing embedding and attaching files}
+\ExplSyntaxOn
+%\pdftool_textstringlit_print:nN {xxxgrüße}\l_tmpa_str
+%\pdfextension outline goto name {Doc-Start}{\l_tmpa_str}
+\group_begin:
+\pdfdict_put:nnn  {file/FileSpec} {AFRelationship}{/Source}
+\pdftool_textstringlit_print:nN {this~is~something~odd~with~öäü}\l_tmpa_str
+\pdfdict_put:nnx  {file/FileSpec} {Desc}{\l_tmpa_str}
+\pdffile_embed_file:nnn {testinput.txt}{grüße.txt}{example1}
+\group_end:
+
+
+\group_begin:
+\pdfdict_put:nnn  {file/FileSpec} {AFRelationship}{/Source}
+\pdftool_textstringlit_print:nN {this~is~something~odd~with~öäü}\l_tmpa_str
+\pdfdict_put:nnx  {file/FileSpec} {Desc}{\l_tmpa_str}
+\pdfdict_put:nnx  {file/Params} {ModDate}{(D:20200422155851+02'00')}
+\pdffile_embed_file:nnn {grüße.txt}{echtegrüße.txt}{example2}
+\group_end:
+
+\group_begin:
+\pdfdict_put:nnn  {file/FileSpec} {AFRelationship}{/Source}
+\pdfdict_put:nnn  {file/FileSpec} {Desc}{(this~is~a~eps)}
+\pdffile_embed_file:nnn {testinput.txt}{Some~txt~file}{example3}
+
+\pdfdict_put:nnn  {file/FileSpec} {AFRelationship}{/Data}
+\pdfdict_put:nnn  {file/FileSpec} {Desc}{(this~is~a~text~file)}
+\pdffile_embed_stream:nnn {stream content} {Some~stream} {example4}
+
+
+
+\pdfcoredict_gput:nnx{Catalog/Names}{EmbeddedFiles}{\pdf_object_ref:n{example1}}
+\pdfcoredict_gput:nnx{Catalog/Names}{EmbeddedFiles}{\pdf_object_ref:n{example2}}
+\pdfcoredict_gput:nnx{Catalog/Names}{EmbeddedFiles}{\pdf_object_ref:n{example3}}
+\pdfcoredict_gput:nnx{Catalog/Names}{EmbeddedFiles}{\pdf_object_ref:n{example4}}
+
+%\prop_show:N \g__pdffile_file_embed_sources_prop
+%\seq_show:N \g__pdf_backend_EmbeddedFiles_seq
+%\prop_show:N \g__pdf_backend_EmbeddedFiles_named_prop
+\group_end:
+\end{document}
\ No newline at end of file
diff --git a/testfiles-dvips/embedfile.tpf b/testfiles-dvips/embedfile.tpf
new file mode 100644
index 0000000..a9f2b25
Binary files /dev/null and b/testfiles-dvips/embedfile.tpf differ
diff --git "a/experiments/gr\303\274\303\237e.txt" "b/testfiles-dvips/support/gr\303\274\303\237e.txt"
similarity index 100%
copy from "experiments/gr\303\274\303\237e.txt"
copy to "testfiles-dvips/support/gr\303\274\303\237e.txt"
diff --git a/experiments/testinput.txt b/testfiles-dvips/support/testinput.txt
similarity index 100%
copy from experiments/testinput.txt
copy to testfiles-dvips/support/testinput.txt
diff --git a/testfiles/embedfile.luatex.tpf b/testfiles/embedfile.luatex.tpf
new file mode 100644
index 0000000..93a9bbc
--- /dev/null
+++ b/testfiles/embedfile.luatex.tpf
@@ -0,0 +1,275 @@
+%PDF-1.6
+%ÌÕÁÔÅØÐÄÆ
+6 0 obj
+<< /Subtype /text#2Fplain/Type /EmbeddedFile /Params<</ModDate (D:20200422155851+02'00') /Size 5 /CheckSum (C13B6AFECF97EA6B38D21A8F5167FA1E) >> /Length 5 >>          
+stream
+abc
+endstream
+endobj
+7 0 obj
+<< /Type /FileSpec /AFRelationship /Source /Desc (\376\377\000t\000h\000i\000s\000\040\000i\000s\000\040\000s\000o\000m\000e\000t\000h\000i\000n\000g\000\040\000o\000d\000d\000\040\000w\000i\000t\000h\000\040\000\366\000\344\000\374) /F <FEFF0067007200FC00DF0065002E007400780074> /UF <FEFF0067007200FC00DF0065002E007400780074> /EF<</F 6 0 R/UF 6 0 R>> >>
+endobj
+8 0 obj
+<< /Subtype /text#2Fplain/Type /EmbeddedFile /Params<</ModDate (D:20200422155851+02'00') /Size 154 /CheckSum (1122815BAB4ED80450B89B0BB42C92F0) >> /Length 154 >>        
+stream
+%% LaTeX2e file `gr^^c3^^bc^^c3^^9fe.txt'
+%% generated by the `filecontents' environment
+%% from source `embedfile' on 2016/05/20.
+%%
+gr^^c3^^bc^^c3^^9fe
+endstream
+endobj
+9 0 obj
+<< /Type /FileSpec /AFRelationship /Source /Desc (\376\377\000t\000h\000i\000s\000\040\000i\000s\000\040\000s\000o\000m\000e\000t\000h\000i\000n\000g\000\040\000o\000d\000d\000\040\000w\000i\000t\000h\000\040\000\366\000\344\000\374) /F <FEFF006500630068007400650067007200FC00DF0065002E007400780074> /UF <FEFF006500630068007400650067007200FC00DF0065002E007400780074> /EF<</F 8 0 R/UF 8 0 R>> >>
+endobj
+10 0 obj
+<< /Subtype /text#2Fplain/Type /EmbeddedFile /Params<</ModDate (D:20200422155851+02'00') /Size 5 /CheckSum (C13B6AFECF97EA6B38D21A8F5167FA1E) >> /Length 5 >>          
+stream
+abc
+endstream
+endobj
+11 0 obj
+<< /Type /FileSpec /AFRelationship /Source /Desc (this is a eps) /F <FEFF0053006F006D00650020007400780074002000660069006C0065> /UF <FEFF0053006F006D00650020007400780074002000660069006C0065> /EF<</F 10 0 R/UF 10 0 R>> >>
+endobj
+12 0 obj
+<< /Type /EmbeddedFile  /Length 13 >>         
+stream
+streamcontent
+endstream
+endobj
+13 0 obj
+<< /Type /FileSpec /AFRelationship /Data /Desc (this is a text file) /F <FEFF0053006F006D0065002000730074007200650061006D> /UF <FEFF0053006F006D0065002000730074007200650061006D> /EF<</F 12 0 R/UF 12 0 R>> >>
+endobj
+15 0 obj
+<< /Length 290 >>        
+stream
+BT
+/F27 14.3462 Tf
+1 0 0 1 133.768 707.045 Tm [<0052>-1000<0068>94<0032006200690042004D003B>-375<0032004B>31<0023>-31<0032002F002F0042004D003B>-375<001C004D002F>-375<001C00690069001C002B>31<003F0042004D003B>-375<007D004800320062>]TJ
+/F25 9.96264 Tf
+1 0 0 1 303.133 139.255 Tm [<0052>]TJ
+ET
+endstream
+endobj
+5 0 obj
+<< /Type /Page /Contents 15 0 R /Resources 14 0 R /MediaBox [ 0 0 595.276 841.89 ] /Parent 21 0 R >>
+endobj
+16 0 obj
+<< /D [ 5 0 R /XYZ 132.768 754.95 null ] >>
+endobj
+17 0 obj
+<< /D [ 5 0 R /XYZ 133.768 717.088 null ] >>
+endobj
+18 0 obj
+<< /D [ 5 0 R /XYZ 133.768 717.088 null ] >>
+endobj
+14 0 obj
+<< /Font << /F27 19 0 R /F25 20 0 R >> /ProcSet [ /PDF /Text ] >>
+endobj
+22 0 obj
+<< /Names[(l3ef0001) 7 0 R (l3ef0002) 9 0 R (l3ef0003) 11 0 R (l3ef0004) 13 0 R] >>
+endobj
+23 0 obj
+<< /S /GoTo /D (section.1) >>
+endobj
+25 0 obj
+(\376\377\000T\000e\000s\000t\000i\000n\000g\000\040\000e\000m\000b\000e\000d\000d\000i\000n\000g\000\040\000a\000n\000d\000\040\000a\000t\000t\000a\000c\000h\000i\000n\000g\000\040\000f\000i\000l\000e\000s)
+endobj
+26 0 obj
+[ 82 [ 500 ] ]
+endobj
+28 0 obj
+<< /Length 11 >>         
+[BINARY STREAM]
+endobj
+29 0 obj
+<< /Subtype /CIDFontType0C /Length 574 >>        
+[BINARY STREAM]
+endobj
+27 0 obj
+<< /Type /FontDescriptor /FontName /JFRMQG+LMRoman10-Regular /Flags 4 /FontBBox [ -430 -290 1417 1127 ] /Ascent 1127 /CapHeight 683 /Descent -290 /ItalicAngle 0 /StemV 93 /XHeight 431 /FontFile3 29 0 R /CIDSet 28 0 R >>
+endobj
+30 0 obj
+<< /Length 692 >>        
+stream
+%!PS-Adobe-3.0 Resource-CMap
+%%DocumentNeededResources: ProcSet (CIDInit)
+%%IncludeResource: ProcSet (CIDInit)
+%%BeginResource: CMap (TeX-JFRMQG-LMRoman10-Regular-0)
+%%Title: (TeX-JFRMQG-LMRoman10-Regular-0 TeX JFRMQG-LMRoman10-Regular 0)
+%%Version: 1.000
+%%EndComments
+/CIDInit /ProcSet findresource begin
+12 dict begin
+begincmap
+/CIDSystemInfo
+<< /Registry (TeX)
+/Ordering (JFRMQG-LMRoman10-Regular)
+/Supplement 0
+>> def
+/CMapName /TeX-Identity-JFRMQG-LMRoman10-Regular def
+/CMapType 2 def
+1 begincodespacerange
+<0000> <FFFF>
+endcodespacerange
+0 beginbfrange
+endbfrange
+1 beginbfchar
+<0052> <0031>
+endbfchar
+endcmap
+CMapName currentdict /CMap defineresource pop
+end
+end
+%%EndResource
+%%EOF
+endstream
+endobj
+20 0 obj
+<< /Type /Font /Subtype /Type0 /Encoding /Identity-H /BaseFont /JFRMQG+LMRoman10-Regular /DescendantFonts [ 31 0 R ] /ToUnicode 30 0 R >>
+endobj
+31 0 obj
+<< /Type /Font /Subtype /CIDFontType0 /BaseFont /JFRMQG+LMRoman10-Regular /FontDescriptor 27 0 R /W 26 0 R /CIDSystemInfo << /Registry (Adobe) /Ordering (Identity) /Supplement 0 >> >>
+endobj
+32 0 obj
+[ 28 [ 547 ] 35 [ 625 ] 43 [ 500 ] 47 [ 625 ] 50 [ 513 ] 59 [ 563 ] 63 [ 625 ] 66 [ 313 ] 72 [ 313 ] 75 [ 938 ] 77 [ 625 ] 82 [ 563 ] 98 [ 444 ] 104 [ 782 438 ] 125 [ 625 ] ]
+endobj
+34 0 obj
+<< /Length 16 >>         
+[BINARY STREAM]
+endobj
+35 0 obj
+<< /Subtype /CIDFontType0C /Length 2380 >>       
+[BINARY STREAM]
+endobj
+33 0 obj
+<< /Type /FontDescriptor /FontName /DROTBL+LMRoman12-Bold /Flags 4 /FontBBox [ -476 -289 1577 1137 ] /Ascent 1137 /CapHeight 686 /Descent -289 /ItalicAngle 0 /StemV 104 /XHeight 444 /FontFile3 35 0 R /CIDSet 34 0 R >>
+endobj
+36 0 obj
+<< /Length 892 >>        
+stream
+%!PS-Adobe-3.0 Resource-CMap
+%%DocumentNeededResources: ProcSet (CIDInit)
+%%IncludeResource: ProcSet (CIDInit)
+%%BeginResource: CMap (TeX-DROTBL-LMRoman12-Bold-0)
+%%Title: (TeX-DROTBL-LMRoman12-Bold-0 TeX DROTBL-LMRoman12-Bold 0)
+%%Version: 1.000
+%%EndComments
+/CIDInit /ProcSet findresource begin
+12 dict begin
+begincmap
+/CIDSystemInfo
+<< /Registry (TeX)
+/Ordering (DROTBL-LMRoman12-Bold)
+/Supplement 0
+>> def
+/CMapName /TeX-Identity-DROTBL-LMRoman12-Bold def
+/CMapType 2 def
+1 begincodespacerange
+<0000> <FFFF>
+endcodespacerange
+0 beginbfrange
+endbfrange
+16 beginbfchar
+<001C> <0061>
+<0023> <0062>
+<002B> <0063>
+<002F> <0064>
+<0032> <0065>
+<003B> <0067>
+<003F> <0068>
+<0042> <0069>
+<0048> <006C>
+<004B> <006D>
+<004D> <006E>
+<0052> <0031>
+<0062> <0073>
+<0068> <0054>
+<0069> <0074>
+<007D> <00660069>
+endbfchar
+endcmap
+CMapName currentdict /CMap defineresource pop
+end
+end
+%%EndResource
+%%EOF
+endstream
+endobj
+19 0 obj
+<< /Type /Font /Subtype /Type0 /Encoding /Identity-H /BaseFont /DROTBL+LMRoman12-Bold /DescendantFonts [ 37 0 R ] /ToUnicode 36 0 R >>
+endobj
+37 0 obj
+<< /Type /Font /Subtype /CIDFontType0 /BaseFont /DROTBL+LMRoman12-Bold /FontDescriptor 33 0 R /W 32 0 R /CIDSystemInfo << /Registry (Adobe) /Ordering (Identity) /Supplement 0 >> >>
+endobj
+21 0 obj
+<< /Type /Pages  /Count 1 /Kids [ 5 0 R ] >>
+endobj
+38 0 obj
+<< /Type /Outlines /First 24 0 R /Last 24 0 R /Count 1 >>
+endobj
+24 0 obj
+<< /Title 25 0 R /A 23 0 R /Parent 38 0 R >>
+endobj
+39 0 obj
+<< /Names [ (Doc-Start) 17 0 R (page.1) 16 0 R (section.1) 18 0 R ] /Limits [ (Doc-Start) (section.1) ] >>
+endobj
+40 0 obj
+<< /Dests 39 0 R /EmbeddedFiles 22 0 R >>
+endobj
+41 0 obj
+<< /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>/Author <FEFF>/Title <FEFF>/Subject <FEFF> /Trapped /False >>
+endobj
+xref
+0 43
+0000000001 65535 f 
+0000000002 00000 f 
+0000000003 00000 f 
+0000000004 00000 f 
+0000000000 00000 f 
+0000002474 00000 n 
+0000000020 00000 n 
+0000000226 00000 n 
+0000000596 00000 n 
+0000000953 00000 n 
+0000001363 00000 n 
+0000001570 00000 n 
+0000001806 00000 n 
+0000001900 00000 n 
+0000002772 00000 n 
+0000002124 00000 n 
+0000002590 00000 n 
+0000002650 00000 n 
+0000002711 00000 n 
+0000009244 00000 n 
+0000004973 00000 n 
+0000009592 00000 n 
+0000002854 00000 n 
+0000002954 00000 n 
+0000009727 00000 n 
+0000003000 00000 n 
+0000003225 00000 n 
+0000003985 00000 n 
+0000003256 00000 n 
+0000003327 00000 n 
+0000004221 00000 n 
+0000005127 00000 n 
+0000005327 00000 n 
+0000008058 00000 n 
+0000005518 00000 n 
+0000005594 00000 n 
+0000008292 00000 n 
+0000009395 00000 n 
+0000009653 00000 n 
+0000009788 00000 n 
+0000009911 00000 n 
+0000009969 00000 n 
+0000010133 00000 n 
+trailer
+<< /Size 43 /Root 41 0 R /Info 42 0 R >>
+startxref
+10323
+%%EOF
diff --git a/testfiles/embedfile.pvt b/testfiles/embedfile.pvt
new file mode 100644
index 0000000..178d0f3
--- /dev/null
+++ b/testfiles/embedfile.pvt
@@ -0,0 +1,53 @@
+\input{regression-test}
+\RequirePackage{pdfresources}
+\DeclareDocumentMetaData{pdfversion=1.6}
+\documentclass{article}
+\usepackage{l3pdffile}
+\usepackage[customdriver=hgeneric-experimental]{hyperref}
+\hypersetup{pdfversion=1.6,pdfpagemode=UseAttachments}
+\usepackage{bookmark}
+\begin{filecontents}[overwrite]{grüße.txt}
+grüße
+\end{filecontents}
+\begin{document}
+\section{Testing embedding and attaching files}
+\ExplSyntaxOn
+%\pdftool_textstringlit_print:nN {xxxgrüße}\l_tmpa_str
+%\pdfextension outline goto name {Doc-Start}{\l_tmpa_str}
+\group_begin:
+\pdfdict_put:nnn  {file/FileSpec} {AFRelationship}{/Source}
+\pdftool_textstringlit_print:nN {this~is~something~odd~with~öäü}\l_tmpa_str
+\pdfdict_put:nnx  {file/FileSpec} {Desc}{\l_tmpa_str}
+\pdffile_embed_file:nnn {testinput.txt}{grüße.txt}{example1}
+\group_end:
+
+
+\group_begin:
+\pdfdict_put:nnn  {file/FileSpec} {AFRelationship}{/Source}
+\pdftool_textstringlit_print:nN {this~is~something~odd~with~öäü}\l_tmpa_str
+\pdfdict_put:nnx  {file/FileSpec} {Desc}{\l_tmpa_str}
+\pdfdict_put:nnx  {file/Params} {ModDate}{(D:20200422155851+02'00')}
+\pdffile_embed_file:nnn {grüße.txt}{echtegrüße.txt}{example2}
+\group_end:
+
+\group_begin:
+\pdfdict_put:nnn  {file/FileSpec} {AFRelationship}{/Source}
+\pdfdict_put:nnn  {file/FileSpec} {Desc}{(this~is~a~eps)}
+\pdffile_embed_file:nnn {testinput.txt}{Some~txt~file}{example3}
+
+\pdfdict_put:nnn  {file/FileSpec} {AFRelationship}{/Data}
+\pdfdict_put:nnn  {file/FileSpec} {Desc}{(this~is~a~text~file)}
+\pdffile_embed_stream:nnn {stream content} {Some~stream} {example4}
+
+
+
+\pdfcoredict_gput:nnx{Catalog/Names}{EmbeddedFiles}{\pdf_object_ref:n{example1}}
+\pdfcoredict_gput:nnx{Catalog/Names}{EmbeddedFiles}{\pdf_object_ref:n{example2}}
+\pdfcoredict_gput:nnx{Catalog/Names}{EmbeddedFiles}{\pdf_object_ref:n{example3}}
+\pdfcoredict_gput:nnx{Catalog/Names}{EmbeddedFiles}{\pdf_object_ref:n{example4}}
+
+%\prop_show:N \g__pdffile_file_embed_sources_prop
+%\seq_show:N \g__pdf_backend_EmbeddedFiles_seq
+%\prop_show:N \g__pdf_backend_EmbeddedFiles_named_prop
+\group_end:
+\end{document}
\ No newline at end of file
diff --git a/testfiles/embedfile.tpf b/testfiles/embedfile.tpf
new file mode 100644
index 0000000..ee9bcf6
--- /dev/null
+++ b/testfiles/embedfile.tpf
@@ -0,0 +1,277 @@
+%PDF-1.6
+%ÐÔÅØ
+6 0 obj
+<<
+/Subtype /text#2Fplain/Type /EmbeddedFile /Params<</ModDate (D:20200422135851Z) /Size 5 /CheckSum (C13B6AFECF97EA6B38D21A8F5167FA1E) >>
+/Length 5         
+>>
+stream
+abc
+endstream
+endobj
+7 0 obj
+<< /Type /FileSpec /AFRelationship /Source /Desc (\376\377\000t\000h\000i\000s\000\040\000i\000s\000\040\000s\000o\000m\000e\000t\000h\000i\000n\000g\000\040\000o\000d\000d\000\040\000w\000i\000t\000h\000\040\000\366\000\344\000\374) /F <FEFF0067007200FC00DF0065002E007400780074> /UF <FEFF0067007200FC00DF0065002E007400780074> /EF<</F 6 0 R/UF 6 0 R>> >>
+endobj
+8 0 obj
+<<
+/Subtype /text#2Fplain/Type /EmbeddedFile /Params<</ModDate (D:20200422155851+02'00') /Size 154 /CheckSum (1122815BAB4ED80450B89B0BB42C92F0) >>
+/Length 154       
+>>
+stream
+%% LaTeX2e file `gr^^c3^^bc^^c3^^9fe.txt'
+%% generated by the `filecontents' environment
+%% from source `embedfile' on 2016/05/20.
+%%
+gr^^c3^^bc^^c3^^9fe
+endstream
+endobj
+9 0 obj
+<< /Type /FileSpec /AFRelationship /Source /Desc (\376\377\000t\000h\000i\000s\000\040\000i\000s\000\040\000s\000o\000m\000e\000t\000h\000i\000n\000g\000\040\000o\000d\000d\000\040\000w\000i\000t\000h\000\040\000\366\000\344\000\374) /F <FEFF006500630068007400650067007200FC00DF0065002E007400780074> /UF <FEFF006500630068007400650067007200FC00DF0065002E007400780074> /EF<</F 8 0 R/UF 8 0 R>> >>
+endobj
+10 0 obj
+<<
+/Subtype /text#2Fplain/Type /EmbeddedFile /Params<</ModDate (D:20200422135851Z) /Size 5 /CheckSum (C13B6AFECF97EA6B38D21A8F5167FA1E) >>
+/Length 5         
+>>
+stream
+abc
+endstream
+endobj
+11 0 obj
+<< /Type /FileSpec /AFRelationship /Source /Desc (this is a eps) /F <FEFF0053006F006D00650020007400780074002000660069006C0065> /UF <FEFF0053006F006D00650020007400780074002000660069006C0065> /EF<</F 10 0 R/UF 10 0 R>> >>
+endobj
+12 0 obj
+<<
+/Type /EmbeddedFile 
+/Length 13        
+>>
+stream
+streamcontent
+endstream
+endobj
+13 0 obj
+<< /Type /FileSpec /AFRelationship /Data /Desc (this is a text file) /F <FEFF0053006F006D0065002000730074007200650061006D> /UF <FEFF0053006F006D0065002000730074007200650061006D> /EF<</F 12 0 R/UF 12 0 R>> >>
+endobj
+15 0 obj
+<<
+/Length 172       
+>>
+stream
+BT
+/F26 14.3462 Tf 133.768 707.125 Td [(1)-1125(T)94(esting)-375(em)31(b)-31(edding)-375(and)-375(attac)31(hing)-375(\014les)]TJ/F8 9.9626 Tf 169.365 -567.87 Td [(1)]TJ
+ET
+endstream
+endobj
+5 0 obj
+<<
+/Type /Page
+/Contents 15 0 R
+/Resources 14 0 R
+/MediaBox [0 0 595.276 841.89]
+/Parent 21 0 R
+>>
+endobj
+16 0 obj
+<<
+/D [5 0 R /XYZ 132.768 754.95 null]
+>>
+endobj
+17 0 obj
+<<
+/D [5 0 R /XYZ 133.768 717.088 null]
+>>
+endobj
+18 0 obj
+<<
+/D [5 0 R /XYZ 133.768 717.088 null]
+>>
+endobj
+14 0 obj
+<<
+/Font << /F26 19 0 R /F8 20 0 R >>
+/ProcSet [ /PDF /Text ]
+>>
+endobj
+22 0 obj
+<< /Names[(l3ef0001) 7 0 R (l3ef0002) 9 0 R (l3ef0003) 11 0 R (l3ef0004) 13 0 R] >>
+endobj
+23 0 obj
+<< /S /GoTo /D (section.1) >>
+endobj
+25 0 obj
+(\376\377\000T\000e\000s\000t\000i\000n\000g\000\040\000e\000m\000b\000e\000d\000d\000i\000n\000g\000\040\000a\000n\000d\000\040\000a\000t\000t\000a\000c\000h\000i\000n\000g\000\040\000f\000i\000l\000e\000s)
+endobj
+26 0 obj
+[500]
+endobj
+27 0 obj
+[625 625 937.5 937.5 312.5 343.7 562.5 562.5 562.5 562.5 562.5 849.5 500 574.1 812.5 875 562.5 1018.5 1143.5 875 312.5 342.6 581 937.5 562.5 937.5 875 312.5 437.5 437.5 562.5 875 312.5 375 312.5 562.5 562.5 562.5 562.5 562.5 562.5 562.5 562.5 562.5 562.5 562.5 312.5 312.5 342.6 875 531.2 531.2 875 849.5 799.8 812.5 862.3 738.4 707.2 884.3 879.6 419 581 880.8 675.9 1067.1 879.6 844.9 768.5 844.9 839.1 625 782.4 864.6 849.5 1162 849.5 849.5 687.5 312.5 581 312.5 562.5 312.5 312.5 546.9 625 500 625 513.3 343.7 562.5 625 312.5 343.7 593.7 312.5 937.5 625 562.5 625 593.7 459.5 443.8 437.5]
+endobj
+28 0 obj
+<<
+/Length1 1592
+/Length2 8504
+/Length3 0
+/Length 10096     
+>>
+[BINARY STREAM]
+endobj
+29 0 obj
+<<
+/Type /FontDescriptor
+/FontName /HQFPRJ+CMBX12
+/Flags 4
+/FontBBox [-53 -251 1139 750]
+/Ascent 694
+/CapHeight 686
+/Descent -194
+/ItalicAngle 0
+/StemV 109
+/XHeight 444
+/CharSet (/T/a/b/c/d/e/fi/g/h/i/l/m/n/one/s/t)
+/FontFile 28 0 R
+>>
+endobj
+30 0 obj
+<<
+/Length1 1365
+/Length2 5943
+/Length3 0
+/Length 7308      
+>>
+[BINARY STREAM]
+endobj
+31 0 obj
+<<
+/Type /FontDescriptor
+/FontName /SDXKYB+CMR10
+/Flags 4
+/FontBBox [-40 -250 1009 750]
+/Ascent 694
+/CapHeight 683
+/Descent -194
+/ItalicAngle 0
+/StemV 69
+/XHeight 431
+/CharSet (/one)
+/FontFile 30 0 R
+>>
+endobj
+19 0 obj
+<<
+/Type /Font
+/Subtype /Type1
+/BaseFont /HQFPRJ+CMBX12
+/FontDescriptor 29 0 R
+/FirstChar 12
+/LastChar 116
+/Widths 27 0 R
+>>
+endobj
+20 0 obj
+<<
+/Type /Font
+/Subtype /Type1
+/BaseFont /SDXKYB+CMR10
+/FontDescriptor 31 0 R
+/FirstChar 49
+/LastChar 49
+/Widths 26 0 R
+>>
+endobj
+21 0 obj
+<<
+/Type /Pages
+/Count 1
+/Kids [5 0 R]
+>>
+endobj
+32 0 obj
+<<
+/Type /Outlines
+/First 24 0 R
+/Last 24 0 R
+/Count 1
+>>
+endobj
+24 0 obj
+<<
+/Title 25 0 R
+/A 23 0 R
+/Parent 32 0 R
+>>
+endobj
+33 0 obj
+<<
+/Names [(Doc-Start) 17 0 R (page.1) 16 0 R (section.1) 18 0 R]
+/Limits [(Doc-Start) (section.1)]
+>>
+endobj
+34 0 obj
+<<
+/Dests 33 0 R
+/EmbeddedFiles 22 0 R
+>>
+endobj
+35 0 obj
+<<
+/Type /Catalog
+/Pages 21 0 R
+/Outlines 32 0 R
+/Names 34 0 R
+/PageMode /UseAttachments/OpenAction [5 0 R /Fit]/PageLabels <</Nums[0<</S/D>>]>>
+>>
+endobj
+36 0 obj
+<<
+/Producer (pdfTeX)/Creator <FEFF004C006100540065005800200077006900740068002000680079007000650072007200650066>/Author <FEFF>/Title <FEFF>/Subject <FEFF>
+/Trapped /False
+>>
+endobj
+xref
+0 37
+0000000001 65535 f 
+0000000002 00000 f 
+0000000003 00000 f 
+0000000004 00000 f 
+0000000000 00000 f 
+0000002334 00000 n 
+0000000015 00000 n 
+0000000214 00000 n 
+0000000584 00000 n 
+0000000940 00000 n 
+0000001350 00000 n 
+0000001550 00000 n 
+0000001786 00000 n 
+0000001879 00000 n 
+0000002624 00000 n 
+0000002103 00000 n 
+0000002448 00000 n 
+0000002506 00000 n 
+0000002565 00000 n 
+0000021776 00000 n 
+0000021917 00000 n 
+0000022056 00000 n 
+0000002705 00000 n 
+0000002805 00000 n 
+0000022188 00000 n 
+0000002851 00000 n 
+0000003075 00000 n 
+0000003097 00000 n 
+0000003705 00000 n 
+0000013899 00000 n 
+0000014151 00000 n 
+0000021557 00000 n 
+0000022114 00000 n 
+0000022249 00000 n 
+0000022368 00000 n 
+0000022426 00000 n 
+0000022590 00000 n 
+trailer
+<< /Size 37
+/Root 35 0 R
+/Info 36 0 R
+ >>
+startxref
+22780
+%%EOF
diff --git a/testfiles/embedfile.xetex.tpf b/testfiles/embedfile.xetex.tpf
new file mode 100644
index 0000000..f4cd4b1
--- /dev/null
+++ b/testfiles/embedfile.xetex.tpf
@@ -0,0 +1,255 @@
+%PDF-1.6
+%äðíø
+17 0 obj
+<</Length 301>>
+stream
+ q 1 0 0 1 72 769.89 cm BT /F1 14.3462 Tf 61.768 -62.844 Td[<0052>-1000<0068>93<0032006200690042004d003b>-374<0032004b>30<0023>-30<0032002f002f0042004d003b>-375<001c004d002f>-375<001c00690069001c002b>30<003f0042004d003b>-374<007d004800320062>]TJ ET BT /F2 9.9626 Tf 231.133 -630.635 Td[<0052>]TJ ET Q
+endstream
+endobj
+18 0 obj
+<</Font<</F1 5 0 R/F2 11 0 R>>/ProcSet[/PDF/Text/ImageC/ImageB/ImageI]>>
+endobj
+6 0 obj
+<</Subtype/text#2fplain/Type/EmbeddedFile/Params<</ModDate(D:20200422135851Z)/Size
+5/CheckSum(C13B6AFECF97EA6B38D21A8F5167FA1E)>>/Length 5>>
+stream
+abc
+endstream
+endobj
+12 0 obj
+<</Type/FileSpec/AFRelationship/Source/Desc<feff007400680069007300200069007300200073006f006d0065007400680069006e00670020006f0064006400200077006900740068002000f600e400fc>/F<feff0067007200fc00df0065002e007400780074>/UF<feff0067007200fc00df0065002e007400780074>/EF<</F
+6 0 R/UF 6 0 R>>>>
+endobj
+7 0 obj
+<</Subtype/text#2fplain/Type/EmbeddedFile/Params<</ModDate(D:20200422155851+02'00')/Size
+130/CheckSum(470884FC33837700C84D741348D21703)>>/Length 130>>
+stream
+%% LaTeX2e file `grüße.txt'
+%% generated by the `filecontents' environment
+%% from source `embedfile' on 2016/05/20.
+%%
+grüße
+endstream
+endobj
+13 0 obj
+<</Type/FileSpec/AFRelationship/Source/Desc<feff007400680069007300200069007300200073006f006d0065007400680069006e00670020006f0064006400200077006900740068002000f600e400fc>/F<feff006500630068007400650067007200fc00df0065002e007400780074>/UF<feff006500630068007400650067007200fc00df0065002e007400780074>/EF<</F
+7 0 R/UF 7 0 R>>>>
+endobj
+8 0 obj
+<</Subtype/text#2fplain/Type/EmbeddedFile/Params<</ModDate(D:20200422135851Z)/Size
+5/CheckSum(C13B6AFECF97EA6B38D21A8F5167FA1E)>>/Length 5>>
+stream
+abc
+endstream
+endobj
+14 0 obj
+<</Type/FileSpec/AFRelationship/Source/Desc(this is a eps)/F<feff0053006f006d00650020007400780074002000660069006c0065>/UF<feff0053006f006d00650020007400780074002000660069006c0065>/EF<</F
+8 0 R/UF 8 0 R>>>>
+endobj
+9 0 obj
+<</Type/EmbeddedFile/Length 13>>
+stream
+streamcontent
+endstream
+endobj
+15 0 obj
+<</Type/FileSpec/AFRelationship/Data/Desc(this is a text file)/F<feff0053006f006d0065002000730074007200650061006d>/UF<feff0053006f006d0065002000730074007200650061006d>/EF<</F
+9 0 R/UF 9 0 R>>>>
+endobj
+16 0 obj
+<</Names[(l3ef0001)12 0 R(l3ef0002)13 0 R(l3ef0003)14 0 R(l3ef0004)15 0 R]>>
+endobj
+22 0 obj
+<</Names[(Doc-Start)19 0 R(page.1)20 0 R(section.1)21 0 R]>>
+endobj
+19 0 obj
+[3 0 R/XYZ 133.77 717.09 null]
+endobj
+20 0 obj
+[3 0 R/XYZ 132.77 754.95 null]
+endobj
+21 0 obj
+[3 0 R/XYZ 133.77 717.09 null]
+endobj
+23 0 obj
+<</EmbeddedFiles 16 0 R/Dests 22 0 R>>
+endobj
+25 0 obj
+<</Title<feff00540065007300740069006e006700200065006d00620065006400640069006e006700200061006e006400200061007400740061006300680069006e0067002000660069006c00650073>/A<</S/GoTo/D(section.1)>>/Parent
+24 0 R>>
+endobj
+24 0 obj
+<</First 25 0 R/Last 25 0 R/Count 1>>
+endobj
+3 0 obj
+<</Resources 18 0 R/Type/Page/Parent 26 0 R/Contents[17 0 R]>>
+endobj
+26 0 obj
+<</Type/Pages/Count 1/Kids[3 0 R]/MediaBox[0 0 595.28 841.89]>>
+endobj
+2 0 obj
+<</Creator<feff004c006100540065005800200077006900740068002000680079007000650072007200650066>/Producer(xdvipdfmx)/Author<feff>/Title<feff>/Subject<feff>/CreationDate(D:20160520090000-00'00')>>
+endobj
+1 0 obj
+<</PageMode/UseAttachments/OpenAction[3 0 R/Fit]/Names 23 0 R/Outlines 24 0 R/Pages
+26 0 R/Type/Catalog>>
+endobj
+27 0 obj
+<</Length 568>>
+stream
+/CIDInit /ProcSet findresource begin
+12 dict begin
+begincmap
+/CMapName /EXQIVM+LMRoman12-Bold-UTF16 def
+/CMapType 2 def
+/CIDSystemInfo <<
+  /Registry (Adobe)
+  /Ordering (UCS)
+  /Supplement 0
+>> def
+1 begincodespacerange
+<0000> <FFFF>
+endcodespacerange
+16 beginbfchar
+<001C> <0061>
+<0023> <0062>
+<002B> <0063>
+<002F> <0064>
+<0032> <0065>
+<003B> <0067>
+<003F> <0068>
+<0042> <0069>
+<0048> <006C>
+<004B> <006D>
+<004D> <006E>
+<0052> <0031>
+<0062> <0073>
+<0068> <0054>
+<0069> <0074>
+<007D> <00660069>
+endbfchar
+endcmap
+CMapName currentdict /CMap defineresource pop
+end
+end
+endstream
+endobj
+28 0 obj
+<</Length 356>>
+stream
+/CIDInit /ProcSet findresource begin
+12 dict begin
+begincmap
+/CMapName /XUUPUX+LMRoman10-Regular-UTF16 def
+/CMapType 2 def
+/CIDSystemInfo <<
+  /Registry (Adobe)
+  /Ordering (UCS)
+  /Supplement 0
+>> def
+1 begincodespacerange
+<0000> <FFFF>
+endcodespacerange
+1 beginbfchar
+<0052> <0031>
+endbfchar
+endcmap
+CMapName currentdict /CMap defineresource pop
+end
+end
+endstream
+endobj
+30 0 obj
+<</Subtype/CIDFontType0C/Length 2350>>
+[BINARY STREAM]
+endobj
+31 0 obj
+[28[547]35[625]43[500]47[625]50[513]59[563]63[625]66[313]72[313]75[938]77[625]82[563]98[444]104[782
+438]125[625]]
+endobj
+32 0 obj
+<</Length 16>>
+[BINARY STREAM]
+endobj
+4 0 obj
+<</Type/Font/Subtype/CIDFontType0/BaseFont/EXQIVM+LMRoman12-Bold/CIDSystemInfo<</Registry(Adobe)/Ordering(Identity)/Supplement
+0>>/FontDescriptor 29 0 R/DW 280/W 31 0 R>>
+endobj
+29 0 obj
+<</Type/FontDescriptor/Ascent 806/Descent -194/StemV 109/CapHeight 806/AvgWidth 618/FontBBox[-476
+-289 1577 1137]/ItalicAngle 0/Flags 262150/Style<</Panose<000000000800000000000000>>>/FontName/EXQIVM+LMRoman12-Bold/FontFile3
+30 0 R/CIDSet 32 0 R>>
+endobj
+34 0 obj
+<</Subtype/CIDFontType0C/Length 548>>
+[BINARY STREAM]
+endobj
+35 0 obj
+[82[500]]
+endobj
+36 0 obj
+<</Length 11>>
+[BINARY STREAM]
+endobj
+10 0 obj
+<</Type/Font/Subtype/CIDFontType0/BaseFont/XUUPUX+LMRoman10-Regular/CIDSystemInfo<</Registry(Adobe)/Ordering(Identity)/Supplement
+0>>/FontDescriptor 33 0 R/DW 280/W 35 0 R>>
+endobj
+33 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/XUUPUX+LMRoman10-Regular/FontFile3
+34 0 R/CIDSet 36 0 R>>
+endobj
+5 0 obj
+<</Type/Font/Subtype/Type0/BaseFont/EXQIVM+LMRoman12-Bold-Identity-H/Encoding/Identity-H/DescendantFonts[4 0 R]/ToUnicode
+27 0 R>>
+endobj
+11 0 obj
+<</Type/Font/Subtype/Type0/BaseFont/XUUPUX+LMRoman10-Regular-Identity-H/Encoding/Identity-H/DescendantFonts[10 0 R]/ToUnicode
+28 0 R>>
+endobj
+xref
+0 37
+0000000000 65535 f 
+0000003286 00000 n 
+0000003079 00000 n 
+0000002921 00000 n 
+0000007049 00000 n 
+0000008656 00000 n 
+0000000455 00000 n 
+0000000935 00000 n 
+0000001590 00000 n 
+0000001991 00000 n 
+0000008205 00000 n 
+0000008802 00000 n 
+0000000634 00000 n 
+0000001249 00000 n 
+0000001769 00000 n 
+0000002070 00000 n 
+0000002280 00000 n 
+0000000015 00000 n 
+0000000366 00000 n 
+0000002450 00000 n 
+0000002497 00000 n 
+0000002544 00000 n 
+0000002373 00000 n 
+0000002591 00000 n 
+0000002867 00000 n 
+0000002646 00000 n 
+0000002999 00000 n 
+0000003407 00000 n 
+0000004025 00000 n 
+0000007235 00000 n 
+0000004431 00000 n 
+0000006854 00000 n 
+0000006984 00000 n 
+0000008395 00000 n 
+0000007499 00000 n 
+0000008119 00000 n 
+0000008145 00000 n 
+trailer
+<</Root 1 0 R/Info 2 0 R/ID[<ID-STRING><ID-STRING>]/Size
+37>>
+startxref
+8953
+%%EOF
diff --git "a/experiments/gr\303\274\303\237e.txt" "b/testfiles/support/gr\303\274\303\237e.txt"
similarity index 100%
copy from "experiments/gr\303\274\303\237e.txt"
copy to "testfiles/support/gr\303\274\303\237e.txt"
diff --git a/experiments/testinput.txt b/testfiles/support/testinput.txt
similarity index 100%
copy from experiments/testinput.txt
copy to testfiles/support/testinput.txt





More information about the latex3-commits mailing list.