Converting a PCL file with french accents

Hello, I am trying to convert a pcl file contain french accents such as ê, however, I get some gibberish text in the generated pdf file.

The pcl file contains only the below text

abcdefghijklmnopqrstuvwxyz

ÀÃÇÊÉÕàãçêõáéíóú

and the generated pdf file is attached testspecial.pdf (26.1 KB)

After generating my document object and filling it, I use the save method, one of the signatures take an OutputStream but I can’t send it a file encoding for the file.

How can I keep the french accents in my generated pdf file?

@khaled.chehab,

You are using quite an old version of the Aspose.PDF for Java API. We recommend our clients always use the latest version of Aspose.PDF for Java API because it incorporates the recent features and enhancements. Kindly send us a ZIP of the input PCL file and code. We will investigate your scenario in our environment and share our findings with you.