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

Free Support Forum - aspose.com

Convert pdf with text upside down inside to HTML incorrect

I used Aspose Pdf version 17.2 for converting pdf with some text upside-down inside to html with embeded all resource. But the text in HTML can not display correctly.

using (Document pdfDocument = new Document(source))
// Instantiate HTML Save options object
HtmlSaveOptions saveOptions = new HtmlSaveOptions();
// Enable option to embed all resources inside the HTML
saveOptions.PartsEmbeddingMode = HtmlSaveOptions.PartsEmbeddingModes.EmbedAllIntoHtml;
// This is just optimization for IE and can be omitted
saveOptions.LettersPositioningMethod =
saveOptions.RasterImagesSavingMode =
saveOptions.FontSavingMode = HtmlSaveOptions.FontSavingModes.SaveInAllFormats;

                saveOptions.FixedLayout = true;

                saveOptions.PageBorderIfAny = new SaveOptions.BorderInfo(new SaveOptions.BorderPartStyle
                    LineType = SaveOptions.HtmlBorderLineType.Solid,
                    Color = System.Drawing.Color.Gray,
                    WidthInPoints = 1

                pdfDocument.Save(singleHtmlFileName, saveOptions);

image.png (30.6 KB)
pastedImage (1).png (82.2 KB)

Could you help me to fix it ?



Thanks for contacting support.

Can you please share the input PDF file, so that we can test the scenario in our environment. We are sorry for this inconvenience.

We have prepared a sample PDF document with upside down text Input.pdf (101.8 KB) and managed to replicate the problem of incorrect text rendering. It has been logged under the ticket ID PDFNET-43332 in our bug tracking system. We have linked your post to this ticket and will keep you informed regarding any available updates.

However, we recommend you to share the source PDF because it will help us to test the actual scenario. Your response is awaited.


Please use following UseZOrder conversion option in order to prevent the issue:

saveOptions.UseZOrder = true;