←Select platform

EmbedImages Property

Summary

Indicate whether images are to be embedded in the document.

Syntax
C#
VB
C++
public bool EmbedImages { get; set; } 
Public Property EmbedImages() As Boolean 
   Get 
   Set 
public:  
   property bool EmbedImages 
   { 
      bool get() 
      void set(bool value) 
   } 

Property Value

true to embed images in the final HTML document. Otherwise, false. Default value is false.

Remarks

The document writer will create an HTML img element for each image encountered while saving an HTML file. When the value of EmbedImages is false, the document writer will save the image data to disk and sets the img.src value to the relative path of the file.

When the value of EmbedImages is true, the document writer will convert the image data to a data URI for example data:image/png;base64,iVBOR... and set the value directly into img.src.

In both cases, the image format can be set using ImageType.

Target Platforms

Help Version 20.0.2020.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Document.Writer Assembly