[NTG-pdftex] Error with \pdfglyphtounicode when surrogates areinvolved.

Akira Kakuto kakuto at fuk.kindai.ac.jp
Tue May 30 11:39:14 CEST 2017


> Here is a minimal working example that shows the issue.

In the original test.tex, I encountered an assertion error
in tounicode.c. If I change as

\pdfcompresslevel=0
\pdfgentounicode=1
\input glyphtounicode.tex
\pdfglyphtounicode{Z}{1D481}   % MATH bold-italic-Z U+1D481 (U+D835 U+DC81)

Z $Z$

\bye

I obtained an attached test.pdf, in which I can find two strings
<5A> <D835DC81>.

Best,
Akira
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.pdf
Type: application/pdf
Size: 20604 bytes
Desc: not available
URL: <http://mailman.ntg.nl/pipermail/ntg-pdftex/attachments/20170530/204eaaec/attachment-0001.pdf>


More information about the ntg-pdftex mailing list