Font sssue converting pdf to html

I have a pdf document produced by aspose:

<</Author()/CreationDate(D:20170825083052+02’00’)/ModDate(D:20170825083052+02’00’)/Producer(Aspose.Pdf for .NET 17.8)/Subject()/Title()/Creator(Aspose Ltd.)>>

The pdf has sections with different fonts (one of them being Calibri 11). When it is converted to html the section that has the Calibri 11 font is not formatted correct. All spaces are removed from the section and all lines ends with a “tf”.

A sample pdf can be submitted, code for converting the pdf document:

using (var ms = new MemoryStream(pdf))
{
using (var pdfDocument = new Document(ms))
{
var saveOptions = new HtmlSaveOptions
{
PartsEmbeddingMode = HtmlSaveOptions.PartsEmbeddingModes.EmbedAllIntoHtml,
LettersPositioningMethod = HtmlSaveOptions.LettersPositioningMethods.UseEmUnitsAndCompensationOfRoundingErrorsInCss,
RasterImagesSavingMode = HtmlSaveOptions.RasterImagesSavingModes.AsEmbeddedPartsOfPngPageBackground,
FontSavingMode = HtmlSaveOptions.FontSavingModes.SaveInAllFormats
};
pdfDocument.Save(Path.Combine(tmpPath, fileName), saveOptions);
}
}

@codality

Thanks for contacting support.

We have tested the scenario in our environment while using your code snippet with one of our sample PDFs and Aspose.Pdf for .NET 17.8. We were unable to notice the issue which you have mentioned. For your reference, we have attached sample input/output document(s), used in testing the scenario.

PDF_CalibriFont.zip (63.4 KB)
PDF_CalibriFont.pdf (61.0 KB)

Would you please share your sample PDF document, as it seems document specific issue. We will test the scenario again and address it accordingly.

Yes that document works for us aswell, we recently upgraded to the same version of Aspose. Please find attached pdf that won’t work.test aspose.pdf (99.4 KB)

@codality

Thanks for sharing requested document.

We have tested the scenario and managed to replicate the issue at our end. Therefore, have logged an issue as PDFNET-43256 in our issue tracking system, for the sake of correction. We will further investigate it in details and keep you posted with the status of its rectification. Please be patient and spare us little time.

We are sorry for this inconvenience.

Hello, is there any progress or hotfix regarding the issue “PDFNET-43256”.
Best regards, codality

@codality

Thanks for your inquiry.

We are glad to inform you that your issue related to missing white spaces and all lines ends, has been resolved and its fix will be included in Aspose.Pdf for .NET 17.11, which will be released in next month. We greatly appreciate your patience and cooperation in this regard. In case of any further assistance, please feel free to contact us.

@codality

Thanks for your patience.

We are pleased to inform you that earlier reported issue PDFNET-43256, has been resolved in latest version Aspose.Pdf for .NET 17.11. Please try using the latest release version and in case you face any issue, please feel free to contact us.