I am trying to save a doc file to PDF in Aspose.Words for Android (Java) using:
doc.save(PDF_FILE_PATH);
RTL and all charachters are OK except the Arabic ones that show in a strange format.
I read before that I need to set the font but how to do so on the Android one and what is the easiest thing to do so? since I only want to convert the doc file to pdf with aspose.Words
You can copy all the required fonts from Windows to inside a directory on your device and then specify the Font Folder that Aspose.Words will use.
In case the problem still remains, please ZIP and attach your input Word document, Aspose.Words’ generated PDF file showing the undesired behavior and the font files used in Word document here for testing. We will then investigate the issue on our end and provide you more information.
You can use any folder on your device for this purpose and give path inside setFontsFolder method. Make sure your app has storage read write permissions.
In case the problem still remains, please ZIP and attach your input Word document, Aspose.Words’ generated PDF file showing the undesired behavior and the font files used in Word document here for testing. We will then investigate the issue on our end and provide you more information.
If your ZIP file size is big then you can upload the ZIP file to Dropbox and share the Download link here for testing.