[latex3-commits] [git/LaTeX3-latex3-pdfresources] develop: better support for pdf/a-4 (0d8671b)
Ulrike Fischer
fischer at troubleshooting-tex.de
Mon Feb 27 00:17:06 CET 2023
Repository : https://github.com/latex3/pdfresources
On branch : develop
Link : https://github.com/latex3/pdfresources/commit/0d8671bae0b0c510df44a7938e0df60d948979bd
>---------------------------------------------------------------
commit 0d8671bae0b0c510df44a7938e0df60d948979bd
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Mon Feb 27 00:17:06 2023 +0100
better support for pdf/a-4
>---------------------------------------------------------------
0d8671bae0b0c510df44a7938e0df60d948979bd
l3pdfmeta.dtx | 19 +++++++++++++------
1 file changed, 13 insertions(+), 6 deletions(-)
diff --git a/l3pdfmeta.dtx b/l3pdfmeta.dtx
index ed08282..0b28fb4 100644
--- a/l3pdfmeta.dtx
+++ b/l3pdfmeta.dtx
@@ -200,17 +200,18 @@
% 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[|no_CharSet|] CharSet is deprecated is pdf 2.0 and should not
+% be used in A-4. l3pdfmeta will therefore suppress it for the
+% engines pdftex and luatex (the other engines have no suitable option)
% \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.
-%
+% it should only contain the \texttt{/ModDate} entry. In
+% texlive 2023 the engines pdftex and luatex have primitives
+% to suppress the dictionary
+% and l3pdfmeta will make use of it.
% \end{description}
%
% \subsubsection{Tests with values and special handlers}
@@ -746,6 +747,10 @@
{
\pdfmeta_standard_verify:nF { annot_flags }
{ \@@_verify_pdfa_annot_flags: }
+ \pdfmeta_standard_verify:nF { Trailer_no_Info }
+ { \__pdf_backend_omit_info:n {1} }
+ \pdfmeta_standard_verify:nF { no_CharSet }
+ { \__pdf_backend_omit_charset:n {1} }
\pdfmeta_standard_verify:nnF { min_pdf_version }
{ \pdf_version: }
{ \msg_warning:nnxxx {pdf}{wrong-pdfversion}
@@ -938,6 +943,8 @@
{ 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 }{no_CharSet}{}
\prop_gput:cnn
{ g_@@_standard_pdf/A-4_prop }{Trailer_no_Info}{}
\prop_gremove:cn
More information about the latex3-commits
mailing list.