We have used Aspose.pdf for convert while display content of file in HTML. I have selected one PDF file and got an issue while converting content into HTML and it displayed some invalid characters.I have tried with newest version 11.4.0 but not worked.I have attached here original sample pdf file which gives an issue so this will help you to identify cause of this issue.
Below is code that we have used in our asp.net application,
Aspose.Pdf.Document pdfDocument = new Aspose.Pdf.Document(sourcePath);
HtmlSaveOptions htmlOptions = new HtmlSaveOptions();
htmlOptions.FixedLayout = true;
htmlOptions.FontSavingMode = HtmlSaveOptions.FontSavingModes.AlwaysSaveAsTTF;
htmlOptions.RasterImagesSavingMode = HtmlSaveOptions.RasterImagesSavingModes.AsEmbeddedPartsOfPngPageBackground;
Please reply as soon as possible as we got this issue on our live environment so need to solve in urgent basis.Feel free to ask me more details if you want.