[latex3-commits] [git/LaTeX3-latex3-pdfresources] develop: backend for omitcharset (fa34915)
Ulrike Fischer
fischer at troubleshooting-tex.de
Thu Feb 23 00:53:51 CET 2023
Repository : https://github.com/latex3/pdfresources
On branch : develop
Link : https://github.com/latex3/pdfresources/commit/fa34915e36d8cd4f011f6a3d53311864239c20ad
>---------------------------------------------------------------
commit fa34915e36d8cd4f011f6a3d53311864239c20ad
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Thu Feb 23 00:53:51 2023 +0100
backend for omitcharset
>---------------------------------------------------------------
fa34915e36d8cd4f011f6a3d53311864239c20ad
l3backend-testphase.dtx | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/l3backend-testphase.dtx b/l3backend-testphase.dtx
index e812e75..d8d8ebc 100644
--- a/l3backend-testphase.dtx
+++ b/l3backend-testphase.dtx
@@ -2047,6 +2047,37 @@
}
%</xdvipdfmx|dvipdfmx|dvips|dvisvgm>
% \end{macrocode}
+%
+% \subsection{Suppressing deprecated PDF features}
+%
+% \texttt{/ProcSet}, \texttt{/CharSet} and the \texttt{/Info} dictionary
+% are deprecated in PDF 2.0. For the pdf/A-4 standard they must be suppressed.
+% Not every engine is able to do this, but for pdfTeX and luatex we define suitable
+% backend command. \texttt{/ProcSet} is suppress automatically in pdf 2.0 which should be
+% ok.
+% The option to omit /Charset exists already for quite some time:
+% \begin{macro}{\__pdf_backend_omit_charset:n}
+% \begin{macrocode}
+%<*xdvipdfmx|dvipdfmx|dvips|dvisvgm>
+\cs_new_protected:Npn \__pdf_backend_omit_charset:n #1 {} %#1 number
+%</xdvipdfmx|dvipdfmx|dvips|dvisvgm>
+%<*pdftex>
+\cs_new_protected:Npn \__pdf_backend_omit_charset:n #1 %#1 number
+ {
+ \tex_pdfomitcharset:D = #1 \scan_stop:
+ }
+%</pdftex>
+%<*luatex>
+\cs_new_protected:Npn \__pdf_backend_omit_charset:n #1 %#1 number
+ {
+ \tex_pdfvariable:D omitcharset = #1 \scan_stop:
+ }
+%</luatex>
+% \end{macrocode}
+% \end{macro}
+%
+%
+%
% \subsection{lua code for lualatex}
% \begin{macrocode}
%<*lua>
More information about the latex3-commits
mailing list.