We are opening a Word file and rendering it page-by-page to PNG. There are some significant display differences when the page is rendered to PNG. One of the most noticeable is tabs. In the attached document, the tabs cause text to be pushed onto a new line, making the document difficult to read. Is there a solution or guidance you can give me?
I have attached a screenshot from Word of the original file (original.png), as well as the PNG file generated by Aspose.Words (aspose.png) with the misaligned tabs.
My code is:
----
Aspose.Words.License license = new Aspose.Words.License();
license.SetLicense("Aspose.Total.lic");
Aspose.Words.Document wordDoc = new Aspose.Words.Document(FILEPATH);
Aspose.Words.Saving.ImageSaveOptions options = new Aspose.Words.Saving.ImageSaveOptions(SaveFormat.Png);
options.PageIndex = 1;
options.PageCount = 1;
options.Scale = 1;
options.PrettyFormat = true;
wordDoc.Save(Response, FILENAME + ".png", Aspose.Words.ContentDisposition.Inline, options);
—
Thanks!