ConversionSettings

public final class ConversionSettings

Settings for Conversion. Values fall back through three levels: document → SDK → built-in default. Writes target the document only when set on a document's settings, otherwise the SDK globally when set on SdkSettings.

Functions

Link copied to clipboard
public final boolean getHtmlBlockFileAccess()
Blocks local file references while rendering HTML, MHTML or email input.
Link copied to clipboard
public final boolean getHtmlBlockNetworkAccess()
Blocks all network requests while rendering HTML, MHTML or email input.
Link copied to clipboard
public final boolean getHtmlBlockPrivateNetworkAccess()
Blocks private, loopback, link-local and IPv6 unique-local destinations, including names resolving to them.
Link copied to clipboard
public final boolean getHtmlBlockWebSocketsAndWorkers()
Blocks WebSockets, WebTransport and dedicated, shared and service workers for all destinations while rendering HTML, MHTML or email input.
Link copied to clipboard
The maximum time, in milliseconds, to wait for page media (images and other sub-resources) to finish loading when rendering HTML, MHTML, or email input, before the page is captured.
Link copied to clipboard
Host names, IP addresses and CIDR ranges allowed through private-network blocking.
Link copied to clipboard
public final boolean getHtmlScriptsExecutionDisabled()
Disables document JavaScript while rendering HTML, MHTML or email input.
Link copied to clipboard
public final int getTimeoutMilliseconds()
The conversion timeout in milliseconds.
Link copied to clipboard
public final void setHtmlBlockFileAccess(boolean value)
Blocks local file references while rendering HTML, MHTML or email input.
Link copied to clipboard
public final void setHtmlBlockNetworkAccess(boolean value)
Blocks all network requests while rendering HTML, MHTML or email input.
Link copied to clipboard
public final void setHtmlBlockPrivateNetworkAccess(boolean value)
Blocks private, loopback, link-local and IPv6 unique-local destinations, including names resolving to them.
Link copied to clipboard
public final void setHtmlBlockWebSocketsAndWorkers(boolean value)
Blocks WebSockets, WebTransport and dedicated, shared and service workers for all destinations while rendering HTML, MHTML or email input.
Link copied to clipboard
public final void setHtmlMediaLoadTimeoutMilliseconds(Integer value)
The maximum time, in milliseconds, to wait for page media (images and other sub-resources) to finish loading when rendering HTML, MHTML, or email input, before the page is captured.
Link copied to clipboard
public final void setHtmlPrivateNetworkAllowList(Array<String> value)
Host names, IP addresses and CIDR ranges allowed through private-network blocking.
Link copied to clipboard
public final void setHtmlScriptsExecutionDisabled(boolean value)
Disables document JavaScript while rendering HTML, MHTML or email input.
Link copied to clipboard
public final void setTimeoutMilliseconds(int value)
The conversion timeout in milliseconds.