From c0c23cd1e3a82cc0589a759a43fc22e225106fbe Mon Sep 17 00:00:00 2001 From: Ulrike Fischer Date: Sat, 27 Feb 2021 16:16:07 +0100 Subject: [PATCH] correct typo FileSpec -> Filespec --- l3pdffile.dtx | 60 ++++++++++++++++----------------- testfiles-dvips/embedfile.pvt | 16 ++++----- testfiles-dvips/embedfile.tpf | Bin 9337 -> 9337 bytes testfiles/embedfile.luatex.tpf | 8 ++--- testfiles/embedfile.pvt | 16 ++++----- testfiles/embedfile.tpf | 8 ++--- testfiles/embedfile.xetex.tpf | 8 ++--- 7 files changed, 58 insertions(+), 58 deletions(-) diff --git a/l3pdffile.dtx b/l3pdffile.dtx index c1a2a255..49efabfc 100644 --- a/l3pdffile.dtx +++ b/l3pdffile.dtx @@ -70,7 +70,7 @@ % Case 1 (Links) are created with the \cs{pdfannot} commands. % This module handles the two other cases. Actually from the view % of the PDF format they are quite similar: Case 2 is case 3 without the stream -% object and without the /EF entry in the /FileSpec dictionary (this points to the +% object and without the /EF entry in the /Filespec dictionary (this points to the % stream object of the file). Not embedding the file makes the PDF smaller. But it is % also less portable: the files can only be found if they are in the right location % relative to the PDF. The normal case is to embed the file. @@ -78,7 +78,7 @@ % The tasks to embed and reference such a file are % \begin{enumerate} % \item Embed the file in a stream. -% \item Create a FileSpec dictionary which references the stream object in the /EF +% \item Create a Filespec dictionary which references the stream object in the /EF % dictionary: % \begin{verbatim} % << @@ -94,7 +94,7 @@ % and name it \texttt{blub.tex}. The second name is then what the user will see % in the attachment list or in the properties of an annotation. % -%\item Reference the FileSpec dictionary so that the user can access the file. +%\item Reference the Filespec dictionary so that the user can access the file. % This can be done in various way: % \begin{enumerate} % \item With an annotation (/Subtype/FileAttachment). This is done by @@ -104,7 +104,7 @@ % \medskip % \begin{tabular}{lll} % key & value type & notes\\\hline -% /FS & object reference &(FileSpec dictionary)\\ +% /FS & object reference &(Filespec dictionary)\\ % /Name & name & /Graph, /PushPin, /Paperclip, /Tag\\ % /Contents & text string & optional but recommended\\ % /F & integer & Flags\\ @@ -137,7 +137,7 @@ % /AF /NamedAF BDC % /Properties <> diff --git a/testfiles-dvips/embedfile.pvt b/testfiles-dvips/embedfile.pvt index 9aa93298..f996cf65 100644 --- a/testfiles-dvips/embedfile.pvt +++ b/testfiles-dvips/embedfile.pvt @@ -15,30 +15,30 @@ grüße \section{Testing embedding and attaching files} \ExplSyntaxOn \group_begin: -\pdfdict_put:nnn {l_pdffile/FileSpec} {AFRelationship}{/Source} +\pdfdict_put:nnn {l_pdffile/Filespec} {AFRelationship}{/Source} \pdf_string_from_unicode:nnN {utf16/string} {this~is~something~odd~with~öäü}\l_tmpa_str -\pdfdict_put:nnx {l_pdffile/FileSpec} {Desc}{\l_tmpa_str} +\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_pdffile/FileSpec} {AFRelationship}{/Source} +\pdfdict_put:nnn {l_pdffile/Filespec} {AFRelationship}{/Source} \pdf_string_from_unicode:nnN {utf16/string} {this~is~something~odd~with~öäü}\l_tmpa_str -\pdfdict_put:nnx {l_pdffile/FileSpec} {Desc}{\l_tmpa_str} +\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_pdffile/FileSpec} {AFRelationship}{/Source} -\pdfdict_put:nnn {l_pdffile/FileSpec} {Desc}{(this~is~a~eps)} +\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)} \pdffile_embed_file:nnn {testinput.txt}{Some~txt~file}{example3} -\pdfdict_put:nnn {l_pdffile/FileSpec} {AFRelationship}{/Data} -\pdfdict_put:nnn {l_pdffile/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 9d0ec0c346419a3a9fe05e1ecf4d25f8797252c8..75bcb8afcff796eefe38635cf8ab8ec7c23b6389 100644 GIT binary patch delta 35 ncmezA@zY~Nrvzj1<}L|tW*{|9dLa{#vXEQI2&8Vw&u0Mu`~3|F delta 35 ncmezA@zY~Nrvzj0<}L|tW*{|9dLa{#vXEQI2&8Vw&u0Mu^Sum+ diff --git a/testfiles/embedfile.luatex.tpf b/testfiles/embedfile.luatex.tpf index 33d19ecf..089d0850 100644 --- a/testfiles/embedfile.luatex.tpf +++ b/testfiles/embedfile.luatex.tpf @@ -7,7 +7,7 @@ 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 /UF /EF<> >> +<< /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 /UF /EF<> >> endobj 8 0 obj << /Subtype /text#2Fplain/Type /EmbeddedFile /Params<> /Length 130 >> @@ -20,7 +20,7 @@ grüße 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 /UF /EF<> >> +<< /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 /UF /EF<> >> endobj 10 0 obj << /Subtype /text#2Fplain/Type /EmbeddedFile /Params<> /Length 5 >> @@ -29,7 +29,7 @@ abc endstream endobj 11 0 obj -<< /Type /FileSpec /AFRelationship /Source /Desc (this is a eps) /F /UF /EF<> >> +<< /Type /Filespec /AFRelationship /Source /Desc (this is a eps) /F /UF /EF<> >> endobj 12 0 obj << /Type /EmbeddedFile /Params<> /Length 13 >> @@ -38,7 +38,7 @@ streamcontent endstream endobj 13 0 obj -<< /Type /FileSpec /AFRelationship /Data /Desc (this is a text file) /F /UF /EF<> >> +<< /Type /Filespec /AFRelationship /Data /Desc (this is a text file) /F /UF /EF<> >> endobj 1 0 obj << /opacity1 <> >> diff --git a/testfiles/embedfile.pvt b/testfiles/embedfile.pvt index 9aa93298..f996cf65 100644 --- a/testfiles/embedfile.pvt +++ b/testfiles/embedfile.pvt @@ -15,30 +15,30 @@ grüße \section{Testing embedding and attaching files} \ExplSyntaxOn \group_begin: -\pdfdict_put:nnn {l_pdffile/FileSpec} {AFRelationship}{/Source} +\pdfdict_put:nnn {l_pdffile/Filespec} {AFRelationship}{/Source} \pdf_string_from_unicode:nnN {utf16/string} {this~is~something~odd~with~öäü}\l_tmpa_str -\pdfdict_put:nnx {l_pdffile/FileSpec} {Desc}{\l_tmpa_str} +\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_pdffile/FileSpec} {AFRelationship}{/Source} +\pdfdict_put:nnn {l_pdffile/Filespec} {AFRelationship}{/Source} \pdf_string_from_unicode:nnN {utf16/string} {this~is~something~odd~with~öäü}\l_tmpa_str -\pdfdict_put:nnx {l_pdffile/FileSpec} {Desc}{\l_tmpa_str} +\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_pdffile/FileSpec} {AFRelationship}{/Source} -\pdfdict_put:nnn {l_pdffile/FileSpec} {Desc}{(this~is~a~eps)} +\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)} \pdffile_embed_file:nnn {testinput.txt}{Some~txt~file}{example3} -\pdfdict_put:nnn {l_pdffile/FileSpec} {AFRelationship}{/Data} -\pdfdict_put:nnn {l_pdffile/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/embedfile.tpf b/testfiles/embedfile.tpf index c9132790..1b2d7437 100644 --- a/testfiles/embedfile.tpf +++ b/testfiles/embedfile.tpf @@ -10,7 +10,7 @@ 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 /UF /EF<> >> +<< /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 /UF /EF<> >> endobj 8 0 obj << @@ -26,7 +26,7 @@ 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 /UF /EF<> >> +<< /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 /UF /EF<> >> endobj 10 0 obj << @@ -38,7 +38,7 @@ abc endstream endobj 11 0 obj -<< /Type /FileSpec /AFRelationship /Source /Desc (this is a eps) /F /UF /EF<> >> +<< /Type /Filespec /AFRelationship /Source /Desc (this is a eps) /F /UF /EF<> >> endobj 12 0 obj << @@ -50,7 +50,7 @@ streamcontent endstream endobj 13 0 obj -<< /Type /FileSpec /AFRelationship /Data /Desc (this is a text file) /F /UF /EF<> >> +<< /Type /Filespec /AFRelationship /Data /Desc (this is a text file) /F /UF /EF<> >> endobj 1 0 obj << /opacity1 <> >> diff --git a/testfiles/embedfile.xetex.tpf b/testfiles/embedfile.xetex.tpf index d9295726..4e63f3f4 100644 --- a/testfiles/embedfile.xetex.tpf +++ b/testfiles/embedfile.xetex.tpf @@ -20,7 +20,7 @@ abc endstream endobj 13 0 obj -</F/UF/EF</F/UF/EF<>>> endobj 8 0 obj @@ -35,7 +35,7 @@ grüße endstream endobj 14 0 obj -</F/UF/EF</F/UF/EF<>>> endobj 9 0 obj @@ -46,7 +46,7 @@ abc endstream endobj 15 0 obj -</UF/EF</UF/EF<>>> endobj 10 0 obj @@ -56,7 +56,7 @@ streamcontent endstream endobj 16 0 obj -</UF/EF</UF/EF<>>> endobj 17 0 obj