Creates PDF documents from HTML sources.
Syntax
Smartsite SXML | Copy Code |
---|---|
<se:pdfdocument /> |
Parameters
Name | Data Type | Properties | Description |
---|---|---|---|
BaseUrl | String | - | Sets the base URL for the requested HTML. |
ContentDisposition | Enum | - | Gets or sets the ContentDisposition mode that is set on the output stream. |
FileName | String | - | Sets the file name that will be set as the content disposition filename. |
Html | String |
Default
|
Sets the source HTML. |
Images | Collection | - | Sets the images being used in the PDF document. The assigned image key can be used to reference the image in the PDF settings. |
Location | Locator | - | Sets the location of the source HTML. This can be an url, a smartsite item or a site file. |
PdfSettings | String |
RawData
|
Sets the PDF settings to be applied to the created PDF document. |
ResolveIncludes | Boolean | - | Sets if includes in the html file should be resolved and placed inline. This option applies to css, javascript and images. |
Streaming | Boolean | - | Sets if this macro should stream the binary data to the output stream (which is faster and consumes less memory) or use the default SXML flow (which is slower). |
WriteResponseHeaders | Boolean | - | Sets a value indicating whether to write response headers. |
Shared Parameters
Local Viper Methods
Viper | Extension | Description |
---|---|---|
This.ClearForcedResult |
Sets the result of the macro. used to override the normal handling of the result creation. |
|
This.GetForcedResult | Gets the forced result of the macro, set by overriding the normal rendering using SetForcedResult(). | |
This.RenderTime | ✓ | Returns the render time of the macro in milliseconds. |
This.SetForcedResult |
Sets the result of the macro. used to override the normal handling of the result creation. |