diff options
author | Karl Berry <karl@freefriends.org> | 2021-06-14 20:29:57 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-06-14 20:29:57 +0000 |
commit | ea584efe11866db25e596b86b3b7ae07e39e18f4 (patch) | |
tree | 0e6efd5f0b0ece53bbdb0714876d1b5bd6ac0445 /Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffile.dtx | |
parent | d4d9a15ed4e1c66e822e11fe95e05d584e0771a2 (diff) |
pdfmanagement-testphase (14jun21)
git-svn-id: svn://tug.org/texlive/trunk@59591 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffile.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffile.dtx | 36 |
1 files changed, 30 insertions, 6 deletions
diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffile.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffile.dtx index cf2176e439b..81e2ef273e6 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffile.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffile.dtx @@ -31,7 +31,7 @@ \documentclass[full]{l3doc} \usepackage{array,booktabs,hyperxmp} \hypersetup{pdfauthor=The LaTeX Project,pdftitle=l3pdffile (LaTeX PDF management testphase bundle)} - +\usepackage{caption} \providecommand\potentialclash{\noindent\llap{\dbend\ }} \begin{document} \DocInput{\jobname.dtx} @@ -53,7 +53,7 @@ % }^^A % } % -% \date{Version 0.95d, released 2021-05-14} +% \date{Version 0.95e, released 2021-06-14} % % \maketitle % \begin{documentation} @@ -245,13 +245,14 @@ % \end{function} % \begin{table} % \caption{Preset values in the file dictionaries\label{tab:filedict}} -% \begin{tabular}{lll} +% \hspace*{-3cm}\begin{tabular}{lll} % dictionary & key & value \\\hline % l\_pdffile & Type & /EmbeddedFile\\ % l\_pdffile/Params& Size & |\file_size:n{\l_pdffile_source_name_str}|\\ % l\_pdffile/Params& ModDate & |(\file_timestamp:n {\l_pdffile_source_name_str})|\\ % l\_pdffile/Params& CheckSum & |(\file_mdfive_hash:n{\l_pdffile_source_name_str})|\\ -% l\_pdffile/streamParams& & a /ModDate entry with year/month/date (used with \cs{pdffile_embed_stream:nnn})\\ +% l\_pdffile/streamParams& & a /ModDate entry with year/month/date \\ +% & & (used with \cs{pdffile_embed_stream:nnn})\\ % l\_pdffile/Filespec & Type & /Filespec\\ % l\_pdffile/Filespec & AFRelationship &Unspecified % \end{tabular} @@ -324,6 +325,28 @@ % The stream should not be too long, at least PS imposes a size limit for strings. % \end{function} % +% \begin{function}{\pdffile_filespec:nnn,\pdffile_filespec:nnx} +% \begin{syntax} +% \cs{ pdffile_filespec:nnn }\Arg{object name}\Arg{file name}{stream object reference} +% \end{syntax} +% The previous commands are fine if stream and filespec dictionary can be created together. +% But there are cases where the |filespec| dictionary should be referenced when the +% stream object doesn't exist yet. For example in the |AF| key of a structure at +% the begin of an environment where the stream is created from the body. +% +% This command allows to write a filespec dictionary alone and reference a previously +% created stream. +% +% \begin{verbatim} +% \pdf_object_new:nn{module/filespec/A}{dict} % a new filespec object +% \pdf_object_ref:n {module/filespec/A} % a reference +% \pdf_object_unnamed_write:nn { stream }{ {...}{content} } %writing the stream +% % filling and writing the filespec dictionary: +% \pdffile_filespec:nnn {module/filespec/A}{A.xml}{\pdf_object_ref_last:} +% \end{verbatim} +% +% \end{function} +% % \begin{variable}{\g_pdffile_mimetypes_prop} % This property contains a list of extensions and their mimetypes. % Values can be added or changed with the standard commands: @@ -377,7 +400,7 @@ % % \begin{macrocode} %<*header> -\ProvidesExplPackage{l3pdffile}{2021-05-14}{0.95d} +\ProvidesExplPackage{l3pdffile}{2021-06-14}{0.95e} {embedding and referencing files in PDF---LaTeX PDF management testphase bundle} \RequirePackage{l3pdftools} %temporarly!! %</header> @@ -636,7 +659,8 @@ } } - +\cs_set_eq:NN \pdffile_filespec:nnn \@@_filespec_write:nnn +\cs_generate_variant:Nn \pdffile_filespec:nnn {nnx} %#1 {source filename} %#2 {target filename} %#3 { filespec object name } (will internally get a prefix! ??) |