After load document and convert to pdf, PDF font is changing to arial

Hi Team,
Case 1 - After load document and convert to pdf, PDF font is changing to arial.

Case 2 - How to convert docx file into image with java. I’ve tried with below code but it was converting only first page but i need entire document to be convert image.
Ex: Document have multiple pages, while converting document to images each page has to change to image.

Please help and share sample code in java for above cases

@csaspose,

  1. Please be sure that you are using the latest version of Aspose.Words for Java 21.10 and have your font installed.
    If you still face problem, please attach your input document and your font file here for testing.

  2. Please use the following code snippet to convert docx document to multiple images:

ImageSaveOptions options = new ImageSaveOptions(SaveFormat.PNG);
for (int i = 0; i < doc.getPageCount(); i++)
{
	options.setPageSet(new PageSet(i));
	doc.save("C:\\Temp\\page" + String.valueOf(i+1) + ".png", options);
}