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!
Hi Ricardo,
Hi! Here is the file I’m having trouble with.
Hi Ricardo,
Hi! Thanks for the feedback and I’ll be waiting for the the fix.
Hi Ricardo,
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,