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