Modifier and Type | Method and Description |
---|---|
Pdfcrowd.HtmlToImageClient |
Pdfcrowd.HtmlToImageClient.setAutoDetectElementToConvert(boolean value)
The main HTML element for conversion is detected automatically.
|
Pdfcrowd.HtmlToImageClient |
Pdfcrowd.HtmlToImageClient.setBackgroundColor(String color)
The output image background color.
|
Pdfcrowd.HtmlToImageClient |
Pdfcrowd.HtmlToImageClient.setBlockAds(boolean value)
Try to block ads.
|
Pdfcrowd.HtmlToImageClient |
Pdfcrowd.HtmlToImageClient.setClientCertificate(String certificate)
A client certificate to authenticate Pdfcrowd converter on your web server.
|
Pdfcrowd.HtmlToImageClient |
Pdfcrowd.HtmlToImageClient.setClientCertificatePassword(String password)
A password for PKCS12 file with a client certificate if it is needed.
|
Pdfcrowd.HtmlToImageClient |
Pdfcrowd.HtmlToImageClient.setConverterVersion(String version)
Set the converter version.
|
Pdfcrowd.HtmlToImageClient |
Pdfcrowd.HtmlToImageClient.setCookies(String cookies)
Set cookies that are sent in Pdfcrowd HTTP requests.
|
Pdfcrowd.HtmlToImageClient |
Pdfcrowd.HtmlToImageClient.setCustomHttpHeader(String header)
Set a custom HTTP header that is sent in Pdfcrowd HTTP requests.
|
Pdfcrowd.HtmlToImageClient |
Pdfcrowd.HtmlToImageClient.setCustomJavascript(String javascript)
Run a custom JavaScript after the document is loaded and ready to print.
|
Pdfcrowd.HtmlToImageClient |
Pdfcrowd.HtmlToImageClient.setDataAutoEscape(boolean value)
Auto escape HTML symbols in the input data before placing them into the output.
|
Pdfcrowd.HtmlToImageClient |
Pdfcrowd.HtmlToImageClient.setDataEncoding(String encoding)
Set the encoding of the data file set by setDataFile.
|
Pdfcrowd.HtmlToImageClient |
Pdfcrowd.HtmlToImageClient.setDataFile(String dataFile)
Load the input data for template rendering from the specified file.
|
Pdfcrowd.HtmlToImageClient |
Pdfcrowd.HtmlToImageClient.setDataFormat(String dataFormat)
Specify the input data format.
|
Pdfcrowd.HtmlToImageClient |
Pdfcrowd.HtmlToImageClient.setDataIgnoreUndefined(boolean value)
Ignore undefined variables in the HTML template.
|
Pdfcrowd.HtmlToImageClient |
Pdfcrowd.HtmlToImageClient.setDataOptions(String options)
Set the advanced data options:csv_delimiter - The CSV data delimiter, the default is ,.xml_remove_root - Remove the root XML element from the input data.data_root - The name of the root element inserted into the input data without a root node (e.g.
|
Pdfcrowd.HtmlToImageClient |
Pdfcrowd.HtmlToImageClient.setDataString(String dataString)
Set the input data for template rendering.
|
Pdfcrowd.HtmlToImageClient |
Pdfcrowd.HtmlToImageClient.setDataTrimBlocks(boolean value)
Auto trim whitespace around each template command block.
|
Pdfcrowd.HtmlToImageClient |
Pdfcrowd.HtmlToImageClient.setDebugLog(boolean value)
Turn on the debug logging.
|
Pdfcrowd.HtmlToImageClient |
Pdfcrowd.HtmlToImageClient.setDefaultEncoding(String encoding)
Set the default HTML content text encoding.
|
Pdfcrowd.HtmlToImageClient |
Pdfcrowd.HtmlToImageClient.setDisableImageLoading(boolean value)
Do not load images.
|
Pdfcrowd.HtmlToImageClient |
Pdfcrowd.HtmlToImageClient.setDisableJavascript(boolean value)
Do not execute JavaScript.
|
Pdfcrowd.HtmlToImageClient |
Pdfcrowd.HtmlToImageClient.setDisableRemoteFonts(boolean value)
Disable loading fonts from remote sources.
|
Pdfcrowd.HtmlToImageClient |
Pdfcrowd.HtmlToImageClient.setElementToConvert(String selectors)
Convert only the specified element from the main document and its children.
|
Pdfcrowd.HtmlToImageClient |
Pdfcrowd.HtmlToImageClient.setElementToConvertMode(String mode)
Specify the DOM handling when only a part of the document is converted.
|
Pdfcrowd.HtmlToImageClient |
Pdfcrowd.HtmlToImageClient.setFailOnAnyUrlError(boolean failOnError)
Abort the conversion if any of the sub-request HTTP status code is greater than or equal to 400 or if some sub-requests are still pending.
|
Pdfcrowd.HtmlToImageClient |
Pdfcrowd.HtmlToImageClient.setFailOnMainUrlError(boolean failOnError)
Abort the conversion if the main URL HTTP status code is greater than or equal to 400.
|
Pdfcrowd.HtmlToImageClient |
Pdfcrowd.HtmlToImageClient.setHttpAuth(String userName,
String password)
Set credentials to access HTTP base authentication protected websites.
|
Pdfcrowd.HtmlToImageClient |
Pdfcrowd.HtmlToImageClient.setHttpAuthPassword(String password)
Set the HTTP authentication password.
|
Pdfcrowd.HtmlToImageClient |
Pdfcrowd.HtmlToImageClient.setHttpAuthUserName(String userName)
Set the HTTP authentication user name.
|
Pdfcrowd.HtmlToImageClient |
Pdfcrowd.HtmlToImageClient.setHttpProxy(String proxy)
A proxy server used by Pdfcrowd conversion process for accessing the source URLs with HTTP scheme.
|
Pdfcrowd.HtmlToImageClient |
Pdfcrowd.HtmlToImageClient.setHttpsProxy(String proxy)
A proxy server used by Pdfcrowd conversion process for accessing the source URLs with HTTPS scheme.
|
Pdfcrowd.HtmlToImageClient |
Pdfcrowd.HtmlToImageClient.setJavascriptDelay(int delay)
Wait the specified number of milliseconds to finish all JavaScript after the document is loaded.
|
Pdfcrowd.HtmlToImageClient |
Pdfcrowd.HtmlToImageClient.setLoadIframes(String iframes)
Specifies how iframes are handled.
|
Pdfcrowd.HtmlToImageClient |
Pdfcrowd.HtmlToImageClient.setLocale(String locale)
Set the locale for the conversion.
|
Pdfcrowd.HtmlToImageClient |
Pdfcrowd.HtmlToImageClient.setNoBackground(boolean value)
Do not print the background graphics.
|
Pdfcrowd.HtmlToImageClient |
Pdfcrowd.HtmlToImageClient.setNoXpdfcrowdHeader(boolean value)
Do not send the X-Pdfcrowd HTTP header in Pdfcrowd HTTP requests.
|
Pdfcrowd.HtmlToImageClient |
Pdfcrowd.HtmlToImageClient.setOnLoadJavascript(String javascript)
Run a custom JavaScript right after the document is loaded.
|
Pdfcrowd.HtmlToImageClient |
Pdfcrowd.HtmlToImageClient.setOutputFormat(String outputFormat)
The format of the output file.
|
Pdfcrowd.HtmlToImageClient |
Pdfcrowd.HtmlToImageClient.setProxy(String host,
int port,
String userName,
String password)
Specifies an HTTP proxy that the API client library will use to connect to the internet.
|
Pdfcrowd.HtmlToImageClient |
Pdfcrowd.HtmlToImageClient.setReadabilityEnhancements(String enhancements)
The input HTML is automatically enhanced to improve the readability.
|
Pdfcrowd.HtmlToImageClient |
Pdfcrowd.HtmlToImageClient.setRetryCount(int count)
Specifies the number of automatic retries when the 502 or 503 HTTP status code is received.
|
Pdfcrowd.HtmlToImageClient |
Pdfcrowd.HtmlToImageClient.setScaleFactor(int factor)
Set the scaling factor (zoom) for the output image.
|
Pdfcrowd.HtmlToImageClient |
Pdfcrowd.HtmlToImageClient.setScreenshotHeight(int height)
Set the output image height in pixels.
|
Pdfcrowd.HtmlToImageClient |
Pdfcrowd.HtmlToImageClient.setScreenshotWidth(int width)
Set the output image width in pixels.
|
Pdfcrowd.HtmlToImageClient |
Pdfcrowd.HtmlToImageClient.setTag(String tag)
Tag the conversion with a custom value.
|
Pdfcrowd.HtmlToImageClient |
Pdfcrowd.HtmlToImageClient.setUseHttp(boolean value)
Specifies if the client communicates over HTTP or HTTPS with Pdfcrowd API.
|
Pdfcrowd.HtmlToImageClient |
Pdfcrowd.HtmlToImageClient.setUseMobileUserAgent(boolean value)
Use a mobile user agent.
|
Pdfcrowd.HtmlToImageClient |
Pdfcrowd.HtmlToImageClient.setUsePrintMedia(boolean value)
Use the print version of the page if available (@media print).
|
Pdfcrowd.HtmlToImageClient |
Pdfcrowd.HtmlToImageClient.setUserAgent(String agent)
Set a custom user agent HTTP header.
|
Pdfcrowd.HtmlToImageClient |
Pdfcrowd.HtmlToImageClient.setVerifySslCertificates(boolean value)
Do not allow insecure HTTPS connections.
|
Pdfcrowd.HtmlToImageClient |
Pdfcrowd.HtmlToImageClient.setWaitForElement(String selectors)
Wait for the specified element in a source document.
|
Pdfcrowd.HtmlToImageClient |
Pdfcrowd.HtmlToImageClient.setZipMainFilename(String filename)
Set the file name of the main HTML document stored in the input archive.
|
Copyright © 2023. All rights reserved.