I'm using Aspose.Words for converting rtf files into pdf files.
My problem is, that the result pdf file does not keep the encoding of the source rtf file.
The pdf file even does not keep the source rtf file font and uses another font (Arial BoldMT).
The consequence of this is, that some special characters are not displayed correctly in the pdf file.
e.g. The characters "ő" and "ű" are displayed incorrectly.
You can see it in the TestOutputFile.pdf
I'm sending you a sample application and one rtf file (TestInputFile.rtf), that can be converted.
The conversion sample application creates PDF or DOCX file in the same dir, where the input file is.
I don't want to do any changes in the rtf file. I want to convert it as it is.
The core of the conversion always ends in the class RTFtoPDFConversionStrategy.
Convert method creates the result pdf.
None of the commented lines in the Convert method solved the problem.
Because there are pictures in the rtf file too, I need this line in the Convert method.
opt.MetafileRenderingMode = MetafileRenderingMode.Bitmap;
The same problem occurs, when I use byte array (which is actually rtf file content) instead of filepaths.
Can you help me please ?
Thank you in advance