# HtmlOfficeImoAssets

OfficeIMO.JavaScript's document writers and ChartForgeX adapter, shipped with this package so hosts can offer the chart menu's Excel and PDF downloads.

 Class  

`ChartForgeX.Interactivity.Html`

**Namespace**

`ChartForgeX.Interactivity.Html`

**Assembly**

`ChartForgeX.Interactivity.Html`

**Source**

[HtmlOfficeImoAssets.cs:60](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlOfficeImoAssets.cs#L60)

**Modifiers**

static

OfficeIMO.JavaScript's document writers and ChartForgeX adapter, shipped with this package so hosts can offer the chart menu's Excel and PDF downloads. To enable them, publish [HtmlOfficeImoAssets.Files](/api/chartforgex-interactivity-html-htmlofficeimoassets/) with [HtmlInteractiveAssetFiles.WriteTo](/api/chartforgex-interactivity-html-htmlinteractiveassetfiles/) and reference the scripts in that order. Publishing the adapter also writes the default Archivo PDF fonts and their license beside it.

## Inheritance

- object
- HtmlOfficeImoAssets

## Remarks

The files are unmodified OfficeIMO bundles under the MIT license (see [HtmlOfficeImoAssets.License](/api/chartforgex-interactivity-html-htmlofficeimoassets/)). Their names carry a content hash, and [HtmlAssetFile.Integrity](/api/chartforgex-interactivity-html-htmlassetfile/) gives the sha384 value for an integrity attribute or a hash-based policy. Neither file evaluates strings as code or writes inline styles, so pages served with script-src 'self'; style-src 'self' can load them.

 Filter members   

    Show inherited   

 

## Methods

 `public static IReadOnlyList<HtmlAssetFile> Files()` [#](#method-files) 

[HtmlOfficeImoAssets.cs:68](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlOfficeImoAssets.cs#L68)

Returns both scripts in load order. [HtmlInteractiveAssetFiles.WriteTo](/api/chartforgex-interactivity-html-htmlinteractiveassetfiles/) also publishes the adapter's default font files and their license.

Returns

 `IReadOnlyList<HtmlAssetFile>` [HtmlOfficeImoAssets.Core](/api/chartforgex-interactivity-html-htmlofficeimoassets/) followed by [HtmlOfficeImoAssets.ChartForgeXAdapter](/api/chartforgex-interactivity-html-htmlofficeimoassets/). 

 `public static IReadOnlyList<HtmlBinaryAssetFile> PdfFonts()` [#](#method-pdffonts) 

[HtmlOfficeImoAssets.cs:60](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlOfficeImoAssets.cs#L60)

Returns the default PDF fonts for hosts that serve the adapter with their own asset publisher.

Returns

 `IReadOnlyList<HtmlBinaryAssetFile>` [HtmlOfficeImoAssets.PdfFontRegular](/api/chartforgex-interactivity-html-htmlofficeimoassets/) followed by [HtmlOfficeImoAssets.PdfFontBold](/api/chartforgex-interactivity-html-htmlofficeimoassets/). Serve both beside the adapter script. 

## Inherited Methods

 `public virtual bool Equals(object? obj)` [#](#method-equals-object) 

Inherited from object

Parameters

**obj object? required**

Returns

 `bool` 

 `public virtual int GetHashCode()` [#](#method-gethashcode) 

Inherited from object

Returns

 `int` 

 `public Type GetType()` [#](#method-gettype) 

Inherited from object

Returns

 `Type` 

 `public virtual string? ToString()` [#](#method-tostring) 

Inherited from object

Returns

 `string?` 

## Properties

 `public static HtmlAssetFile Core { get; }` [#](#property-core) 

[HtmlOfficeImoAssets.cs:34](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlOfficeImoAssets.cs#L34)

Gets OfficeIMO's document writers (officeimo.min.js). Load it before [HtmlOfficeImoAssets.ChartForgeXAdapter](/api/chartforgex-interactivity-html-htmlofficeimoassets/).

 `public static HtmlAssetFile ChartForgeXAdapter { get; }` [#](#property-chartforgexadapter) 

[HtmlOfficeImoAssets.cs:38](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlOfficeImoAssets.cs#L38)

Gets the ChartForgeX adapter (officeimo-chartforgex-adapter.min.js), which adds OfficeIMO.exportChartForgeX. Load [HtmlOfficeImoAssets.Core](/api/chartforgex-interactivity-html-htmlofficeimoassets/) first to provide the compatible modules it needs.

 `public static string License { get; }` [#](#property-license) 

[HtmlOfficeImoAssets.cs:41](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlOfficeImoAssets.cs#L41)

Gets OfficeIMO's MIT license notice, to keep beside the files wherever they are published.

 `public static HtmlBinaryAssetFile PdfFontRegular { get; }` [#](#property-pdffontregular) 

[HtmlOfficeImoAssets.cs:52](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlOfficeImoAssets.cs#L52)

Gets the default static Archivo Regular face. The chart fetches it beside the adapter on the first PDF download and OfficeIMO embeds the glyphs it uses. Set [HtmlChartInteractionOptions.PdfFontUrl](/api/chartforgex-interactivity-html-htmlchartinteractionoptions/) to replace it.

 `public static HtmlBinaryAssetFile PdfFontBold { get; }` [#](#property-pdffontbold) 

[HtmlOfficeImoAssets.cs:56](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlOfficeImoAssets.cs#L56)

Gets the default static Archivo Bold face for bold PDF text, such as titles. A replacement family uses its own [HtmlChartInteractionOptions.PdfBoldFontUrl](/api/chartforgex-interactivity-html-htmlchartinteractionoptions/) or its regular face.

 `public static string PdfFontLicense { get; }` [#](#property-pdffontlicense) 

[HtmlOfficeImoAssets.cs:63](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlOfficeImoAssets.cs#L63)

Gets the SIL Open Font License notice for the PDF fonts, to keep beside them wherever they are published.

<!-- PowerForge markdown artifact sha256:F3EDEF910B71DE3619BCEA559A8E060238577F965A25EC1000F54215A27B7762 -->
