EditableDocumentGetEmbeddedHtml 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.
Namespace: GroupDocs.EditorAssembly: GroupDocs.Editor (in GroupDocs.Editor.dll) Version: 20.12.0.0
Syntaxpublic string GetEmbeddedHtml()
Public Function GetEmbeddedHtml As String
public:
String^ GetEmbeddedHtml()
member GetEmbeddedHtml : unit -> string
Return Value
Type:
StringString, which is not NULL or empty in any case
Exceptions
RemarksThis 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