Class HtmlSaveOptions.HtmlImageSavingInfo

HtmlSaveOptions.HtmlImageSavingInfo class

This class represents set of data that related to external resource image file’s saving during PDF to HTML conversion.

public class HtmlImageSavingInfo : ResourceSavingInfo

Constructors

NameDescription
HtmlImageSavingInfo()The default constructor.

Properties

NameDescription
ResourceType { get; }Set by converter. Supposed file name that goes from converter to code of custom method Can be use in custom code to decide how to process or where save that file

Fields

NameDescription
ContentStreamSet by converter. Represents binary content of saved file.
CustomProcessingCancelledthis flag must set to “true” in custom code if for some reasons proposed file should be processed not with custom code but with converter’s code itself in standard for converter way. So, it’ setting set to true means that custom code did not process referenced file and converter must handle it itself (in both sences - for saving somewhere and for naming in referencing file).
HtmlHostPageNumberTells to custom code to what page of generated set of HTML page-files pertains saved image. If splitting on pages turned off this value always contains ‘1’ since in such case Only one HTML page is generated.
ImageTypeRepresents type of saved image referenced in HTML. Set by converter and can be used in custom code to decide what should be done
ParentTypeSaved image can pertain to HTML itself or can be extracted. from SVG embedded to HTML. This property can tell to custom code what’s that type of parent of processed image. It set by converter and can be used in custom code to decide what should be done with that image (f.e. custom code can decide where to save image or how it must be referenced in parent’s content).
PdfHostPageNumberTells to custom code to what page of original PDF document pertains saved image Since it’s possible that will be saved not all pages of original document, this value tells us about host page number in original PDF. If original page number for some reason is inknown, it allways return ‘1’
SupposedFileNameSet by converter. Supposed file name that goes from converter to code of custom method Can be use in custom code to decide how to process or where save that file

See Also