Behavior
Email From
The sender email. It can be empty if specified in your mailer plugin.
- Location:
- Expert Settings → Behavior → Email From
- Examples:
-
-
Plugin setting:
info@example.com -
Shortcode:
email_from
[save_as_image_pdfcrowd email_from="info@example.com"] -
PHP function:
email_from
echo create_save_as_image_pdfcrowd_button(array('email_from' => 'info@example.com'));
-
Plugin setting:
Email Recipient
Choose how to get the recipient's email. It can be dynamic or fixed. The fixed value may contain either a single email address or a comma-separated list of email addresses.
- Location:
- Expert Settings → Behavior → Email Recipient
- Default:
user- Allowed Values:
-
-
The address of the logged in user, otherwise prompt for an email address— Value for shortcode and PHP function: "user" -
Prompt for an email address— Value for shortcode and PHP function: "prompt" -
Email address— Value for shortcode and PHP function: "address"
-
- Examples:
-
-
Plugin setting:
Prompt for an email address -
Shortcode:
email_recipient
[save_as_image_pdfcrowd email_recipient="prompt"] -
PHP function:
email_recipient
echo create_save_as_image_pdfcrowd_button(array('email_recipient' => 'prompt'));
-
Plugin setting:
Email Cc
Additional recipients who will receive a copy of the email. It can be either a single email address or a comma-separated list of email addresses.
- Location:
- Expert Settings → Behavior → Email Cc
- Examples:
-
-
Plugin setting:
john@example.com -
Shortcode:
email_cc
[save_as_image_pdfcrowd email_cc="john@example.com"] -
PHP function:
email_cc
echo create_save_as_image_pdfcrowd_button(array('email_cc' => 'john@example.com'));
-
Plugin setting:
Email Bcc
Additional recipients who will receive a copy of the email without revealing their email addresses to the other recipients. It can be either a single email address or a comma-separated list of email addresses.
- Location:
- Expert Settings → Behavior → Email Bcc
- Examples:
-
-
Plugin setting:
mary@example.com -
Shortcode:
email_bcc
[save_as_image_pdfcrowd email_bcc="mary@example.com"] -
PHP function:
email_bcc
echo create_save_as_image_pdfcrowd_button(array('email_bcc' => 'mary@example.com'));
-
Plugin setting:
Email Subject
{{ }} that are dynamically expanded. Available variables are: - site - site name
- site_url - site url
- title - current page title
- user_name - user's login name
- user_first_name - user's first name
- user_last_name - user's last name
- user_display_name - user's display name
- Location:
- Expert Settings → Behavior → Email Subject
- Default:
{{site}} - {{title}} Image- Examples:
-
-
Plugin setting:
{{user_name}} - Report -
Shortcode:
email_subject
[save_as_image_pdfcrowd email_subject="{{user_name}} - Report"] -
PHP function:
email_subject
echo create_save_as_image_pdfcrowd_button(array('email_subject' => '{{user_name}} - Report'));
-
Plugin setting:
Email Message
{{ }} that are dynamically expanded. Available variables are: - site - site name
- site_url - site url
- title - current page title
- user_name - user's login name
- user_first_name - user's first name
- user_last_name - user's last name
- user_display_name - user's display name
- Location:
- Expert Settings → Behavior → Email Message
- Default:
<p>Dear {{user_first_name}} {{user_last_name}},</p> <p>Please, find {{title}} attached.</p> <p>Best Regards,<br> <a href="{{site_url}}">{{site}}</a></p>- Examples:
-
-
Plugin setting:
<p>Dear {{user_first_name}} {{user_last_name}}, ...</p> -
Shortcode:
email_message
[save_as_image_pdfcrowd email_message="<p>Dear {{user_first_name}} {{user_last_name}}, ...</p>"] -
PHP function:
email_message
echo create_save_as_image_pdfcrowd_button(array('email_message' => '<p>Dear {{user_first_name}} {{user_last_name}}, ...</p>'));
-
Plugin setting:
Email Dialogs
Specify how to display a dialog when the mail configuration requires it. Such cases are Success dialog, Error dialog and Prompt dialog for recipient email.
- Location:
- Expert Settings → Behavior → Email Dialogs
- Default:
modal- Allowed Values:
-
-
System dialogs— Value for shortcode and PHP function: "system" -
Predefined modal dialogs— Value for shortcode and PHP function: "modal" -
No dialogs— Value for shortcode and PHP function: "none" -
Custom dialogs— Value for shortcode and PHP function: "custom"
-
- Examples:
-
-
Plugin setting:
Predefined modal dialogs -
Shortcode:
email_dialogs
[save_as_image_pdfcrowd email_dialogs="modal"] -
PHP function:
email_dialogs
echo create_save_as_image_pdfcrowd_button(array('email_dialogs' => 'modal'));
-
Plugin setting:
Output Name
The name of the output file. The name may not be specified and will be automatically created according to the page URL.
- Location:
- Expert Settings → Behavior → Output Name
- Default:
the name is generated automatically- Examples:
-
-
Plugin setting:
report.png -
Shortcode:
output_name
[save_as_image_pdfcrowd output_name="report.png"] -
PHP function:
output_name
echo create_save_as_image_pdfcrowd_button(array('output_name' => 'report.png'));
-
Plugin setting:
Image Created Callback
The callback function is useful for custom actions, e.g. saving the image to a local folder, setting a custom HTTP response header, collecting email entered by user.
The callback function must be accessible to the plugin, with the recommended location being either the functions.php file or within the page contents.
Return true from your custom callback if you wish to skip the default functionality. The default functionality depends on the Button Click Action option and is either an HTTP response or email with the created image.
- output - the generated image data
- options - options used for the conversion
- file_name - the image filename
- error - null for a successful conversion otherwise WP_Error
- Location:
- Expert Settings → Behavior → Image Created Callback
- Examples:
-
-
Plugin setting:
save_to_local -
Shortcode:
image_created_callback
[save_as_image_pdfcrowd image_created_callback="save_to_local"] -
PHP function:
image_created_callback
echo create_save_as_image_pdfcrowd_button(array('image_created_callback' => 'save_to_local'));
-
Plugin setting:
Custom Data
- Location:
- Expert Settings → Behavior → Custom Data
- Examples:
-
-
Plugin setting:
{'post_id': 123} -
Shortcode:
custom_data
[save_as_image_pdfcrowd custom_data="{'post_id': 123}"] -
PHP function:
custom_data
echo create_save_as_image_pdfcrowd_button(array('custom_data' => '{"post_id": 123}'));
-
Plugin setting:
Error Page
$_GET['error-code'],
$_GET['error-message'] and
$_GET['error-details'].
- Location:
- Expert Settings → Behavior → Error Page
- Default:
the plugin's default error page- Examples:
-
-
Plugin setting:
https://mysite.com/pdfcrowd-error/ -
Shortcode:
error_page
[save_as_image_pdfcrowd error_page="https://mysite.com/pdfcrowd-error/"] -
PHP function:
error_page
echo create_save_as_image_pdfcrowd_button(array('error_page' => 'https://mysite.com/pdfcrowd-error/'));
-
Plugin setting:
Mode
Conversion Mode
Specify the source for the conversion to the image.
- Location:
- Basic Settings → Mode → Conversion Mode
- Default:
url- Allowed Values:
-
-
URL—The web page URL is uploaded for the conversion.
This mode is suitable for a public website.Value for shortcode and PHP function: "url" -
Upload—The contents of the web page is uploaded for the conversion.
This mode is suitable for any website, password-protected or not publicly accessible website.Value for shortcode and PHP function: "upload" -
Content—The current HTML contents shown in the browser is sent for conversion.
This mode is suitable for web forms and dynamic HTML contents.
It is recommended to check Disable JavaScript option too or disable WordPress caching.Value for shortcode and PHP function: "content" -
Development—The contents of the web page and some local assets are uploaded for the conversion.
This mode is suitable for a website which is not accessible from the Internet (e.g. localhost).
Local images and some CSS may not appear in the converted document.Value for shortcode and PHP function: "development" -
Auto—If web page URL is specified explicitly, the "url" mode is used otherwise "upload" mode is used.Value for shortcode and PHP function: "auto"
-
- Examples:
-
-
Plugin setting:
Content -
Shortcode:
conversion_mode
[save_as_image_pdfcrowd conversion_mode="content"] -
PHP function:
conversion_mode
echo create_save_as_image_pdfcrowd_button(array('conversion_mode' => 'content'));
-
Plugin setting:
URL Lookup
It allows to choose how to retrieve URLs for the Conversion Mode-URL. It is suitable for a website using different location than permalink.
- Location:
- Expert Settings → Mode → URL Lookup
- Default:
auto- Allowed Values:
-
-
Auto— Value for shortcode and PHP function: "auto" -
Location— Value for shortcode and PHP function: "location" -
Permalink— Value for shortcode and PHP function: "permalink"
-
- Examples:
-
-
Plugin setting:
Location -
Shortcode:
url_lookup
[save_as_image_pdfcrowd url_lookup="location"] -
PHP function:
url_lookup
echo create_save_as_image_pdfcrowd_button(array('url_lookup' => 'location'));
-
Plugin setting:
Diagnostics
- Location:
- Expert Settings → Mode → Diagnostics
- Default:
0- Allowed Values:
-
-
0 -
1
-
- Examples:
-
-
Shortcode:
diagnostics
[save_as_image_pdfcrowd diagnostics=1] -
PHP function:
diagnostics
echo create_save_as_image_pdfcrowd_button(array('diagnostics' => 1));
-
Shortcode:
Conversion Format
Output Format
The output file format.
- Location:
- Basic Settings → Conversion Format → Output Format
- Default:
png- Allowed Values:
-
-
png -
jpg -
gif -
tiff -
bmp -
ico -
ppm -
pgm -
pbm -
pnm -
psb -
pct -
ras -
tga -
sgi -
sun -
webp
-
- Examples:
-
-
Plugin setting:
webp -
Shortcode:
output_format
[save_as_image_pdfcrowd output_format="webp"] -
PHP function:
output_format
echo create_save_as_image_pdfcrowd_button(array('output_format' => 'webp'));
-
Plugin setting:
Image Output
Screenshot Width
Set the output image width in pixels.
- Location:
- Basic Settings → Image Output → Screenshot Width
- Constraint:
-
- The accepted range is 96-65000.
- Default:
1024- Examples:
-
-
Plugin setting:
1920 -
Shortcode:
screenshot_width
[save_as_image_pdfcrowd screenshot_width=1920] -
PHP function:
screenshot_width
echo create_save_as_image_pdfcrowd_button(array('screenshot_width' => 1920));
-
Plugin setting:
Screenshot Height
Set the output image height in pixels. If it is not specified, actual document height is used.
- Location:
- Basic Settings → Image Output → Screenshot Height
- Constraint:
-
- Must be a positive integer.
- Examples:
-
-
Plugin setting:
1080 -
Shortcode:
screenshot_height
[save_as_image_pdfcrowd screenshot_height=1080] -
PHP function:
screenshot_height
echo create_save_as_image_pdfcrowd_button(array('screenshot_height' => 1080));
-
Plugin setting:
Scale Factor
Set the scaling factor (zoom) for the output image.
- Location:
- Expert Settings → Image Output → Scale Factor
- Constraint:
-
- Must be a positive integer.
- Default:
100- Examples:
-
-
Plugin setting:
50 -
Shortcode:
scale_factor
[save_as_image_pdfcrowd scale_factor=50] -
PHP function:
scale_factor
echo create_save_as_image_pdfcrowd_button(array('scale_factor' => 50));
-
Plugin setting:
Background Color
The output image background color in RGB or RGBA hex format. Use transparent (00000000) for PNG overlays or solid colors for web display.
- Location:
- Expert Settings → Image Output → Background Color
- Constraint:
-
- The value must be in RRGGBB or RRGGBBAA hexadecimal format.
- Examples:
-
-
Plugin setting:
00ff00 -
Shortcode:
background_color
[save_as_image_pdfcrowd background_color="00ff00"] -
PHP function:
background_color
echo create_save_as_image_pdfcrowd_button(array('background_color' => '00ff00'));
-
Plugin setting:
General Options
Use Print Media
Use the print version of the page if available via @media print CSS rules. Enable this when converting websites that have print-optimized styles. Many sites hide navigation, ads, and sidebars in print mode.
Produces cleaner PDFs by using the design the website creator intended for printing.
- Location:
- Expert Settings → General Options → Use Print Media
- Default:
false- Examples:
-
-
Shortcode:
use_print_media
[save_as_image_pdfcrowd use_print_media=true] -
PHP function:
use_print_media
echo create_save_as_image_pdfcrowd_button(array('use_print_media' => true));
-
Shortcode:
No Background
Do not print the background graphics to create printer-friendly PDFs. Use this when documents will be physically printed to save ink costs and improve readability.
Removes background colors, images, and patterns while preserving text and foreground content. Particularly useful for documents with dark backgrounds or decorative elements.
- Location:
- Expert Settings → General Options → No Background
- Default:
false- Examples:
-
-
Shortcode:
no_background
[save_as_image_pdfcrowd no_background=true] -
PHP function:
no_background
echo create_save_as_image_pdfcrowd_button(array('no_background' => true));
-
Shortcode:
Disable JavaScript
Do not execute JavaScript during conversion. Use this to improve conversion speed when JavaScript is not needed, prevent dynamic content changes, or avoid security risks from untrusted scripts.
Note that disabling JavaScript means lazy-loaded images and AJAX content will not load.
- Location:
- Expert Settings → General Options → Disable JavaScript
- Default:
false- Examples:
-
-
Shortcode:
disable_javascript
[save_as_image_pdfcrowd disable_javascript=true] -
PHP function:
disable_javascript
echo create_save_as_image_pdfcrowd_button(array('disable_javascript' => true));
-
Shortcode:
Disable Image Loading
Do not load images during conversion to create text-only PDFs. Use this to significantly speed up conversion, reduce file size, or create accessible text-focused documents.
Use this for converting documentation where images are not needed, reducing bandwidth usage, or creating lightweight PDFs for email distribution.
- Location:
- Expert Settings → General Options → Disable Image Loading
- Default:
false- Examples:
-
-
Shortcode:
disable_image_loading
[save_as_image_pdfcrowd disable_image_loading=true] -
PHP function:
disable_image_loading
echo create_save_as_image_pdfcrowd_button(array('disable_image_loading' => true));
-
Shortcode:
Disable Remote Fonts
Disable loading fonts from remote sources. Use this to speed up conversion by avoiding font download delays, ensure consistent rendering with system fonts, or work around font loading failures.
Note that text will fall back to system fonts, which may change the document's appearance.
- Location:
- Expert Settings → General Options → Disable Remote Fonts
- Default:
false- Examples:
-
-
Shortcode:
disable_remote_fonts
[save_as_image_pdfcrowd disable_remote_fonts=true] -
PHP function:
disable_remote_fonts
echo create_save_as_image_pdfcrowd_button(array('disable_remote_fonts' => true));
-
Shortcode:
Use Mobile User Agent
Use a mobile user agent when making requests to the source URL.
- Location:
- Expert Settings → General Options → Use Mobile User Agent
- Default:
false- Examples:
-
-
Shortcode:
use_mobile_user_agent
[save_as_image_pdfcrowd use_mobile_user_agent=true] -
PHP function:
use_mobile_user_agent
echo create_save_as_image_pdfcrowd_button(array('use_mobile_user_agent' => true));
-
Shortcode:
Load Iframes
Specifies how iframes are handled during conversion. Use "all" to include all embedded content (videos, maps, widgets). Use "same-origin" to include only content from the same domain for security purposes. Use "none" to exclude all iframes for faster conversion and to avoid third-party content issues.
Disabling iframes can significantly improve performance and reliability.
- Location:
- Expert Settings → General Options → Load Iframes
- Default:
all- Allowed Values:
-
-
all— All iframes are loaded. -
same-origin— Only iframes with the same origin as the main page are loaded. -
none— Iframe loading is disabled.
-
- Examples:
-
-
Plugin setting:
Iframe loading is disabled. -
Shortcode:
load_iframes
[save_as_image_pdfcrowd load_iframes="none"] -
PHP function:
load_iframes
echo create_save_as_image_pdfcrowd_button(array('load_iframes' => 'none'));
-
Plugin setting:
Block Ads
Automatically block common advertising networks and tracking scripts during conversion, producing cleaner PDFs with faster conversion times. Filters out third-party ad content, analytics beacons, and ad network resources.
Use this for converting news sites, blogs, or any ad-heavy content where ads distract from the main message. May occasionally block legitimate third-party content - disable if critical third-party resources are missing.
- Location:
- Expert Settings → General Options → Block Ads
- Default:
false- Examples:
-
-
Shortcode:
block_ads
[save_as_image_pdfcrowd block_ads=true] -
PHP function:
block_ads
echo create_save_as_image_pdfcrowd_button(array('block_ads' => true));
-
Shortcode:
Default Encoding
Specify the character encoding when the HTML lacks proper charset declaration or has incorrect encoding. Prevents garbled text for non-English content, especially legacy pages without UTF-8 encoding.
Set to "utf-8" for modern content, "iso-8859-1" for Western European legacy pages, or other encodings for specific regional content. Only needed when auto-detection fails and you see corrupted characters in the output.
- Location:
- Expert Settings → General Options → Default Encoding
- Default:
auto detect- Examples:
-
-
Plugin setting:
utf-8 -
Shortcode:
default_encoding
[save_as_image_pdfcrowd default_encoding="utf-8"] -
PHP function:
default_encoding
echo create_save_as_image_pdfcrowd_button(array('default_encoding' => 'utf-8'));
-
Plugin setting:
Locale
Set the locale for the conversion to control regional formatting of dates, times, and numbers. Use this when converting content for specific regions - for example, set to "en-US" for MM/DD/YYYY dates and comma thousand separators, or "de-DE" for DD.MM.YYYY dates and period thousand separators.
Essential for financial reports, invoices, or localized content.
- Location:
- Expert Settings → General Options → Locale
- Default:
en-US- Examples:
-
-
Plugin setting:
ja-JP -
Shortcode:
locale
[save_as_image_pdfcrowd locale="ja-JP"] -
PHP function:
locale
echo create_save_as_image_pdfcrowd_button(array('locale' => 'ja-JP'));
-
Plugin setting:
HTTP Auth User Name
Set the HTTP authentication user name. Required to access protected web pages or staging environments.
- Location:
- Expert Settings → General Options → HTTP Auth User Name
- Examples:
-
-
Plugin setting:
John -
Shortcode:
http_auth_user_name
[save_as_image_pdfcrowd http_auth_user_name="John"] -
PHP function:
http_auth_user_name
echo create_save_as_image_pdfcrowd_button(array('http_auth_user_name' => 'John'));
-
Plugin setting:
HTTP Auth Password
Set the HTTP authentication password. Required to access protected web pages or staging environments.
- Location:
- Expert Settings → General Options → HTTP Auth Password
- Examples:
-
-
Plugin setting:
123456 -
Shortcode:
http_auth_password
[save_as_image_pdfcrowd http_auth_password="123456"] -
PHP function:
http_auth_password
echo create_save_as_image_pdfcrowd_button(array('http_auth_password' => '123456'));
-
Plugin setting:
Verify SSL Certificates
Enforce SSL certificate validation for secure connections, preventing conversions from sites with invalid certificates. Enable when converting from production sites with valid certificates to ensure security.
When disabled, allows conversion from any HTTPS site regardless of certificate validity - including development servers with self-signed certificates, internal corporate sites with expired certificates, or local testing environments.
- Location:
- Expert Settings → General Options → Verify SSL Certificates
- Default:
false- Examples:
-
-
Shortcode:
verify_ssl_certificates
[save_as_image_pdfcrowd verify_ssl_certificates=true] -
PHP function:
verify_ssl_certificates
echo create_save_as_image_pdfcrowd_button(array('verify_ssl_certificates' => true));
-
Shortcode:
Fail On Main URL Error
Abort the conversion if the HTTP status code of the main URL is greater than or equal to 400 (client/server errors). Use this in automated workflows to catch broken URLs or authentication failures early rather than producing invalid PDFs. Ensures your system does not silently generate error page PDFs when source content is unavailable.
- Location:
- Expert Settings → General Options → Fail On Main URL Error
- Default:
false- Examples:
-
-
Shortcode:
fail_on_main_url_error
[save_as_image_pdfcrowd fail_on_main_url_error=true] -
PHP function:
fail_on_main_url_error
echo create_save_as_image_pdfcrowd_button(array('fail_on_main_url_error' => true));
-
Shortcode:
Fail On Any URL Error
Abort the conversion if any sub-request (images, stylesheets, scripts) fails with HTTP 400+ errors. Use this for strict quality control when all assets must load successfully.
- Location:
- Expert Settings → General Options → Fail On Any URL Error
- Default:
false- Examples:
-
-
Shortcode:
fail_on_any_url_error
[save_as_image_pdfcrowd fail_on_any_url_error=true] -
PHP function:
fail_on_any_url_error
echo create_save_as_image_pdfcrowd_button(array('fail_on_any_url_error' => true));
-
Shortcode:
No X-Pdfcrowd Header
Do not send the X-Pdfcrowd HTTP header in HTTP requests made by the converter. Use this if your target server blocks or logs requests with this header, or for privacy when you do not want sites to know you are using PDFCrowd. Some security systems may block requests with non-standard headers.
- Location:
- Expert Settings → General Options → No X-Pdfcrowd Header
- Default:
false- Examples:
-
-
Shortcode:
no_xpdfcrowd_header
[save_as_image_pdfcrowd no_xpdfcrowd_header=true] -
PHP function:
no_xpdfcrowd_header
echo create_save_as_image_pdfcrowd_button(array('no_xpdfcrowd_header' => true));
-
Shortcode:
Custom CSS
Apply custom CSS to the input HTML document to modify the visual appearance and layout of your content dynamically. Use this to override default styles, adjust spacing, change fonts, or fix layout issues without modifying the source HTML.
Use !important in your CSS rules to prioritize and override conflicting styles.
- Location:
- Basic Settings → General Options → Custom CSS
- Examples:
-
-
Plugin setting:
nav, #ad-block { display: none !important; } -
Shortcode:
custom_css
[save_as_image_pdfcrowd custom_css="nav, #ad-block { display: none !important; }"] -
PHP function:
custom_css
echo create_save_as_image_pdfcrowd_button(array('custom_css' => 'nav, #ad-block { display: none !important; }'));
-
Plugin setting:
Custom JavaScript
Run a custom JavaScript after the document is loaded and ready to print. Use this to modify page content before conversion, remove unwanted elements, or trigger specific page states. The script is intended for post-load DOM manipulation (add/remove elements, update CSS, ...).
In addition to the standard browser APIs, the custom JavaScript code can use helper functions from our JavaScript library.
- Location:
- Basic Settings → General Options → Custom JavaScript
- Examples:
-
-
Plugin setting:
document.body.style.setProperty('background-color', 'gray', 'important') -
Shortcode:
custom_javascript
[save_as_image_pdfcrowd custom_javascript="document.body.style.setProperty('background-color', 'gray', 'important')"] -
PHP function:
custom_javascript
echo create_save_as_image_pdfcrowd_button(array('custom_javascript' => 'document.body.style.setProperty("background-color", "gray", "important")'));
-
Plugin setting:
On Load JavaScript
Run a custom JavaScript right after the document is loaded. The script is intended for early DOM manipulation (add/remove elements, update CSS, ...). In addition to the standard browser APIs, the custom JavaScript code can use helper functions from our JavaScript library.
- Location:
- Expert Settings → General Options → On Load JavaScript
- Examples:
-
-
Plugin setting:
document.body.style.setProperty('background-color', 'gray', 'important') -
Shortcode:
on_load_javascript
[save_as_image_pdfcrowd on_load_javascript="document.body.style.setProperty('background-color', 'gray', 'important')"] -
PHP function:
on_load_javascript
echo create_save_as_image_pdfcrowd_button(array('on_load_javascript' => 'document.body.style.setProperty("background-color", "gray", "important")'));
-
Plugin setting:
Custom HTTP Header
Set a custom HTTP header to be included in all requests made by the converter. Use this to pass authentication tokens to protected sites, add tracking headers for analytics, or provide API keys for accessing private content.
Essential when converting content from APIs or internal systems that require special headers for access control.
- Location:
- Expert Settings → General Options → Custom HTTP Header
- Constraint:
-
- A string containing the header name and value separated by a colon.
- Examples:
-
-
Plugin setting:
X-My-Client-ID:k2017-12345 -
Shortcode:
custom_http_header
[save_as_image_pdfcrowd custom_http_header="X-My-Client-ID:k2017-12345"] -
PHP function:
custom_http_header
echo create_save_as_image_pdfcrowd_button(array('custom_http_header' => 'X-My-Client-ID:k2017-12345'));
-
Plugin setting:
JavaScript Delay
Wait the specified number of milliseconds to finish all JavaScript after the document is loaded. Use this to ensure lazy-loaded images, AJAX content, or animations complete before conversion. Your license defines the maximum wait time by "Max Delay" parameter.
- Location:
- Expert Settings → General Options → JavaScript Delay
- Constraint:
-
- Must be a positive integer or 0.
- Default:
200- Examples:
-
-
Plugin setting:
2000 -
Shortcode:
javascript_delay
[save_as_image_pdfcrowd javascript_delay=2000] -
PHP function:
javascript_delay
echo create_save_as_image_pdfcrowd_button(array('javascript_delay' => 2000));
-
Plugin setting:
Element To Convert
Convert only the specified element from the main document and its children. Use this to extract specific portions of a page (like article content) while excluding navigation, headers, footers, or sidebars. The element is specified by one or more CSS selectors. If the element is not found, the conversion fails. If multiple elements are found, the first one is used.
- Location:
- Basic Settings → General Options → Element To Convert
- Examples:
-
-
Plugin setting:
div.user-panel.main p.article -
Shortcode:
element_to_convert
[save_as_image_pdfcrowd element_to_convert="div.user-panel.main p.article"] -
PHP function:
element_to_convert
echo create_save_as_image_pdfcrowd_button(array('element_to_convert' => 'div.user-panel.main p.article'));
-
Plugin setting:
Element To Convert Mode
Control how CSS styles are applied when converting only part of a page. The "cut-out" option extracts the element into a new document root, which may break CSS selectors like "body > div". The "remove-siblings" option keeps the element in its original DOM position but deletes other elements, preserving descendant selectors. The "hide-siblings" option keeps all elements but hides non-selected ones with display:none, preserving all CSS context.
- Location:
- Expert Settings → General Options → Element To Convert Mode
- Default:
cut-out- Allowed Values:
-
-
cut-out— The element and its children are cut out of the document. -
remove-siblings— All element's siblings are removed from the DOM. Keeps target element in position but may break descendant CSS selectors. -
hide-siblings— All element's siblings are hidden using display:none. Preserves CSS context while hiding non-target content.
-
- Examples:
-
-
Plugin setting:
All element's siblings are hidden using display:none. Preserves CSS context while hiding non-target content. -
Shortcode:
element_to_convert_mode
[save_as_image_pdfcrowd element_to_convert_mode="hide-siblings"] -
PHP function:
element_to_convert_mode
echo create_save_as_image_pdfcrowd_button(array('element_to_convert_mode' => 'hide-siblings'));
-
Plugin setting:
Wait For Element
Wait for the specified element in a source document. Use this when specific dynamic content must be ready before conversion, avoiding unnecessary delays from a fixed JavaScript delay. The element is specified by one or more CSS selectors. The element is searched for in the main document and all iframes.
If the element is not found, the conversion fails. Your license defines the maximum wait time by the "Max Delay" parameter.
- Location:
- Expert Settings → General Options → Wait For Element
- Examples:
-
-
Plugin setting:
div.user-panel.main p.article -
Shortcode:
wait_for_element
[save_as_image_pdfcrowd wait_for_element="div.user-panel.main p.article"] -
PHP function:
wait_for_element
echo create_save_as_image_pdfcrowd_button(array('wait_for_element' => 'div.user-panel.main p.article'));
-
Plugin setting:
Auto Detect Element To Convert
The main HTML element for conversion is detected automatically. Use this when you want to extract article or main content without knowing the exact CSS selector, automatically excluding navigation and sidebars.
- Location:
- Expert Settings → General Options → Auto Detect Element To Convert
- Default:
false- Examples:
-
-
Shortcode:
auto_detect_element_to_convert
[save_as_image_pdfcrowd auto_detect_element_to_convert=true] -
PHP function:
auto_detect_element_to_convert
echo create_save_as_image_pdfcrowd_button(array('auto_detect_element_to_convert' => true));
-
Shortcode:
Readability Enhancements
Automatically enhance the input HTML to improve readability by removing clutter and reformatting content. Use this when converting web pages with excessive navigation, ads, or sidebars that distract from the main content.
Different versions (v1-v4) use progressively aggressive algorithms - start with "v1" and increase if more cleanup is needed. Use this for converting blog posts, articles, or documentation into clean PDFs.
- Location:
- Expert Settings → General Options → Readability Enhancements
- Default:
none- Allowed Values:
-
-
none— No enhancements are used. -
readability-v1— Version 1 of the enhancements is used. Basic cleanup for simple pages with moderate clutter. -
readability-v2— Version 2 of the enhancements is used. More aggressive cleanup for pages with more ads and navigation. -
readability-v3— Version 3 of the enhancements is used. Strong cleanup for heavily cluttered pages with multiple sidebars. -
readability-v4— Version 4 of the enhancements is used. Maximum cleanup for extremely cluttered pages. May remove some content.
-
- Examples:
-
-
Plugin setting:
Version 4 of the enhancements is used. Maximum cleanup for extremely cluttered pages. May remove some content. -
Shortcode:
readability_enhancements
[save_as_image_pdfcrowd readability_enhancements="readability-v4"] -
PHP function:
readability_enhancements
echo create_save_as_image_pdfcrowd_button(array('readability_enhancements' => 'readability-v4'));
-
Plugin setting:
Data
Render your data into PDF or image output using Jinja2 templates. Provide your data in JSON, XML, YAML, or CSV format and create an HTML template that defines the output layout and formatting using Jinja2 syntax, e.g. .
Data String
Set the input data for template rendering. The data format can be JSON, XML, YAML or CSV.
- Location:
- Expert Settings → Data → Data String
- Examples:
-
-
Plugin setting:
{"recipient": "Anna May", "sender": "John Doe"} -
Shortcode:
data_string
[save_as_image_pdfcrowd data_string="{'recipient': 'Anna May', 'sender': 'John Doe'}"] -
PHP function:
data_string
echo create_save_as_image_pdfcrowd_button(array('data_string' => '{"recipient": "Anna May", "sender": "John Doe"}'));
-
Plugin setting:
Data File
Load the input data for template rendering from the specified file. The data format can be JSON, XML, YAML or CSV.
- Location:
- Expert Settings → Data → Data File
- Examples:
-
-
Plugin setting:
/home/user/john/data.json -
Shortcode:
data_file
[save_as_image_pdfcrowd data_file="/home/user/john/data.json"] -
PHP function:
data_file
echo create_save_as_image_pdfcrowd_button(array('data_file' => '/home/user/john/data.json'));
-
Plugin setting:
Data Format
Specify the input data format. Use "auto" for automatic detection or explicitly set to JSON, XML, YAML, or CSV when format is known.
- Location:
- Expert Settings → Data → Data Format
- Default:
auto- Allowed Values:
-
-
auto— The data format is auto-detected. -
json -
xml -
yaml -
csv
-
- Examples:
-
-
Plugin setting:
csv -
Shortcode:
data_format
[save_as_image_pdfcrowd data_format="csv"] -
PHP function:
data_format
echo create_save_as_image_pdfcrowd_button(array('data_format' => 'csv'));
-
Plugin setting:
Data Encoding
Set the encoding of the input data file.
- Location:
- Expert Settings → Data → Data Encoding
- Default:
utf-8- Examples:
-
-
Plugin setting:
iso8859-2 -
Shortcode:
data_encoding
[save_as_image_pdfcrowd data_encoding="iso8859-2"] -
PHP function:
data_encoding
echo create_save_as_image_pdfcrowd_button(array('data_encoding' => 'iso8859-2'));
-
Plugin setting:
Data Ignore Undefined
Ignore undefined variables in the HTML template. The default mode is strict so any undefined variable causes the conversion to fail. You can use {% if variable is defined %} to check if the variable is defined.
- Location:
- Expert Settings → Data → Data Ignore Undefined
- Default:
false- Examples:
-
-
Shortcode:
data_ignore_undefined
[save_as_image_pdfcrowd data_ignore_undefined=true] -
PHP function:
data_ignore_undefined
echo create_save_as_image_pdfcrowd_button(array('data_ignore_undefined' => true));
-
Shortcode:
Data Auto Escape
Auto escape HTML symbols in the input data before placing them into the output.
- Location:
- Expert Settings → Data → Data Auto Escape
- Default:
false- Examples:
-
-
Shortcode:
data_auto_escape
[save_as_image_pdfcrowd data_auto_escape=true] -
PHP function:
data_auto_escape
echo create_save_as_image_pdfcrowd_button(array('data_auto_escape' => true));
-
Shortcode:
Data Trim Blocks
Auto trim whitespace around each template command block.
- Location:
- Expert Settings → Data → Data Trim Blocks
- Default:
false- Examples:
-
-
Shortcode:
data_trim_blocks
[save_as_image_pdfcrowd data_trim_blocks=true] -
PHP function:
data_trim_blocks
echo create_save_as_image_pdfcrowd_button(array('data_trim_blocks' => true));
-
Shortcode:
Data Options
key=value pairs: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. CSV), the default isdata.
- Location:
- Expert Settings → Data → Data Options
- Examples:
-
-
Plugin setting:
xml_remove_root=1 -
Shortcode:
data_options
[save_as_image_pdfcrowd data_options="xml_remove_root=1"] -
PHP function:
data_options
echo create_save_as_image_pdfcrowd_button(array('data_options' => 'xml_remove_root=1'));
-
Plugin setting:
Miscellaneous
Debug Log
Turn on debug logging to troubleshoot conversion issues. Details about the conversion process, including resource loading, rendering steps, and error messages are stored in the debug log. Use this when conversions fail or produce unexpected results. The debug log is available in conversion statistics.
- Location:
- Expert Settings → Miscellaneous → Debug Log
- Default:
false- Examples:
-
-
Shortcode:
debug_log
[save_as_image_pdfcrowd debug_log=true] -
PHP function:
debug_log
echo create_save_as_image_pdfcrowd_button(array('debug_log' => true));
-
Shortcode:
Tag
Tag the conversion with a custom value for tracking and analytics. Use this to categorize conversions by customer ID, document type, or business unit. The tag appears in conversion statistics. A value longer than 32 characters is cut off.
- Location:
- Expert Settings → Miscellaneous → Tag
- Examples:
-
-
Plugin setting:
client-1234 -
Shortcode:
tag
[save_as_image_pdfcrowd tag="client-1234"] -
PHP function:
tag
echo create_save_as_image_pdfcrowd_button(array('tag' => 'client-1234'));
-
Plugin setting:
HTTP Proxy
A proxy server used by the conversion process for accessing the source URLs with HTTP scheme. This can help circumvent regional restrictions or provide limited access to your intranet.
- Location:
- Expert Settings → Miscellaneous → HTTP Proxy
- Constraint:
-
- The value must have format DOMAIN_OR_IP_ADDRESS:PORT.
- Examples:
-
-
Plugin setting:
113.25.84.10:33333 -
Shortcode:
http_proxy
[save_as_image_pdfcrowd http_proxy="113.25.84.10:33333"] -
PHP function:
http_proxy
echo create_save_as_image_pdfcrowd_button(array('http_proxy' => '113.25.84.10:33333'));
-
Plugin setting:
HTTPS Proxy
A proxy server used by the conversion process for accessing the source URLs with HTTPS scheme. This can help circumvent regional restrictions or provide limited access to your intranet.
- Location:
- Expert Settings → Miscellaneous → HTTPS Proxy
- Constraint:
-
- The value must have format DOMAIN_OR_IP_ADDRESS:PORT.
- Examples:
-
-
Plugin setting:
113.25.84.10:44333 -
Shortcode:
https_proxy
[save_as_image_pdfcrowd https_proxy="113.25.84.10:44333"] -
PHP function:
https_proxy
echo create_save_as_image_pdfcrowd_button(array('https_proxy' => '113.25.84.10:44333'));
-
Plugin setting:
Client Certificate
A client certificate to authenticate the converter on your web server. The certificate is used for two-way SSL/TLS authentication (mutual TLS) and adds extra security. Use this when converting content from servers that require client certificate authentication for access.
- Location:
- Expert Settings → Miscellaneous → Client Certificate
- Constraint:
-
- The file must exist and not be empty.
- Examples:
-
-
Plugin setting:
/home/user/john/pdfcrowd.crt -
Shortcode:
client_certificate
[save_as_image_pdfcrowd client_certificate="/home/user/john/pdfcrowd.crt"] -
PHP function:
client_certificate
echo create_save_as_image_pdfcrowd_button(array('client_certificate' => '/home/user/john/pdfcrowd.crt'));
-
Plugin setting:
Client Certificate Password
A password for the PKCS12 file with a client certificate if the certificate file is password-protected.
- Location:
- Expert Settings → Miscellaneous → Client Certificate Password
- Examples:
-
-
Plugin setting:
123456 -
Shortcode:
client_certificate_password
[save_as_image_pdfcrowd client_certificate_password="123456"] -
PHP function:
client_certificate_password
echo create_save_as_image_pdfcrowd_button(array('client_certificate_password' => '123456'));
-
Plugin setting:
Tweaks
Expert options for fine-tuning output.
Max Loading Time
Set the maximum time for loading the page and its resources. After this time, all requests will be considered successful. This can be useful to ensure that the conversion does not timeout. Use this method if there is no other way to fix page loading.
- Location:
- Expert Settings → Tweaks → Max Loading Time
- Constraint:
-
- The accepted range is 10-30.
- Examples:
-
-
Shortcode:
max_loading_time -
PHP function:
max_loading_time
-
Shortcode:
Converter User Agent
Specify the User-Agent HTTP header that will be used by the converter when a request is made to the converted web page.
- Location:
- Expert Settings → Tweaks → Converter User Agent
- Default:
latest-chrome-desktop- Allowed Values:
-
-
chrome-desktop— The user-agent for desktop chrome corresponding to the converter used. -
chrome-mobile— The user-agent for mobile chrome corresponding to the converter used. -
latest-chrome-desktop— The user-agent of the recently released Chrome browser on desktops. -
latest-chrome-mobile— The user-agent of the recently released Chrome browser on mobile devices. -
custom string— A custom string for the user agent.
-
- Examples:
-
-
Plugin setting:
Mozilla/5.0 (Macintosh; Intel Mac OS X 14_7_1) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.0 Safari/605.1.15 -
Shortcode:
converter_user_agent
[save_as_image_pdfcrowd converter_user_agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 14_7_1) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.0 Safari/605.1.15"] -
PHP function:
converter_user_agent
echo create_save_as_image_pdfcrowd_button(array('converter_user_agent' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 14_7_1) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.0 Safari/605.1.15'));
-
Plugin setting:
API Client Options
Converter Version
Set the converter version. Different versions may produce different output. Choose which one provides the best output for your case.
- Location:
- Expert Settings → API Client Options → Converter Version
- Default:
24.04- Allowed Values:
-
-
24.04— Version 24.04. -
20.10— Version 20.10. -
18.10— Version 18.10. -
latest— Version 20.10 is used.
-
- Examples:
-
-
Plugin setting:
Version 20.10 is used. -
Shortcode:
converter_version
[save_as_image_pdfcrowd converter_version="latest"] -
PHP function:
converter_version
echo create_save_as_image_pdfcrowd_button(array('converter_version' => 'latest'));
-
Plugin setting:
Use HTTP
Specify whether to use HTTP or HTTPS when connecting to the PDFCrowd API.
- Location:
- Expert Settings → API Client Options → Use HTTP
- Default:
false- Examples:
-
-
Shortcode:
use_http
[save_as_image_pdfcrowd use_http=true] -
PHP function:
use_http
echo create_save_as_image_pdfcrowd_button(array('use_http' => true));
-
Shortcode:
Retry Count
Specify the number of automatic retries when a 502 or 503 HTTP status code is received. The status code indicates a temporary network issue. This feature can be disabled by setting to 0.
- Location:
- Expert Settings → API Client Options → Retry Count
- Default:
1- Examples:
-
-
Plugin setting:
3 -
Shortcode:
retry_count
[save_as_image_pdfcrowd retry_count=3] -
PHP function:
retry_count
echo create_save_as_image_pdfcrowd_button(array('retry_count' => 3));
-
Plugin setting: