UNPKG

asposewordscloud

Version:
27 lines (26 loc) 1.69 kB
import { AttributeInfo } from '../internal/attributeInfo'; import { HtmlSaveOptionsData } from './htmlSaveOptionsData'; export declare const importsMapMhtmlSaveOptionsData: { HtmlSaveOptionsData: typeof HtmlSaveOptionsData; }; /** * Container class for mhtml save options. */ export declare class MhtmlSaveOptionsData extends HtmlSaveOptionsData { /** * Attribute type map */ static attributeTypeMap: Array<AttributeInfo>; /** * Returns attribute type map */ static getAttributeTypeMap(): AttributeInfo[]; /** * Gets or sets a value indicating whether to use CID (Content-ID) URLs to reference resources (images, fonts, CSS) included in MHTML documents. The default value is false. * By default, resources in MHTML documents are referenced by file name (for example, "image.png"), which are matched against "Content-Location" headers of MIME parts. This option enables an alternative method, where references to resource files are written as CID (Content-ID) URLs (for example, "cid:image.png") and are matched against "Content-ID" headers. In theory, there should be no difference between the two referencing methods and either of them should work fine in any browser or mail agent. In practice, however, some agents fail to fetch resources by file name. If your browser or mail agent refuses to load resources included in an MTHML document (doesn't show images or doesn't load CSS styles), try exporting the document with CID URLs. */ exportCidUrlsForMhtmlResources: boolean; constructor(init?: Partial<MhtmlSaveOptionsData>); collectFilesContent(_resultFilesContent: Array<any>): void; validate(): void; }