For now we are developing front system that allows user to print html himself that will pass to aspose generation without modification and now i’m looking some called recommendations which practices and moments we should avoid to proper generation
I found couple by myself, but i’m sure there is possibly more than that?
@bloodboilAaromatic
Could you please specify the specific practices or moments you have already identified that should be avoided for proper generation with Aspose.Words?
-
Avoid deeply nested or malformed html structures
-
Avoid complex css (flexbox, transform)
-
Explicit content
Example " Text" or "Text " that causes on your version 24.x (not latest i know) some problems related to overall generations
-
Avoid comments
-
Consecutive Formatting tags
Example: <b><b>Text</b></b>
-
Better to avoid using <div>
<table>
or <img>
for an Aspose.Cells
We are started to trace aspects like that and preparing special documentation on your side, so i will accept any recommendations or any connected to this thread links to a proper research
@bloodboilAaromatic I am afraid, there is no list of restrictions and recommendations to HTML content. In most cases Aspose.Words mimics MS Word behavior when work with HTML content.
Usually Aspose.Words exports roundtrip information to HTML. So if you would like to check how some MS Word feature is expected by Aspose.Words to be represented in HTML, you can simply convert DOCX document to HTML and see how Aspose.Words writes it.