GetEmbeddedHtml
EditableDocument.GetEmbeddedHtml method
Returns all content of this HTML document with all related resources in a form of a single string, where all resources are embedded inside the HTML markup in a base64-encoded form.
public string GetEmbeddedHtml()
Return Value
String, which is not NULL or empty in any case
Exceptions
exception | condition |
---|---|
ObjectDisposedException | This EditableDocument instance was already disposed |
Remarks
This method converts this EditableDocument into HTML and serializes in into single string, where all resources are embedded into string along with HTML markup:
- All images from HTML->BODY are converted to base64 format and are located in the IMG ‘src’ attribute
- All stylesheets are stored in the STYLE elements inside HTML->HEAD sections
- All images from stylesheets are converted to base64 format and located in the appropriate CSS declarations
- All fonts from stylesheets are converted to base64 format and located in the appropriate @font-face at-rules
See Also
- class EditableDocument
- namespace GroupDocs.Editor
- assembly GroupDocs.Editor