How might I get the following source, using the MathTime 2 Lite fonts, to pass PDF/A-2u validation? The error is: "The Font dictionary of all fonts shall define the map of all used character codes to Unicode values, either via a To Unicode entry …"
\documentclass{article}
\usepackage{amsmath}% load now to avoid \dddot, \ddddot clash with mtpro2
\usepackage{newtxtext}
\usepackage{mtp2lite}
\usepackage{blindtext}
\usepackage[a-2u]{pdfx}
\begin{document}
\blindmathpaper
\end{document}
Note that the mtp2lite.sty
file used is the same as the file mtpro2.sty
, included in the "mtplite" files from CTAN, with one necessary change made so as to avoid a "no room for new count" error. Namely, the line
\alloc@0\count\countdef\insc@unt\pointcount@
is replaced with:
\newcount\pointcount@
The PDF validator app veraPDF gives a validation failure report including the following:
<validationReport profileName="PDF/A-2U validation profile" statement="PDF file is not compliant with Validation Profile requirements." isCompliant="false">
<details passedRules="123" failedRules="1" passedChecks="8111" failedChecks="3">
<rule specification="ISO 19005-2:2011" clause="6.2.11.7" testNumber="1" status="failed" passedChecks="0" failedChecks="3">
<description>The Font dictionary of all fonts shall define the map of all used character codes to Unicode values, either via a ToUnicode entry,
or other mechanisms as defined in ISO 19005-2, 6.2.11.7.2.</description>
<object>Glyph</object>
<test>toUnicode != null</test>
<check status="failed">
<context>root/document[0]/pages[1](20 0 obj PDPage)/contentStream[0](21 0 obj PDContentStream)/operators[104]/usedGlyphs[0](FFYPYY+MT2SYT 0 0 0)</context>
</check>
<check status="failed">
<context>root/document[0]/pages[0](6 0 obj PDPage)/contentStream[0](8 0 obj PDContentStream)/operators[299]/usedGlyphs[0](OVWIGM+MT2MIT 25 0 0)</context>
</check>
<check status="failed">
<context>root/document[0]/pages[0](6 0 obj PDPage)/contentStream[0](8 0 obj PDContentStream)/operators[248]/usedGlyphs[0](XIQLHG+MT2SYS 0 0 0)</context>
</check>
</rule>
</details>
</validationReport>
unicode-math
. However, themmap
package has Unicode mappings for T1, TS1, OML, OMX and so on. I believenewtxmath
andnewpxmath
also put some effort into making Unicode mappings work.unicode-math
and still do that?