Squares instead cyrillic letters- when I save word to pdf

When I try to save word file as pdf, I see bad symbols (square) instead cyrillic text.

When I start my class from test it works good. Which may affect the language or font setting?

Hi Boris,

Thanks for your
inquiry. Please note that Aspose.Words requires TrueType fonts when
rendering documents to fixed-page formats (PDF, XPS or SWF). Make sure
you have all the Fonts installed on your machine you’re using to convert
Word document to PDF format. I would suggest you please read the
following articles:

http://www.aspose.com/docs/display/wordsjava/How+to++Specify+True+Type+Fonts+Location
http://www.aspose.com/docs/display/wordsjava/How+Aspose.Words+Uses+True+Type+Fonts

I would suggest you please upgrade to the latest version (v14.4.1) from here and let us know how it goes on your side. Hope this helps you.

1 Like

Hi! Thanks for your answer! I solved the problem. In my case the reason is that the program runs on a workstation, but running on the server. For some unknown reason, the system does not find the default font folder (C:/Windows/Fonts). To correct this you must specify the location of fonts. I.e. FontSettings.setFontsFolder(System.getenv(“windir”)+"\Fonts\", false);

Hi Boris,

Thanks for your feedback. It is nice to hear
from you that you have solved your issue. Please feel free to ask if
you have any question about Aspose.Words, we will be happy to help you.