diff options
Diffstat (limited to 'Master/texmf-dist/source/latex')
19 files changed, 159 insertions, 86 deletions
diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/hyperref-generic.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/hyperref-generic.dtx index 457ea9f1ac2..e53325b8270 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/hyperref-generic.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/hyperref-generic.dtx @@ -83,7 +83,7 @@ % }^^A % } % -% \date{Version 0.95n, released 2022-04-14} +% \date{Version 0.95o, released 2022-05-11} % % \maketitle % \begin{documentation} @@ -959,7 +959,7 @@ %<@@=hyp> % \end{macrocode} % \begin{macrocode} -\ProvidesFile{hgeneric-testphase.def}[2022-04-14 v0.95n % +\ProvidesFile{hgeneric-testphase.def}[2022-05-11 v0.95o % generic Hyperref driver for the LaTeX PDF management testphase bundle] \RequirePackage{etoolbox} %why? diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3backend-testphase.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3backend-testphase.dtx index 037a8bafc96..01b288ac35d 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3backend-testphase.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3backend-testphase.dtx @@ -45,7 +45,7 @@ % }^^A % } % -% \date{Version 0.95n, released 2022-04-14} +% \date{Version 0.95o, released 2022-05-11} % % \maketitle % @@ -56,27 +56,27 @@ % \begin{macrocode} %<drivers>\ProvidesExplFile %<*dvipdfmx> - {l3backend-testphase-dvipdfmx.def}{2022-04-14}{} + {l3backend-testphase-dvipdfmx.def}{2022-05-11}{} {LaTeX~PDF~management~testphase~bundle~backend~support: dvipdfmx} %</dvipdfmx> %<*dvips> - {l3backend-testphase-dvips.def}{2022-04-14}{} + {l3backend-testphase-dvips.def}{2022-05-11}{} {LaTeX~PDF~management~testphase~bundle~backend~support: dvips} %</dvips> %<*dvisvgm> - {l3backend-testphase-dvisvgm.def}{2022-04-14}{} + {l3backend-testphase-dvisvgm.def}{2022-05-11}{} {LaTeX~PDF~management~testphase~bundle~backend~support: dvisvgm} %</dvisvgm> %<*luatex> - {l3backend-testphase-luatex.def}{2022-04-14}{} + {l3backend-testphase-luatex.def}{2022-05-11}{} {LaTeX~PDF~management~testphase~bundle~backend~support: PDF output (LuaTeX)} %</luatex> %<*pdftex> - {l3backend-testphase-pdftex.def}{2022-04-14}{} + {l3backend-testphase-pdftex.def}{2022-05-11}{} {LaTeX~PDF~management~testphase~bundle~backend~support: PDF output (pdfTeX)} %</pdftex> %<*xdvipdfmx> - {l3backend-testphase-xetex.def}{2022-04-14}{} + {l3backend-testphase-xetex.def}{2022-05-11}{} {LaTeX~PDF~management~testphase~bundle~backend~support: XeTeX} %</xdvipdfmx> % \end{macrocode} diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfannot.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfannot.dtx index 457064953c2..400491b8b83 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfannot.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfannot.dtx @@ -49,7 +49,7 @@ % }^^A % } % -% \date{Version 0.95n, released 2022-04-14} +% \date{Version 0.95o, released 2022-05-11} % % \maketitle % \begin{documentation} @@ -433,7 +433,7 @@ % \begin{macrocode} %<@@=pdfannot> %<*header> -\ProvidesExplPackage{l3pdfannot}{2022-04-14}{0.95n} +\ProvidesExplPackage{l3pdfannot}{2022-05-11}{0.95o} {PDF-annotations} \RequirePackage{l3pdfdict} %</header> diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfdict.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfdict.dtx index e2ed2c35385..fe33565a75f 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfdict.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfdict.dtx @@ -50,7 +50,7 @@ % }^^A % } % -% \date{Version 0.95n, released 2022-04-14} +% \date{Version 0.95o, released 2022-05-11} % % \maketitle % \begin{documentation} @@ -209,7 +209,7 @@ % \begin{macrocode} %<@@=pdfdict> %<*header> -\ProvidesExplPackage{l3pdfdict}{2022-04-14}{0.95n} +\ProvidesExplPackage{l3pdfdict}{2022-05-11}{0.95o} {Tools for PDF dictionaries (LaTeX PDF management testphase bundle)} %</header> % \end{macrocode} diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-action.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-action.dtx index 55874dd7014..118efcafb27 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-action.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-action.dtx @@ -50,7 +50,7 @@ % }^^A % } % -% \date{Version 0.95n, released 2022-04-14} +% \date{Version 0.95o, released 2022-05-11} % % \maketitle % \begin{documentation} diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-checkbox.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-checkbox.dtx index 7cd1b617f79..d6e1fb4eeaa 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-checkbox.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-checkbox.dtx @@ -65,7 +65,7 @@ % }^^A % } % -% \date{Version 0.95n, released 2022-04-14} +% \date{Version 0.95o, released 2022-05-11} % % \maketitle % \begin{documentation} diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-choice.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-choice.dtx index 121c60b7453..f88609ecf35 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-choice.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-choice.dtx @@ -50,7 +50,7 @@ % }^^A % } % -% \date{Version 0.95n, released 2022-04-14} +% \date{Version 0.95o, released 2022-05-11} % % \maketitle % \begin{documentation} diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-pushbutton.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-pushbutton.dtx index 0cd494954e4..97796862fd5 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-pushbutton.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-pushbutton.dtx @@ -56,7 +56,7 @@ % }^^A % } % -% \date{Version 0.95n, released 2022-04-14} +% \date{Version 0.95o, released 2022-05-11} % % \maketitle % \begin{documentation} diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-radiobutton.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-radiobutton.dtx index a395088e4c5..274aed4db7c 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-radiobutton.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-radiobutton.dtx @@ -84,7 +84,7 @@ % }^^A % } % -% \date{Version 0.95n, released 2022-04-14} +% \date{Version 0.95o, released 2022-05-11} % % \maketitle % \begin{documentation} diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-textfield.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-textfield.dtx index c0f5e4dbead..289a720df07 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-textfield.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield-textfield.dtx @@ -50,7 +50,7 @@ % }^^A % } % -% \date{Version 0.95n, released 2022-04-14} +% \date{Version 0.95o, released 2022-05-11} % % \maketitle % \begin{documentation} diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield.dtx index 4fe5de4219b..309b5da3ba4 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffield.dtx @@ -70,7 +70,7 @@ % }^^A % } % -% \date{Version 0.95n, released 2022-04-14} +% \date{Version 0.95o, released 2022-05-11} % % \maketitle % \begin{documentation} @@ -974,7 +974,7 @@ %<*package> %<@@=pdffield> \NeedsTeXFormat{LaTeX2e} -\ProvidesExplPackage{l3pdffield-testphase}{2022-04-14}{0.95n}% +\ProvidesExplPackage{l3pdffield-testphase}{2022-05-11}{0.95o}% {form fields} % \end{macrocode} % \subsection{hyperref specific command} diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffile.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffile.dtx index 2adc7fe6174..6a6012cb619 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffile.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdffile.dtx @@ -50,7 +50,7 @@ % }^^A % } % -% \date{Version 0.95n, released 2022-04-14} +% \date{Version 0.95o, released 2022-05-11} % % \maketitle % \begin{documentation} @@ -397,7 +397,7 @@ % % \begin{macrocode} %<*header> -\ProvidesExplPackage{l3pdffile}{2022-04-14}{0.95n} +\ProvidesExplPackage{l3pdffile}{2022-05-11}{0.95o} {embedding and referencing files in PDF---LaTeX PDF management testphase bundle} \RequirePackage{l3pdftools} %temporarly!! %</header> diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfmanagement.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfmanagement.dtx index fb8ca853e08..d5546bf702f 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfmanagement.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfmanagement.dtx @@ -58,7 +58,7 @@ % }^^A % } % -% \date{Version 0.95n, released 2022-04-14} +% \date{Version 0.95o, released 2022-05-11} % % \maketitle % \begin{documentation} @@ -360,6 +360,20 @@ % Values added to \texttt{ThisPage} can not be removed. It is not possible to % show the content of this dictionary with \cs{pdfmanagement_show:n}. % \end{function} +% +% \paragraph{Changing the \texttt{/MediaBox}}: It is possible to change +% the \texttt{/MediaBox} of one or more pages by setting it for the \texttt{Page} +% or \texttt{ThisPage} path (using \texttt{Pages} doesn't work, the engines +% overwrite this)---this works even with dvips and allows to create +% pages of different sizes. But you must be careful with the values. +% If you set e.g. with pdflatex \cs{pdfpageheight} to 300bp you get a mediabox of +% |0 0 595 300|, but pdflatex measure from the top and will also move +% the reference point up, so effectivly +% you get the \emph{upper} third of the page. If you set the \texttt{/MediaBox} +% to |0 0 595 300| with \cs{pdfmanagement_add:nnn} you get the \emph{lower} third. +% In general it is better to use only the primitive commands to avoid confusing +% results. +% % \subsubsection{\enquote{Page/Resources}: ExtGState, ColorSpace, Shading, Pattern} % \begin{NOTE}{UF} % Only for pdf/luatex and xdvipdfmx backend- and pdf-code is needed to add values @@ -619,7 +633,7 @@ %<@@=pdfmanagement> %<*header> % -\ProvidesExplPackage{l3pdfmanagement}{2022-04-14}{0.95n} +\ProvidesExplPackage{l3pdfmanagement}{2022-05-11}{0.95o} {Management of core PDF dictionaries (LaTeX PDF management testphase bundle)} %</header> % \end{macrocode} diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfmeta.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfmeta.dtx index 77b69fad2d2..778141f7ae1 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfmeta.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfmeta.dtx @@ -50,7 +50,7 @@ % }^^A % } % -% \date{Version 0.95n, released 2022-04-14} +% \date{Version 0.95o, released 2022-05-11} % % \maketitle % \begin{documentation} @@ -222,17 +222,45 @@ % tested from TeX, but in a current LaTeX normally ToUnicode are set for all fonts. % \item[|tagged|] that is set in A-2a and A-3a and means that the pdf must be % tagged. This is currently neither tested not enforced somewhere. +% \item[|Trailer_no_Info|] The \texttt{Info} dictionary +% has been deprecated since quite some time. Metadata should be set with +% XMP-data instead. In PDF A-4 now the \texttt{Info} dictionary +% shall not be present in the trailer dictionary at all +% (unless there exists a PieceInfo entry in the Catalog). And if it is present +% it should only contain the \texttt{/ModDate} entry. The engines +% do not offer currently an option to suppress the dictionary completly, +% one can only give the entries the value null (it only works for all entries +% with lualatex and pdflatex). The next pdflatex will offer \cs{pdfomitinfodict}. +% Until then l3pdfmeta does nothing with this requirement. +% % \end{description} % % \subsubsection{Tests with values and special handlers} % % \begin{description} % -% \item[|min_pdf_version|] stores the minimal PDF version. +% \item[|min_pdf_version|] stores the minimal PDF version needed for +% a standard. +% It should be checked against the current PDF version (\cs{pdf_version:}). +% A failure means that the version should be changed. +% Currently there is only one hard requirement which leads to a failure in +% a validator like verapdf: The A-4 standard should use PDF 2.0. +% As PDF A-1 is based on PDF 1.4 and PDF A-2 and A-3 are based +% on PDF 1.7 \pkg{l3pdfmeta} also sets these versions also as requirements. +% These requirements are checked by \pkg{l3pdfmeta} when the version is set with +% \cs{DocumentMetadata} and a warning is issued (but the version is +% not changed). More checks are only needed if the version is changed later. +% +% +% \item[|max_pdf_version|] stores the maximal PDF version. % It should be checked against the current PDF version (\cs{pdf_version:}). % A failure means that the version should be changed. -% This check is done by \pkg{l3pdfmeta} when the version is set with -% \cs{DocumentMetadata} so more checks are only needed if the version is changed later. +% The check is currently relevant only for the A-1 to A-3 standards: +% PDF 2.0 leads to a failure in a validator like verapdf so the maximal +% version should be PDF 1.7. +% This requirement is checked by \pkg{l3pdfmeta} when the version is set with +% \cs{DocumentMetadata} and a warning is issued (but the version is +% not changed). More checks are only needed if the version is changed later. % % \item[|named_actions|] this requirement restricts the list of % allowed named actions to |NextPage|, |PrevPage|, |FirstPage|, |LastPage|. @@ -353,7 +381,7 @@ % \begin{macrocode} %<@@=pdfmeta> %<*header> -\ProvidesExplPackage{l3pdfmeta}{2022-04-14}{0.95n} +\ProvidesExplPackage{l3pdfmeta}{2022-05-11}{0.95o} {PDF-Standards---LaTeX PDF management testphase bundle} %</header> % \end{macrocode} @@ -362,6 +390,11 @@ %<*package> \msg_new:nnn {pdf }{unknown-standard}{The~standard~'#1'~is~unknown~and~has~been~ignored} % \end{macrocode} +% Message for not fitting pdf version +% \begin{macrocode} +\msg_new:nnn {pdf }{wrong-pdfversion} + {PDF~version~#1~is~too~#2~for~standard~'#3'.} +% \end{macrocode} % \begin{variable}{\l_@@_tmpa_tl,\l_@@_tmpb_tl,\l_@@_tmpa_str} % \begin{macrocode} \tl_new:N\l_@@_tmpa_tl @@ -456,6 +489,19 @@ } % \end{macrocode} % \end{macro} +% The next is the counter part and checks that the version is not to high +% \begin{macro}{\@@_standard_verify_handler_max_pdf_version:nn} +% \begin{macrocode} +% +\cs_new_protected:Npn \@@_standard_verify_handler_max_pdf_version:nn #1 #2 + { + \pdf_version_compare:NnTF > + { #2 } + {\prg_return_false:} + {\prg_return_true:} + } +% \end{macrocode} +% \end{macro} % The next checks if the user value is in the list and returns a failure if not. % \begin{macro}{\@@_standard_verify_handler_named_actions:nn} % \begin{macrocode} @@ -515,9 +561,30 @@ { \pdfmeta_standard_verify:nF { annot_flags } { \@@_verify_pdfa_annot_flags: } + \pdfmeta_standard_verify:nnF { min_pdf_version } + { \pdf_version: } + { \msg_warning:nnxxx {pdf}{wrong-pdfversion} + {\pdf_version:}{low} + { + \pdfmeta_standard_item:n{type} + - + \pdfmeta_standard_item:n{level} + } + } + \pdfmeta_standard_verify:nnF { max_pdf_version } + { \pdf_version: } + { \msg_warning:nnxxx {pdf}{wrong-pdfversion} + {\pdf_version:}{high} + { + \pdfmeta_standard_item:n{type} + - + \pdfmeta_standard_item:n{level} + } + } } % \end{macrocode} % +% % \subsubsection{pdf/A} % We use global properties so that follow up standards can be % copied and then adjusted. @@ -531,6 +598,7 @@ % \g_@@_standard_pdf/A-3A_prop , % \g_@@_standard_pdf/A-3B_prop , % \g_@@_standard_pdf/A-3U_prop , +% \g_@@_standard_pdf/A-4_prop , % } % \begin{macrocode} \prop_new:c { g_@@_standard_pdf/A-1B_prop } @@ -542,6 +610,7 @@ ,conformance = B ,year = 2005 ,min_pdf_version = 1.4 %minimum + ,max_pdf_version = 1.4 %minimum ,no_encryption = ,no_external_content = % no F, FFilter, or FDecodeParms in stream dicts ,no_embed_content = % no EF key in filespec, no /Type/EmbeddedFiles @@ -605,7 +674,8 @@ \prop_gremove:cn { g_@@_standard_pdf/A-2B_prop } { embed_content} - +\prop_gput:cnn + { g_@@_standard_pdf/A-2B_prop }{max_pdf_version}{1.7} %A-2u ============== \prop_new:c { g_@@_standard_pdf/A-2U_prop } \prop_gset_eq:cc @@ -669,6 +739,26 @@ { g_@@_standard_pdf/A-3A_prop }{conformance}{A} \prop_gput:cnn { g_@@_standard_pdf/A-3A_prop }{tagged}{} + +%A-4 ============== +\prop_new:c { g_@@_standard_pdf/A-4_prop } +\prop_gset_eq:cc + { g_@@_standard_pdf/A-4_prop } + { g_@@_standard_pdf/A-3U_prop } +\prop_gput:cnn + { g_@@_standard_pdf/A-4_prop }{name}{pdf/A-4} +\prop_gput:cnn + { g_@@_standard_pdf/A-4_prop }{level}{4} +\prop_gput:cnn + { g_@@_standard_pdf/A-4_prop }{min_pdf_version}{2.0} +\prop_gput:cnn + { g_@@_standard_pdf/A-4_prop }{year}{2020} +\prop_gput:cnn + { g_@@_standard_pdf/A-4_prop }{Trailer_no_Info}{} +\prop_gremove:cn + { g_@@_standard_pdf/A-4_prop }{conformance} +\prop_gremove:cn + { g_@@_standard_pdf/A-4_prop }{max_pdf_version} % \end{macrocode} % \end{variable} % diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdftools.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdftools.dtx index f56714fbd93..23162ff2f66 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdftools.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdftools.dtx @@ -50,7 +50,7 @@ % }^^A % } % -% \date{Version 0.95n, released 2022-04-14} +% \date{Version 0.95o, released 2022-05-11} % % \maketitle % \begin{documentation} @@ -212,7 +212,7 @@ % % \begin{macrocode} %<*header> -\ProvidesExplPackage{l3pdftools}{2022-04-14}{0.95n} +\ProvidesExplPackage{l3pdftools}{2022-05-11}{0.95o} {candidate commands for l3pdf---LaTeX PDF management testphase bundle} %</header> % \end{macrocode} diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfxform.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfxform.dtx index 32b45966fc2..2e4419950dc 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfxform.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfxform.dtx @@ -49,7 +49,7 @@ % }^^A % } % -% \date{Version 0.95n, released 2022-04-14} +% \date{Version 0.95o, released 2022-05-11} % % \maketitle % \begin{documentation} @@ -133,7 +133,7 @@ % \begin{macrocode} %<@@=pdf> %<*header> -\ProvidesExplPackage{l3pdfxform}{2022-04-14}{0.95n} +\ProvidesExplPackage{l3pdfxform}{2022-05-11}{0.95o} {command to create xforms (beta)---LaTeX PDF management testphase bundle} %</header> % \end{macrocode} diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/ltdocinit.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/ltdocinit.dtx index d7b4224aa51..0fc6be40318 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/ltdocinit.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/ltdocinit.dtx @@ -48,7 +48,7 @@ % }^^A % } % -% \date{Version 0.95n, released 2022-04-14} +% \date{Version 0.95o, released 2022-05-11} % % \maketitle % \begin{documentation} @@ -117,7 +117,8 @@ % e.g., \texttt{lang=de-DE}. If not given the default value used is |en-US|. % % \item[\texttt{pdfstandard}] Choice key to set the pdf standard. -% Currently |A-1b|, |A-2a|, |A-2b|, |A-2u|, |A-3a|, |A-3b| and |A-3u| are accepted as +% Currently |A-1b|, |A-2a|, |A-2b|, |A-2u|, |A-3a|, |A-3b|, |A-3u| and |A-4| +% are accepted as % values. The casing is irrelevant, |a-1b| works too. % The underlying code to ensure the requirements (as far as they % can be ensured) is still incomplete, but a color profile is included and the @@ -216,7 +217,7 @@ % \begin{macrocode} %<@@=pdfmanagement> %<*header> -\ProvidesExplPackage{ltdocinit}{2022-04-14}{0.95n} +\ProvidesExplPackage{ltdocinit}{2022-05-11}{0.95o} {Initialize document metadata} %</header> % \end{macrocode} @@ -278,7 +279,7 @@ \keys_set:nn {document / metadata} {_pdfstandard=\str_uppercase:n{#1}} } ,_pdfstandard .choices:nn = - {A-1B,A-2A,A-2B,A-2U,A-3A,A-3B,A-3U} + {A-1B,A-2A,A-2B,A-2U,A-3A,A-3B,A-3U,A-4} { \prop_if_exist:cT { g__pdfmeta_standard_pdf/#1_prop } { diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/pdfmanagement-firstaid.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/pdfmanagement-firstaid.dtx index 15fc8cf38b6..009f1bf07f2 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/pdfmanagement-firstaid.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/pdfmanagement-firstaid.dtx @@ -48,7 +48,7 @@ % }^^A % } % -% \date{Version 0.95n, released 2022-04-14} +% \date{Version 0.95o, released 2022-05-11} % % \maketitle % \begin{documentation} @@ -64,11 +64,11 @@ % |debug={firstaidoff={name1,name2,...},...}|. % \begin{macrocode} %<*package> -\ProvidesExplPackage{pdfmanagement-firstaid}{2022-04-14}{0.95n} +\ProvidesExplPackage{pdfmanagement-firstaid}{2022-05-11}{0.95o} {LaTeX PDF management testphase bundle / firstaid-patches} %<@@=pdfmanagement> -\clist_map_inline:nn {pgf,transparent,hyperxmp,pdflscape,xcolor,color,beamer,output} +\clist_map_inline:nn {pgf,transparent,hyperxmp,pdflscape,xcolor,color,beamer,output,colorspace} { \bool_new:c { g_@@_firstaid_#1_bool } \bool_gset_true:c { g_@@_firstaid_#1_bool } @@ -291,48 +291,14 @@ % as colorspace uses temporary macros whose contents is lost. % \begin{macrocode} %<*package> -%<@@=pdf> -% this must be earlier, to avoid problems with luatex which has two pageresources -% lua/tex -\hook_gput_code:nnn {begindocument} {pdf} - { - \tl_if_exist:NT \spc@op - { - \def\spc@Pageresources#1{} - } - - } - -\hook_gput_code:nnn {begindocument/end} {pdf} - { - \tl_if_exist:NT \spc@op +\bool_if:NT \g_@@_firstaid_colorspace_bool + { + \AddToHook { - \@@_backend_object_new:nn {__spc_extgstate_op_false}{dict} - \@@_backend_object_write:nn - {__spc_extgstate_op_false} - {/Type /ExtGState~/op~false~/OP~false} - \pdfmanagement_add:nnn - {Page/Resources/ExtGState} - {SPCko} - {\@@_backend_object_ref:n {__spc_extgstate_op_false}} - \@@_backend_object_new:nn {__spc_extgstate_op_true0}{dict} - \@@_backend_object_write:nn - {__spc_extgstate_op_true0} - {/Type /ExtGState~/op~true~/OP~true~/OPM~0}% - \pdfmanagement_add:nnn - {Page/Resources/ExtGState} - {SPCmz} - {\@@_backend_object_ref:n {__spc_extgstate_op_true0}} - \@@_backend_object_new:nn {__spc_extgstate_op_true1}{dict} - \@@_backend_object_write:nn - {__spc_extgstate_op_true1} - {/Type /ExtGState~/op~true~/OP~true~/OPM~1}% - \pdfmanagement_add:nnn - {Page/Resources/ExtGState} - {SPCop} - {\@@_backend_object_ref:n {__spc_extgstate_op_true1}} + package/colorspace/after } - } + {\RequirePackage{colorspace-patches-tmp-ltx}} + } %</package> % \end{macrocode}% % \end{documentation} diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/pdfmanagement-testphase.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/pdfmanagement-testphase.dtx index 4b764771fdd..174a9be11c2 100644 --- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/pdfmanagement-testphase.dtx +++ b/Master/texmf-dist/source/latex/pdfmanagement-testphase/pdfmanagement-testphase.dtx @@ -48,7 +48,7 @@ % }^^A % } % -% \date{Version 0.95n, released 2022-04-14} +% \date{Version 0.95o, released 2022-05-11} % % \maketitle % \begin{documentation} @@ -386,7 +386,7 @@ % \begin{macrocode} %<@@=pdf> %<*package> -\ProvidesExplPackage{pdfmanagement-testphase}{2022-04-14}{0.95n} +\ProvidesExplPackage{pdfmanagement-testphase}{2022-05-11}{0.95o} {LaTeX PDF management testphase bundle} \providecommand\IfFormatAtLeastTF{\@ifl@t@r\fmtversion} \IfFormatAtLeastTF{2020-10-01}{}{ @@ -414,19 +414,21 @@ % to allow to set it in the document. % \begin{macrocode} %<*header> -\ProvidesExplFile{pdfmanagement-testphase.ltx}{2022-04-14}{0.95n} +\ProvidesExplFile{pdfmanagement-testphase.ltx}{2022-05-11}{0.95o} {PDF~management~code~(testphase)} %</header> %<*package> %\RequirePackage{l3pdfdict} % needed by l3pdfmanagement %\RequirePackage{l3pdfmanagement} % loads the core code with the boolean %\RequirePackage{ltdocinit} % DocumentMetadata, -%% can perhaps be combined or made optional ... +%can perhaps be combined or made optional ... %\RequirePackage{l3pdfannot} %\RequirePackage{l3pdfxform-beta} %\RequirePackage{l3pdfmeta} % %\RequirePackage{l3pdftools} %\RequirePackage{l3pdffile} +\IfFileExists{tagpdf-base.sty} + {\RequirePackage{tagpdf-base}}{} \input{pdfmanagement-testphase.ltx} %</package> % \end{macrocode} |