summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-05-11 19:52:19 +0000
committerKarl Berry <karl@freefriends.org>2022-05-11 19:52:19 +0000
commite86d22fd7e27d2b130b3265fd12994e6f5c92d25 (patch)
tree24a71fe2d0e2a88cba355a73b6e189783ebeaf13 /Master/texmf-dist/tex/latex
parente61a87f98a798358891c94904b47cfef50386581 (diff)
pdfmanagement-testphase (11may22)
git-svn-id: svn://tug.org/texlive/trunk@63281 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r--Master/texmf-dist/tex/latex/pdfmanagement-testphase/color-ltx.sty2
-rw-r--r--Master/texmf-dist/tex/latex/pdfmanagement-testphase/colorspace-patches-tmp-ltx.sty85
-rw-r--r--Master/texmf-dist/tex/latex/pdfmanagement-testphase/hgeneric-testphase.def2
-rw-r--r--Master/texmf-dist/tex/latex/pdfmanagement-testphase/hyperxmp-patches-tmp-ltx.sty45
-rw-r--r--Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-dvipdfmx.def2
-rw-r--r--Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-dvips.def2
-rw-r--r--Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-dvisvgm.def2
-rw-r--r--Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-luatex.def2
-rw-r--r--Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-pdftex.def2
-rw-r--r--Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-xetex.def2
-rw-r--r--Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3pdffield-testphase.sty2
-rw-r--r--Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdflscape-ltx.sty2
-rw-r--r--Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-firstaid.sty47
-rw-r--r--Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-testphase.ltx56
-rw-r--r--Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-testphase.sty5
-rw-r--r--Master/texmf-dist/tex/latex/pdfmanagement-testphase/transparent-ltx.sty2
-rw-r--r--Master/texmf-dist/tex/latex/pdfmanagement-testphase/xcolor-patches-tmp-ltx.sty2
17 files changed, 196 insertions, 66 deletions
diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/color-ltx.sty b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/color-ltx.sty
index f4f601f59fd..6c06a0022d1 100644
--- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/color-ltx.sty
+++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/color-ltx.sty
@@ -24,7 +24,7 @@
%% This file has the LPPL maintenance status "maintained".
%%
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
-\ProvidesPackage{color-ltx}[2022-04-14 v0.95n
+\ProvidesPackage{color-ltx}[2022-05-11 v0.95o
Standard LaTeX Color (patched for l3color, part of pdfmanagement-testphase, original version 2022/01/06 v1.3d) (DPC)]
\edef\Gin@codes{%
\catcode`\noexpand\^^A\the\catcode`\^^A\relax
diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/colorspace-patches-tmp-ltx.sty b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/colorspace-patches-tmp-ltx.sty
new file mode 100644
index 00000000000..7bef6181630
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/colorspace-patches-tmp-ltx.sty
@@ -0,0 +1,85 @@
+%% This is file `hyperxmp-patches-tmp-ltx.sty"
+% Copyright (C) 2019-2021 The LaTeX Project
+%
+% It may be distributed and/or modified under the conditions of the
+% LaTeX Project Public License (LPPL), either version 1.3c of this
+% license or (at your option) any later version. The latest version
+% of this license is in the file
+%
+% https://www.latex-project.org/lppl.txt
+%
+% This file is part of the "pdfmanagement bundle" (The Work in LPPL)
+% and all files in that bundle must be distributed together.
+%
+% -----------------------------------------------------------------------
+%
+% The development version of the bundle can be found at
+%
+% https://github.com/latex3/pdfresources
+%
+% for those people who are interested.
+\NeedsTeXFormat{LaTeX2e}[2020/10/01]
+\ProvidesExplPackage{colorspace-patches-tmp-ltx}{2022-05-11}{0.95o}
+ {temporay patches to for the colorspace package to test pdfresource management ... UF}
+
+\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
+ {
+ \__pdf_backend_object_new:nn {__spc_extgstate_op_false}{dict}
+ \__pdf_backend_object_write:nn
+ {__spc_extgstate_op_false}
+ {/Type /ExtGState~/op~false~/OP~false}
+ \pdfmanagement_add:nnn
+ {Page/Resources/ExtGState}
+ {SPCko}
+ {\__pdf_backend_object_ref:n {__spc_extgstate_op_false}}
+ \__pdf_backend_object_new:nn {__spc_extgstate_op_true0}{dict}
+ \__pdf_backend_object_write:nn
+ {__spc_extgstate_op_true0}
+ {/Type /ExtGState~/op~true~/OP~true~/OPM~0}%
+ \pdfmanagement_add:nnn
+ {Page/Resources/ExtGState}
+ {SPCmz}
+ {\__pdf_backend_object_ref:n {__spc_extgstate_op_true0}}
+ \__pdf_backend_object_new:nn {__spc_extgstate_op_true1}{dict}
+ \__pdf_backend_object_write:nn
+ {__spc_extgstate_op_true1}
+ {/Type /ExtGState~/op~true~/OP~true~/OPM~1}%
+ \pdfmanagement_add:nnn
+ {Page/Resources/ExtGState}
+ {SPCop}
+ {\__pdf_backend_object_ref:n {__spc_extgstate_op_true1}}
+ }
+ }
+
+\RemoveFromHook{begindocument}[colorspace]
+
+\hook_gput_code:nnn {enddocument} {pdf}
+ {
+ \def\spc@elt#1#2
+ {
+ \str_set_eq:Nc\l_tmpa_str {spc@ir@#2}
+ \seq_set_split:NnV \l_tmpa_seq {~}\l_tmpa_str
+ \seq_get_left:NN\l_tmpa_seq\l_tmpa_str
+ %remove spaces
+ \exp_args:NNx
+ \str_replace_all:Nnn\l_tmpa_str {\c_hash_str20}{~}
+ %remove slash
+ \str_set:Nx\l_tmpa_str{\str_tail:N\l_tmpa_str}
+ \pdfmanagement_add:nex
+ {Page/Resources/ColorSpace}{\l_tmpa_str}{\seq_item:Nn\l_tmpa_seq{2}~0~R}
+ }
+ \spc@csall
+ }
+
+\endinput
diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/hgeneric-testphase.def b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/hgeneric-testphase.def
index b09aa6c98ce..7a8697aa267 100644
--- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/hgeneric-testphase.def
+++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/hgeneric-testphase.def
@@ -20,7 +20,7 @@
%%
%% File: hyperref-generic.dtx
-\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/tex/latex/pdfmanagement-testphase/hyperxmp-patches-tmp-ltx.sty b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/hyperxmp-patches-tmp-ltx.sty
index 0f0c22f831f..70b83b44f88 100644
--- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/hyperxmp-patches-tmp-ltx.sty
+++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/hyperxmp-patches-tmp-ltx.sty
@@ -19,7 +19,7 @@
%
% for those people who are interested.
\NeedsTeXFormat{LaTeX2e}[2020/10/01]
-\ProvidesExplPackage{hyperxmp-patches-tmp-ltx}{2022-04-14}{0.95n}
+\ProvidesExplPackage{hyperxmp-patches-tmp-ltx}{2022-05-11}{0.95o}
{Store hyperref metadata in XMP format / temporay patches to test pdfresource management ... UF}
\cs_if_exist:NT \pdfmanagement_add:nnn
@@ -45,19 +45,27 @@
}
% A standard should be retrieved from the document settings.
-\cs_new:Npn \__hypxmp_get_Astandard:w #1-#2#3#4\q_stop
+\cs_new:Npn \__hypxmp_get_Astandard:
{
- \tl_if_eq:nnT{#1}{A}
+ \exp_args:Ne \tl_if_eq:nnT{\pdfmeta_standard_item:n{type}}{A}
{
\Hy@pdfatrue
- \tl_set:Nn \@pdfapart{#2}
- \tl_set:Nx \@pdfaconformance{#3}
+ \tl_set:Nx \@pdfapart{\pdfmeta_standard_item:n{level}}
+ \tl_set:Nx \@pdfaconformance{\pdfmeta_standard_item:n{conformance}}
}
}
+% A-4 will need also the year, so we have to extend the schema
+\renewcommand*{\hyxmp@pdfa@id@schema}{%
+ \ifHy@pdfa
+ \exp_args:Nnx\hyxmp@add@simple{pdfaid:part}{\pdfmeta_standard_item:n{level}}
+ \exp_args:Nnx\hyxmp@add@simple{pdfaid:conformance}{\pdfmeta_standard_item:n{conformance}}
+ \exp_args:Nnx\hyxmp@add@simple{pdfaid:rev}{\pdfmeta_standard_item:n{year}}
+ \fi
+}
+
\cs_new_protected:Npn \__hyxmp_get_metadata:
{
- \exp_last_unbraced:Ne \__hypxmp_get_Astandard:w
- {\GetDocumentProperties{document/pdfstandard}}Z-ZZZ\q_stop
+ \__hypxmp_get_Astandard:
\clist_map_inline:nn
{
% hyperxmp keys:
@@ -146,9 +154,26 @@
\DeclareHookRule{begindocument/before}{pdfmanagement/firstaid/hyperxmp}{before}{hyperxmp}
-\AddToHook{enddocument}[pdfmanagement-firstaid]{\__hyxmp_get_metadata:}
-
-\DeclareHookRule{enddocument}{pdfmanagement-firstaid}{before}{hyperxmp}
+% hyperxmp puts the code into enddocument, but for xetex this is too late.
+% so we move that to shipout/lastpage and add our command before.
+% the luatex code must stay in enddocument as hyperxmp tries to detect the pdf size
+% there.
+\sys_if_output_dvi:TF
+ {
+ \RemoveFromHook{enddocument}[hyperxmp]
+ \AddToHook{shipout/lastpage}[pdfmanagement-firstaid]
+ {
+ \__hyxmp_get_metadata:
+ \hyxmp@auto@assign@data
+ \hyxmp@check@standards
+ \hyxmp@warn@if@no@metadata
+ \hyxmp@embed@packet
+ }
+ }
+ {
+ \AddToHook{enddocument}[pdfmanagement-firstaid]{\__hyxmp_get_metadata:}
+ \DeclareHookRule{enddocument}{pdfmanagement-firstaid}{before}{hyperxmp}
+ }
\endinput
diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-dvipdfmx.def b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-dvipdfmx.def
index 91cc92cae49..591cc1ec00a 100644
--- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-dvipdfmx.def
+++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-dvipdfmx.def
@@ -20,7 +20,7 @@
%%
%% File: l3backend-testphase.dtx
\ProvidesExplFile
- {l3backend-testphase-dvipdfmx.def}{2022-04-14}{}
+ {l3backend-testphase-dvipdfmx.def}{2022-05-11}{}
{LaTeX~PDF~management~testphase~bundle~backend~support: dvipdfmx}
\RequirePackage{l3ref-tmp}
\cs_generate_variant:Nn \ref_label:nn {en}
diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-dvips.def b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-dvips.def
index 5294692323b..871881ff326 100644
--- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-dvips.def
+++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-dvips.def
@@ -20,7 +20,7 @@
%%
%% File: l3backend-testphase.dtx
\ProvidesExplFile
- {l3backend-testphase-dvips.def}{2022-04-14}{}
+ {l3backend-testphase-dvips.def}{2022-05-11}{}
{LaTeX~PDF~management~testphase~bundle~backend~support: dvips}
\RequirePackage{l3ref-tmp}
\cs_generate_variant:Nn \ref_label:nn {en}
diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-dvisvgm.def b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-dvisvgm.def
index 5c65533807c..ad99af70156 100644
--- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-dvisvgm.def
+++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-dvisvgm.def
@@ -20,7 +20,7 @@
%%
%% File: l3backend-testphase.dtx
\ProvidesExplFile
- {l3backend-testphase-dvisvgm.def}{2022-04-14}{}
+ {l3backend-testphase-dvisvgm.def}{2022-05-11}{}
{LaTeX~PDF~management~testphase~bundle~backend~support: dvisvgm}
\RequirePackage{l3ref-tmp}
\cs_generate_variant:Nn \ref_label:nn {en}
diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-luatex.def b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-luatex.def
index 41371a4d723..ba3925205a4 100644
--- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-luatex.def
+++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-luatex.def
@@ -20,7 +20,7 @@
%%
%% File: l3backend-testphase.dtx
\ProvidesExplFile
- {l3backend-testphase-luatex.def}{2022-04-14}{}
+ {l3backend-testphase-luatex.def}{2022-05-11}{}
{LaTeX~PDF~management~testphase~bundle~backend~support: PDF output (LuaTeX)}
\RequirePackage{l3ref-tmp}
\cs_generate_variant:Nn \ref_label:nn {en}
diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-pdftex.def b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-pdftex.def
index 0843cbad60c..d6fcd9a5aa5 100644
--- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-pdftex.def
+++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-pdftex.def
@@ -20,7 +20,7 @@
%%
%% File: l3backend-testphase.dtx
\ProvidesExplFile
- {l3backend-testphase-pdftex.def}{2022-04-14}{}
+ {l3backend-testphase-pdftex.def}{2022-05-11}{}
{LaTeX~PDF~management~testphase~bundle~backend~support: PDF output (pdfTeX)}
\RequirePackage{l3ref-tmp}
\cs_generate_variant:Nn \ref_label:nn {en}
diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-xetex.def b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-xetex.def
index 7f00f69c4cc..586f3768029 100644
--- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-xetex.def
+++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-xetex.def
@@ -20,7 +20,7 @@
%%
%% File: l3backend-testphase.dtx
\ProvidesExplFile
- {l3backend-testphase-xetex.def}{2022-04-14}{}
+ {l3backend-testphase-xetex.def}{2022-05-11}{}
{LaTeX~PDF~management~testphase~bundle~backend~support: XeTeX}
\RequirePackage{l3ref-tmp}
\cs_generate_variant:Nn \ref_label:nn {en}
diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3pdffield-testphase.sty b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3pdffield-testphase.sty
index 8f7170a1d30..506f2fdee8f 100644
--- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3pdffield-testphase.sty
+++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3pdffield-testphase.sty
@@ -27,7 +27,7 @@
%% File: l3pdffield.dtx
\NeedsTeXFormat{LaTeX2e}
-\ProvidesExplPackage{l3pdffield-testphase}{2022-04-14}{0.95n}%
+\ProvidesExplPackage{l3pdffield-testphase}{2022-05-11}{0.95o}%
{form fields}
\csname HyField@NeedAppearancesfalse\endcsname % suppress NeedAppearances
\str_new:N \l__pdffield_tmpa_str
diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdflscape-ltx.sty b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdflscape-ltx.sty
index 6cabadb5a00..337cc6c4ccb 100644
--- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdflscape-ltx.sty
+++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdflscape-ltx.sty
@@ -22,7 +22,7 @@
%% This work consists of the main source file pdflscape-ltx.sty
%%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesExplPackage{pdflscape-ltx}{2022-04-14}{0.95n}
+\ProvidesExplPackage{pdflscape-ltx}{2022-05-11}{0.95o}
{Display of landscape pages in PDF - adaption of pdflscape to the PDFmanagement bundle (testphase)}
\DeclareOption*{\PassOptionsToPackage\CurrentOption{graphics}}
diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-firstaid.sty b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-firstaid.sty
index b653cc134b1..b600cb13267 100644
--- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-firstaid.sty
+++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-firstaid.sty
@@ -19,10 +19,10 @@
%% and all files in that bundle must be distributed together.
%%
%% File: pdfmanagement-firstaid.dtx
-\ProvidesExplPackage{pdfmanagement-firstaid}{2022-04-14}{0.95n}
+\ProvidesExplPackage{pdfmanagement-firstaid}{2022-05-11}{0.95o}
{LaTeX PDF management testphase bundle / firstaid-patches}
-\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__pdfmanagement_firstaid_#1_bool }
\bool_gset_true:c { g__pdfmanagement_firstaid_#1_bool }
@@ -152,45 +152,14 @@
}
{\RequirePackage{hyperxmp-patches-tmp-ltx}}
}
-\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__pdfmanagement_firstaid_colorspace_bool
+ {
+ \AddToHook
{
- \__pdf_backend_object_new:nn {__spc_extgstate_op_false}{dict}
- \__pdf_backend_object_write:nn
- {__spc_extgstate_op_false}
- {/Type /ExtGState~/op~false~/OP~false}
- \pdfmanagement_add:nnn
- {Page/Resources/ExtGState}
- {SPCko}
- {\__pdf_backend_object_ref:n {__spc_extgstate_op_false}}
- \__pdf_backend_object_new:nn {__spc_extgstate_op_true0}{dict}
- \__pdf_backend_object_write:nn
- {__spc_extgstate_op_true0}
- {/Type /ExtGState~/op~true~/OP~true~/OPM~0}%
- \pdfmanagement_add:nnn
- {Page/Resources/ExtGState}
- {SPCmz}
- {\__pdf_backend_object_ref:n {__spc_extgstate_op_true0}}
- \__pdf_backend_object_new:nn {__spc_extgstate_op_true1}{dict}
- \__pdf_backend_object_write:nn
- {__spc_extgstate_op_true1}
- {/Type /ExtGState~/op~true~/OP~true~/OPM~1}%
- \pdfmanagement_add:nnn
- {Page/Resources/ExtGState}
- {SPCop}
- {\__pdf_backend_object_ref:n {__spc_extgstate_op_true1}}
+ package/colorspace/after
}
- }
+ {\RequirePackage{colorspace-patches-tmp-ltx}}
+ }
%%
%%
%% End of file `pdfmanagement-firstaid.sty'.
diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-testphase.ltx b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-testphase.ltx
index a74b2d1702d..54bb1497583 100644
--- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-testphase.ltx
+++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-testphase.ltx
@@ -27,7 +27,7 @@
%% and all files in that bundle must be distributed together.
%%
%% File: pdfmanagement-testphase.dtx
-\ProvidesExplFile{pdfmanagement-testphase.ltx}{2022-04-14}{0.95n}
+\ProvidesExplFile{pdfmanagement-testphase.ltx}{2022-05-11}{0.95o}
{PDF~management~code~(testphase)}
%% File: l3pdfdict.dtx
\cs_new:Npn \__pdfdict_get_type:n #1
@@ -1042,7 +1042,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 }
{
@@ -1459,6 +1459,8 @@
%% File: l3pdfmeta.dtx
\msg_new:nnn {pdf }{unknown-standard}{The~standard~'#1'~is~unknown~and~has~been~ignored}
+\msg_new:nnn {pdf }{wrong-pdfversion}
+ {PDF~version~#1~is~too~#2~for~standard~'#3'.}
\tl_new:N\l__pdfmeta_tmpa_tl
\tl_new:N\l__pdfmeta_tmpb_tl
\str_new:N \l__pdfmeta_tmpa_str
@@ -1508,6 +1510,13 @@
{\prg_return_false:}
{\prg_return_true:}
}
+\cs_new_protected:Npn \__pdfmeta_standard_verify_handler_max_pdf_version:nn #1 #2
+ {
+ \pdf_version_compare:NnTF >
+ { #2 }
+ {\prg_return_false:}
+ {\prg_return_true:}
+ }
\cs_new_protected:Npn \__pdfmeta_standard_verify_handler_named_actions:nn #1 #2
{
@@ -1543,6 +1552,26 @@
{
\pdfmeta_standard_verify:nF { annot_flags }
{ \__pdfmeta_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}
+ }
+ }
}
\prop_new:c { g__pdfmeta_standard_pdf/A-1B_prop }
\prop_gset_from_keyval:cn { g__pdfmeta_standard_pdf/A-1B_prop }
@@ -1553,6 +1582,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
@@ -1614,7 +1644,8 @@
\prop_gremove:cn
{ g__pdfmeta_standard_pdf/A-2B_prop }
{ embed_content}
-
+\prop_gput:cnn
+ { g__pdfmeta_standard_pdf/A-2B_prop }{max_pdf_version}{1.7}
\prop_new:c { g__pdfmeta_standard_pdf/A-2U_prop }
\prop_gset_eq:cc
{ g__pdfmeta_standard_pdf/A-2U_prop }
@@ -1671,6 +1702,25 @@
{ g__pdfmeta_standard_pdf/A-3A_prop }{conformance}{A}
\prop_gput:cnn
{ g__pdfmeta_standard_pdf/A-3A_prop }{tagged}{}
+
+\prop_new:c { g__pdfmeta_standard_pdf/A-4_prop }
+\prop_gset_eq:cc
+ { g__pdfmeta_standard_pdf/A-4_prop }
+ { g__pdfmeta_standard_pdf/A-3U_prop }
+\prop_gput:cnn
+ { g__pdfmeta_standard_pdf/A-4_prop }{name}{pdf/A-4}
+\prop_gput:cnn
+ { g__pdfmeta_standard_pdf/A-4_prop }{level}{4}
+\prop_gput:cnn
+ { g__pdfmeta_standard_pdf/A-4_prop }{min_pdf_version}{2.0}
+\prop_gput:cnn
+ { g__pdfmeta_standard_pdf/A-4_prop }{year}{2020}
+\prop_gput:cnn
+ { g__pdfmeta_standard_pdf/A-4_prop }{Trailer_no_Info}{}
+\prop_gremove:cn
+ { g__pdfmeta_standard_pdf/A-4_prop }{conformance}
+\prop_gremove:cn
+ { g__pdfmeta_standard_pdf/A-4_prop }{max_pdf_version}
\prop_new:N \g__pdfmeta_outputintents_prop
\keys_define:nn { document / metadata }
{
diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-testphase.sty b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-testphase.sty
index 30ad83fa329..cfbd64cab8a 100644
--- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-testphase.sty
+++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-testphase.sty
@@ -19,7 +19,7 @@
%% and all files in that bundle must be distributed together.
%%
%% File: pdfmanagement-testphase.dtx
-\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}{}{
@@ -39,7 +39,8 @@
}
\ProcessOptions\relax
-%% can perhaps be combined or made optional ...
+\IfFileExists{tagpdf-base.sty}
+ {\RequirePackage{tagpdf-base}}{}
\input{pdfmanagement-testphase.ltx}
%%
%%
diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/transparent-ltx.sty b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/transparent-ltx.sty
index d92ef551d13..9c8e0ee942c 100644
--- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/transparent-ltx.sty
+++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/transparent-ltx.sty
@@ -3,7 +3,7 @@
%% a replacement for transparent sty from Heiko Oberdiek
%%
\NeedsTeXFormat{LaTeX2e}[2020/10/01]
-\ProvidesExplPackage{transparent-ltx}{2022-04-14}{0.95n}
+\ProvidesExplPackage{transparent-ltx}{2022-05-11}{0.95o}
{Transparency with color stacks (replacement for transparent.sty from Heiko Oberdiek)}%
\RequirePackage{l3opacity}
diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/xcolor-patches-tmp-ltx.sty b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/xcolor-patches-tmp-ltx.sty
index 3c298e5b992..17ecbfee312 100644
--- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/xcolor-patches-tmp-ltx.sty
+++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/xcolor-patches-tmp-ltx.sty
@@ -1,6 +1,6 @@
%% LaTeX2e file `xcolor-patches.sty'
%%
-\ProvidesPackage{xcolor-patches-tmp-ltx}[2022-04-14 v0.95n patch xcolor for l3color]
+\ProvidesPackage{xcolor-patches-tmp-ltx}[2022-05-11 v0.95o patch xcolor for l3color]
\@ifundefined{color_set:nn}{\RequirePackage{l3color}}{}
\ExplSyntaxOn