Hello
HtmlSaveOptions has ExportPageSetup / HtmlVersion / ImageResolution properties but HtmlFixedSaveOptions does not have them all.
Since they are almost identical, either HtmlSaveOptions shall not have them, or HtmlFixedSaveOptions shall have them all, am I right?
The same goes for HtmlFixedSaveOptions:
ExportEmbeddedCss / ExportEmbeddedFonts / ExportEmbeddedImages / ExportEmbeddedSvg
all are missing from HtmlSaveOptions
Matching them will prevent confusions
Also, kindly advise if AllowEmbeddingPostScriptFonts which available in both HtmlFixedSaveOptions and HtmlSaveOptions does have any effect? If yes, how? Thanks
@australian.dev.nerds Flow HTML and HTML Fixed are both HTML based formats but they are absolutely different.
When you save the document with HtmlFixedSaveOptions
the document is rendered and look the same as it look if you save it to PDF or XPS using Aspose.Words. HtmlFixed format is good for viewing document, but it does not preserve original internal document structure and cannot be converted back to DOCX.
When you save the document with HtmlSaveOptions
, the document is saved as regular flow HTML and itβs appearance depends on the browser rendering engine. There is no guaranty the document will look exactly the same in browser as it looks in MS Word. You will get a similar result if save the document to HTML using MS Word.
So some option applicable for HTML Fixed are not applicable for Flow HTML and vice versa.
1 Like
Thanks for the excellent details, just kindly advise if AllowEmbeddingPostScriptFonts which available in both HtmlFixedSaveOptions and HtmlSaveOptions does have any effect on saving these 2 formats?
@australian.dev.nerds AllowEmbeddingPostScriptFonts
is inherited from SaveOptions
and is not applicable to Html
and HtmlFixed
formats. The option is applicable only to MS Word formats that support embedding fonts: DOC, DOCX and RTF formats only.