We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Pdf to html wrong parse in hebrew

hi. when i try to make pdf to html at Hebrew language. i get it not good

i join sample of code and the file
tasks-showPic.api.pdf (47.7 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:


We were able to notice the issue in our environment that Hebrew language characters were overlapped at some places in the output HTML. Hence, we have logged an issue as PDFNET-47838 in our issue tracking system for the sake of further investigation. We will look into details of it and keep you posted with the status of its correction. Please be patient and spare us some time.

We are sorry for the inconvenience.