Problem In rendering Persian languge number

hi
when i open a word document in persian language and then save it to tiff or pdf file, all word in document save correctly but numbers is in latin.please help me.

Hi Saeed,

Thanks for your inquiry. Could you please attach your input Word document here for testing? I will investigate the issue on my side and provide you more information.

Best Regards,

Hello
i attach the doc file and tif file that your component produced it.
1.doc is word file and 2.tif is it’s tif file.

Hi Saeed,

Thanks for your inquiry. I have attached the PDF and TIFF output documents, i.e. generated on my side using Aspose.Words v11.8.0, here for your reference. Please create a screenshot that highlights the problematic areas in these documents and attach it here for further testing?

Best Regards,

hello
thank you about working on this topic.
I opened the doc file in word and take a picture and set the area that number is in persian but your tif fle convert it to english number

Hi Saeed,

Thanks for the additional information. You need to specify the symbol set that is used to represent numbers while rendering to fixed page formats as follows:

Document doc = new Document(@"C:\Temp\1.doc");
PdfSaveOptions soPdf = new PdfSaveOptions();
soPdf.NumeralFormat = NumeralFormat.Context;
ImageSaveOptions soTiff = new ImageSaveOptions(SaveFormat.Tiff);
soTiff.NumeralFormat = NumeralFormat.Context;
doc.Save(@"C:\Temp\out.pdf", soPdf);
doc.Save(@"C:\Temp\out.tiff", soTiff);

I hope, this helps.

Best Regards,