I have a text to draw on pdf, something like 500 €/hour. I am using PdfBox-Android library.
I was trying to write above string as follows,
pageContentStream.drawString("500 " + Html.fromHtml(getString(R.string.euro)).toString() + "/hour");
where euro is defined in strings.xml as
<string name="euro">(€)</string>
<string name="pound">(£)</string>
With above code PdfBox-Androidis writing some gibberish characters.
I found one solution here to write € using pdfbox, which is working perfectly.
My question is how to write the text next to € sign in one go..?
Do I need to write € first, then move text next to it and then write remaining text? I don't feel that would be a correct solution.