←Select platform

EmbedImages Property

Summary

Indicate whether images are to be embedded in the document.

Syntax
C#
Objective-C
C++/CLI
Python
public bool EmbedImages { get; set; } 
@property (nonatomic, assign) BOOL embedImages; 
public:  
   property bool EmbedImages 
   { 
      bool get() 
      void set(bool value) 
   } 
EmbedImages # get and set (HtmlDocumentOptions) 

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 22.0.2023.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Document.Writer Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.