We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Accent problem in a PDF


We have an issue when saving a PDF file with aspose PDF. In fact, when we fill a text inside a Row, the textstate’s font is Helvetica and when saving the document, all words which contains ï or à are modified to the Times New Roman font.

What should we do for having allways the Helvetica font for all words with accent ?


By the way, here is the code we used :

protected static final TextFragment TI_NORMAL = new TextFragment();

Document doc = new Document();
Table table = new Table();
Row row= table.getRows().add();
row.getCells().add(“Test à trou”, TI_NORMAL.getTextState());
ByteArrayOutputStream byteArrayOutputSteam = new ByteArrayOutputStream();
doc.save(byteArrayOutputSteam, SaveFormat.Pdf);


Hi Laurent,

Thanks for using our API's.

I have tested the scenario and have managed to reproduce same problem. For the sake of correction, I have logged it as PDFJAVA-36104 in our issue tracking system. We will further look into the details of this problem and will keep you posted on the status of correction. Please be patient and spare us little time. We are sorry for this inconvenience.


I have the same problem in .net. Is there already a solution for this problem?


Hello Esther,

Thanks for contacting support.

It has been investigated that Helvetica font does not support some characters with accents (e.g. ščř), that is why while saving document, API restore the font to default. However, issue can be fixed by using fonts which support character with accent other than Helvetica. In a case of any further assistance, please feel free to contact us.

Best Regards,