# HtmlSiteBundlePdfExtensions

Renders bounded ZIP site bundles through the existing HTML/PDF request and resource owners.

Class 

`OfficeIMO.Html.Pdf`

**Namespace**

`OfficeIMO.Html.Pdf`

**Assembly**

`OfficeIMO.Html.Pdf`

**Source revision**

`3b680b1b6fb1` with working tree changes

**Source**

[HtmlPdfConverterExtensions.SiteBundle.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Html.Pdf/HtmlToPdf/HtmlPdfConverterExtensions.SiteBundle.cs#L9)

**Modifiers**

static

Renders bounded ZIP site bundles through the existing HTML/PDF request and resource owners.

## Inheritance

- object
- HtmlSiteBundlePdfExtensions

Filter members 

Show inherited

## Methods

`public static HtmlPdfRenderRequestResult RenderToPdfResult(HtmlSiteBundle bundle, HtmlRenderRequest request, CancellationToken cancellationToken = default)` [#](#method-rendertopdfresult-officeimo-html-htmlsitebundle-officeimo-html-htmlrenderrequest-threading-cancellationtoken)

[HtmlPdfConverterExtensions.SiteBundle.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Html.Pdf/HtmlToPdf/HtmlPdfConverterExtensions.SiteBundle.cs#L9)

Renders a PDF intent and retains HTML surface mapping and the combined PDF report. Embedded resources require AllowEmbeddedPackageResources; host reads remain separately controlled.

Parameters

**bundle OfficeIMO.Html.HtmlSiteBundle required**

**request OfficeIMO.Html.HtmlRenderRequest required**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`HtmlPdfRenderRequestResult`

`public static Task<HtmlPdfRenderRequestResult> RenderToPdfResultAsync(HtmlSiteBundle bundle, HtmlRenderRequest request, CancellationToken cancellationToken = default)` [#](#method-rendertopdfresultasync-officeimo-html-htmlsitebundle-officeimo-html-htmlrenderrequest-threading-cancellationtoken)

[HtmlPdfConverterExtensions.SiteBundle.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Html.Pdf/HtmlToPdf/HtmlPdfConverterExtensions.SiteBundle.cs#L18)

Asynchronously renders a PDF intent with the archive's snapshot resources, without implicitly enabling local or remote resource access.

Parameters

**bundle OfficeIMO.Html.HtmlSiteBundle required**

**request OfficeIMO.Html.HtmlRenderRequest required**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`Task<HtmlPdfRenderRequestResult>`

## 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?`

<!-- PowerForge markdown artifact sha256:37BB26F682BF1B8F080BD996795141BE0357661A546D2FCF74F0CDD0F38C12F6 -->
