Convert PDF to HTML using Aspose.PDF for .NET - Non-English Characters are not rendered correctly

hi.
when i convert pdf file to Html i got a problem. i think is UTF-8 problem.

this is the file and the code

example.pdf (29.2 KB)

' ---=== The new CV TO HTML ===---
      					'---=== Convert to bytes ===---
      					Dim fs As System.IO.Stream = f.InputStream
      					Dim br As New BinaryReader(fs)
                Dim buffer() As Byte = br.ReadBytes(Convert.ToInt32(fs.Length))
                Dim htmlStream As New MemoryStream(buffer)
			   
                Dim fileArr = split(fileName,".")
                Dim fileType  = fileArr(ubound(fileArr))
                Dim htmlCv As String
               
				
				          Dim HtmlSaveOptionsa As String
                ' ===--- 1. if the file is Pdf  ---==='
                if lcase(fileType)="pdf" then
                    Dim docNewSteam As New MemoryStream()
				              Dim docHtmla As New Aspose.pdf.Document(htmlStream)

                    Dim doc As  new  Aspose.Pdf.Document(htmlStream)
                    Dim htmlOptions As  new Aspose.Pdf.HtmlSaveOptions()
                    htmlOptions.PartsEmbeddingMode = Aspose.Pdf.HtmlSaveOptions.PartsEmbeddingModes.EmbedAllIntoHtml
                    htmlOptions.LettersPositioningMethod = 0 '//LettersPositioningMethods.UseEmUnitsAndCompensationOfRoundingErrorsInCss
                    htmlOptions.RasterImagesSavingMode = Aspose.Pdf.HtmlSaveOptions.RasterImagesSavingModes.AsEmbeddedPartsOfPngPageBackground
                    htmlOptions.BatchSize = 640
                    doc.Save(docNewSteam, htmlOptions)

thank you :slight_smile:

@eranlipi

Thanks for contacting support.

We were able to notice that some non-English characters were not rendered correctly in output HTML file. We have logged this issue as PDFNET-47699 in our issue tracking system. We will further look into details of it and keep you posted with the status of its rectification. Please be patient and spare us little time.

We are sorry for the inconvenience.