how to add unicode in truetype0font on pdfbox 2.0.0?
<p>I've been using the PDFBOX version 2.0.0 in a Java project to convert pdfs to text.</p>

<p>several of my pdfs are missing the ToUnicode method, so they come out in Gibberish while I export them.</p>

<p><code>2016-09-14 10:44:55 WARN  org.apache.pdfbox.pdmodel.font.PDSimpleFont(1):322 - No Unicode mapping for 694 (30) in font MPBAAA+F1</code></p>

<p>in the WARN above, instead of the real character, a gibberish unicode (30) was presented.</p>

<p>I was able to overcome it by editing the <code>additional.txt</code> file in pdfbox, since from trial &amp; error I understood that the code of the character (694 in this case) represents a certain Hebrew letter (צ).</p>

<p>here's a short example of what I've edited inside the file:</p>

<pre><code>-694;05E6 #HexaDecimal value for the letter צ
-695;05E7
-696;05E8
</code></pre>

<p>later I've encountered almost the same warning on a different pdf, but instead of gibberish characters I got no characters at all.
a more detailed explination of this issue can be seen here - <a href="https://stackoverflow.com/questions/37862159/pdf-reading-via-pdfbox-in-java">pdf reading via pdfbox in java</a></p>

<p><code>2016-09-14 11:07:10 WARN  org.apache.pdfbox.pdmodel.font.PDType0Font(1):431 - No Unicode mapping for CID+694 (694) in font ABCDEE+Tahoma,Bold</code></p>

<p>As you can see, the warning came from a different class (<code>PDType0Font</code>) rather than the first warning (<code>PDSimpleFont</code>), but the code name (694) is the same in both of them and they are both talking about the same character.</p>

<p>Does there's a different file that I should edit other than <code>additional.txt</code> to point the 694 code (the Hebrew letter צ) to it's correct unicode?</p>

<p>Thanks
<a href="https://i.stack.imgur.com/vja5p.png" rel="noreferrer"><img src="https://i.stack.imgur.com/vja5p.png" alt="main root"></a></p>

<p><a href="https://i.stack.imgur.com/nIkvR.png" rel="noreferrer"><img src="https://i.stack.imgur.com/nIkvR.png" alt="drill down on the first type0 font"></a></p>