Converting PDF to HTML removes vertical text

Hi!


I have a pdf with vertical texts. When converting to HTML all vertical texts are missing.

I’m using Aspose.PDF 11.2.0.0.

Any ideia what might be happening? Is the vertical text not supported when converting to HTML?

Thanks in advance

Hi Ricardo,


Thanks for your inquriy. We will appreciate it if you please share your sample PDF document here, so we will look into it and will guide you accordingly.

We are sorry for the inconvenience caused.

Best Regards,

Hi! Here is the file I’m having trouble with.

Hi Ricardo,


Thanks for sharing the resource files.

I have tested the scenario and have managed to reproduce same problem. For the sake of correction, I have logged it as PDFNEWNET-40911 in our issue tracking system. We will further look into the details of this problem and will keep you posted on the status of correction. Please be patient and spare us little time. We are sorry for this inconvenience.

Hi! Thanks for the feedback and I’ll be waiting for the the fix.

Hi Ricardo,


Thanks for your feedback. Sure, we will notify you as soon as we made some significant progress towards issue resolution.

Thanks for your patience and cooperation.

Best Regards,

Any status update regarding this issue?

Hi RIcardo,

Thanks for your inquiry. We have investigated the issue and would like to suggest to use UseZOrder property to render vertical text in the HTML as following. It will help you to accomplish the task.

// Load source PDF file
Document doc = new Document(@"D:\Downloads\quiver_solution_description_v2.pdf");

// Instantiate HTML Save options object
HtmlSaveOptions newOptions = new HtmlSaveOptions();
newOptions.UseZOrder = true;

// Enable option to embed all resources inside the HTML
newOptions.PartsEmbeddingMode = HtmlSaveOptions.PartsEmbeddingModes.EmbedAllIntoHtml;

// This is just optimization for IE and can be omitted
newOptions.LettersPositioningMethod = HtmlSaveOptions.LettersPositioningMethods.UseEmUnitsAndCompensationOfRoundingErrorsInCss;
newOptions.RasterImagesSavingMode = HtmlSaveOptions.RasterImagesSavingModes.AsEmbeddedPartsOfPngPageBackground;
newOptions.FontSavingMode = HtmlSaveOptions.FontSavingModes.SaveInAllFormats;

// Output file path
string outHtmlFile = myDir + "temp/quiver_solution_description_v2.html";

doc.Save(outHtmlFile, newOptions);

Best Regards,