Home page and Posts
[save_as_pdf_pdfcrowd button_hidden_pdf=1]
echo create_save_as_pdf_pdfcrowd_button(array('button_hidden_pdf' => 1));
Text on the left and icon
[save_as_pdf_pdfcrowd button_format="text-image"]
echo create_save_as_pdf_pdfcrowd_button(array('button_format' => 'text-image'));
Download Report
[save_as_pdf_pdfcrowd button_text="Download Report"]
echo create_save_as_pdf_pdfcrowd_button(array('button_text' => 'Download Report'));
Automatic - look up in your internationalization files
[save_as_pdf_pdfcrowd button_translation="auto"]
echo create_save_as_pdf_pdfcrowd_button(array('button_translation' => 'auto'));
choose the 3rd image in the list
[save_as_pdf_pdfcrowd button_image="pdf3.svg"]
echo create_save_as_pdf_pdfcrowd_button(array('button_image' => 'pdf3.svg'));
18
[save_as_pdf_pdfcrowd button_image_width=18]
echo create_save_as_pdf_pdfcrowd_button(array('button_image_width' => 18));
18
[save_as_pdf_pdfcrowd button_image_height=18]
echo create_save_as_pdf_pdfcrowd_button(array('button_image_height' => 18));
convert-trigger
[save_as_pdf_pdfcrowd button_id="convert-trigger"]
echo create_save_as_pdf_pdfcrowd_button(array('button_id' => 'convert-trigger'));
[save_as_pdf_pdfcrowd button_html_hidden=1]
echo create_save_as_pdf_pdfcrowd_button(array('button_html_hidden' => 1));
above content
[save_as_pdf_pdfcrowd button_position="above"]
echo create_save_as_pdf_pdfcrowd_button(array('button_position' => 'above'));
end
[save_as_pdf_pdfcrowd button_alignment="end"]
echo create_save_as_pdf_pdfcrowd_button(array('button_alignment' => 'end'));
10
[save_as_pdf_pdfcrowd button_margin_top=10]
echo create_save_as_pdf_pdfcrowd_button(array('button_margin_top' => 10));
10
[save_as_pdf_pdfcrowd button_margin_right=10]
echo create_save_as_pdf_pdfcrowd_button(array('button_margin_right' => 10));
10
[save_as_pdf_pdfcrowd button_margin_bottom=10]
echo create_save_as_pdf_pdfcrowd_button(array('button_margin_bottom' => 10));
10
[save_as_pdf_pdfcrowd button_margin_left=10]
echo create_save_as_pdf_pdfcrowd_button(array('button_margin_left' => 10));
.save-as-pdf-pdfcrowd-button
CSS rule.Custom
[save_as_pdf_pdfcrowd button_styling="custom"]
echo create_save_as_pdf_pdfcrowd_button(array('button_styling' => 'custom'));
18
[save_as_pdf_pdfcrowd button_text_size=18]
echo create_save_as_pdf_pdfcrowd_button(array('button_text_size' => 18));
bolder
[save_as_pdf_pdfcrowd button_text_weight="bolder"]
echo create_save_as_pdf_pdfcrowd_button(array('button_text_weight' => 'bolder'));
red
[save_as_pdf_pdfcrowd button_text_color="red"]
echo create_save_as_pdf_pdfcrowd_button(array('button_text_color' => 'red'));
red
[save_as_pdf_pdfcrowd button_background_color="red"]
echo create_save_as_pdf_pdfcrowd_button(array('button_background_color' => 'red'));
red
[save_as_pdf_pdfcrowd button_border_color="red"]
echo create_save_as_pdf_pdfcrowd_button(array('button_border_color' => 'red'));
hidden
[save_as_pdf_pdfcrowd button_border_style="hidden"]
echo create_save_as_pdf_pdfcrowd_button(array('button_border_style' => 'hidden'));
2
[save_as_pdf_pdfcrowd button_border_width=2]
echo create_save_as_pdf_pdfcrowd_button(array('button_border_width' => 2));
10
[save_as_pdf_pdfcrowd button_padding_top=10]
echo create_save_as_pdf_pdfcrowd_button(array('button_padding_top' => 10));
10
[save_as_pdf_pdfcrowd button_padding_right=10]
echo create_save_as_pdf_pdfcrowd_button(array('button_padding_right' => 10));
10
[save_as_pdf_pdfcrowd button_padding_bottom=10]
echo create_save_as_pdf_pdfcrowd_button(array('button_padding_bottom' => 10));
10
[save_as_pdf_pdfcrowd button_padding_left=10]
echo create_save_as_pdf_pdfcrowd_button(array('button_padding_left' => 10));
4
[save_as_pdf_pdfcrowd button_radius=4]
echo create_save_as_pdf_pdfcrowd_button(array('button_radius' => 4));
.save-as-pdf-pdfcrowd-button-hover
, .save-as-pdf-pdfcrowd-has-indicator-func:hover
.
[save_as_pdf_pdfcrowd button_hover=1]
echo create_save_as_pdf_pdfcrowd_button(array('button_hover' => 1));
Ring
[save_as_pdf_pdfcrowd button_indicator="ring"]
echo create_save_as_pdf_pdfcrowd_button(array('button_indicator' => 'ring'));
5
[save_as_pdf_pdfcrowd button_indicator_timeout=5]
echo create_save_as_pdf_pdfcrowd_button(array('button_indicator_timeout' => 5));
Open PDF in the current browser tab
[save_as_pdf_pdfcrowd button_disposition="inline"]
echo create_save_as_pdf_pdfcrowd_button(array('button_disposition' => 'inline'));
info@example.com
[save_as_pdf_pdfcrowd email_from="info@example.com"]
echo create_save_as_pdf_pdfcrowd_button(array('email_from' => 'info@example.com'));
Prompt for an email address
[save_as_pdf_pdfcrowd email_recipient="prompt"]
echo create_save_as_pdf_pdfcrowd_button(array('email_recipient' => 'prompt'));
john@example.com
[save_as_pdf_pdfcrowd email_cc="john@example.com"]
echo create_save_as_pdf_pdfcrowd_button(array('email_cc' => 'john@example.com'));
mary@example.com
[save_as_pdf_pdfcrowd email_bcc="mary@example.com"]
echo create_save_as_pdf_pdfcrowd_button(array('email_bcc' => 'mary@example.com'));
{{ }}
that are dynamically expanded. Available variables are: {{user_name}} - Report
[save_as_pdf_pdfcrowd email_subject="{{user_name}} - Report"]
echo create_save_as_pdf_pdfcrowd_button(array('email_subject' => '{{user_name}} - Report'));
{{ }}
that are dynamically expanded. Available variables are: <p>Dear {{user_first_name}} {{user_last_name}}, ...</p>
[save_as_pdf_pdfcrowd email_message="<p>Dear {{user_first_name}} {{user_last_name}}, ...</p>"]
echo create_save_as_pdf_pdfcrowd_button(array('email_message' => '<p>Dear {{user_first_name}} {{user_last_name}}, ...</p>'));
Predefined modal dialogs
[save_as_pdf_pdfcrowd email_dialogs="modal"]
echo create_save_as_pdf_pdfcrowd_button(array('email_dialogs' => 'modal'));
report.pdf
[save_as_pdf_pdfcrowd output_name="report.pdf"]
echo create_save_as_pdf_pdfcrowd_button(array('output_name' => 'report.pdf'));
save_to_local
[save_as_pdf_pdfcrowd pdf_created_callback="save_to_local"]
echo create_save_as_pdf_pdfcrowd_button(array('pdf_created_callback' => 'save_to_local'));
{'post_id': 123}
[save_as_pdf_pdfcrowd custom_data="{'post_id': 123}"]
echo create_save_as_pdf_pdfcrowd_button(array('custom_data' => '{"post_id": 123}'));
$_GET['error-code']
,
$_GET['error-message']
and
$_GET['error-details']
.
https://mysite.com/pdfcrowd-error/
[save_as_pdf_pdfcrowd error_page="https://mysite.com/pdfcrowd-error/"]
echo create_save_as_pdf_pdfcrowd_button(array('error_page' => 'https://mysite.com/pdfcrowd-error/'));
Content
[save_as_pdf_pdfcrowd conversion_mode="content"]
echo create_save_as_pdf_pdfcrowd_button(array('conversion_mode' => 'content'));
Location
[save_as_pdf_pdfcrowd url_lookup="location"]
echo create_save_as_pdf_pdfcrowd_button(array('url_lookup' => 'location'));
[save_as_pdf_pdfcrowd diagnostics=1]
echo create_save_as_pdf_pdfcrowd_button(array('diagnostics' => 1));
Letter
[save_as_pdf_pdfcrowd page_size="Letter"]
echo create_save_as_pdf_pdfcrowd_button(array('page_size' => 'Letter'));
9.5in
[save_as_pdf_pdfcrowd page_width="9.5in"]
echo create_save_as_pdf_pdfcrowd_button(array('page_width' => '9.5in'));
350mm
[save_as_pdf_pdfcrowd page_height="350mm"]
echo create_save_as_pdf_pdfcrowd_button(array('page_height' => '350mm'));
landscape
[save_as_pdf_pdfcrowd orientation="landscape"]
echo create_save_as_pdf_pdfcrowd_button(array('orientation' => 'landscape'));
2.5cm
[save_as_pdf_pdfcrowd margin_top="2.5cm"]
echo create_save_as_pdf_pdfcrowd_button(array('margin_top' => '2.5cm'));
2.5cm
[save_as_pdf_pdfcrowd margin_right="2.5cm"]
echo create_save_as_pdf_pdfcrowd_button(array('margin_right' => '2.5cm'));
2.5cm
[save_as_pdf_pdfcrowd margin_bottom="2.5cm"]
echo create_save_as_pdf_pdfcrowd_button(array('margin_bottom' => '2.5cm'));
2.5cm
[save_as_pdf_pdfcrowd margin_left="2.5cm"]
echo create_save_as_pdf_pdfcrowd_button(array('margin_left' => '2.5cm'));
[save_as_pdf_pdfcrowd no_margins=true]
echo create_save_as_pdf_pdfcrowd_button(array('no_margins' => true));
3,6-9
[save_as_pdf_pdfcrowd print_page_range="3,6-9"]
echo create_save_as_pdf_pdfcrowd_button(array('print_page_range' => '3,6-9'));
800px
[save_as_pdf_pdfcrowd content_viewport_width="800px"]
echo create_save_as_pdf_pdfcrowd_button(array('content_viewport_width' => '800px'));
5000px
[save_as_pdf_pdfcrowd content_viewport_height="5000px"]
echo create_save_as_pdf_pdfcrowd_button(array('content_viewport_height' => '5000px'));
The entire HTML content fits the print area of a single page, maintaining the aspect ratio of the page height and width.
[save_as_pdf_pdfcrowd content_fit_mode="single-page-ratio"]
echo create_save_as_pdf_pdfcrowd_button(array('content_fit_mode' => 'single-page-ratio'));
No blank page is removed from the document.
[save_as_pdf_pdfcrowd remove_blank_pages="none"]
echo create_save_as_pdf_pdfcrowd_button(array('remove_blank_pages' => 'none'));
http://myserver.com/header.html
[save_as_pdf_pdfcrowd header_url="http://myserver.com/header.html"]
echo create_save_as_pdf_pdfcrowd_button(array('header_url' => 'http://myserver.com/header.html'));
Page <span class='pdfcrowd-page-number'></span> of <span class='pdfcrowd-page-count'></span> pages
[save_as_pdf_pdfcrowd header_html="Page <span class='pdfcrowd-page-number'></span> of <span class='pdfcrowd-page-count'></span> pages"]
echo create_save_as_pdf_pdfcrowd_button(array('header_html' => 'Page <span class="pdfcrowd-page-number"></span> of <span class="pdfcrowd-page-count"></span> pages'));
1in
[save_as_pdf_pdfcrowd header_height="1in"]
echo create_save_as_pdf_pdfcrowd_button(array('header_height' => '1in'));
http://myserver.com/header.html
[save_as_pdf_pdfcrowd footer_url="http://myserver.com/header.html"]
echo create_save_as_pdf_pdfcrowd_button(array('footer_url' => 'http://myserver.com/header.html'));
Page <span class='pdfcrowd-page-number'></span> of <span class='pdfcrowd-page-count'></span> pages
[save_as_pdf_pdfcrowd footer_html="Page <span class='pdfcrowd-page-number'></span> of <span class='pdfcrowd-page-count'></span> pages"]
echo create_save_as_pdf_pdfcrowd_button(array('footer_html' => 'Page <span class="pdfcrowd-page-number"></span> of <span class="pdfcrowd-page-count"></span> pages'));
1in
[save_as_pdf_pdfcrowd footer_height="1in"]
echo create_save_as_pdf_pdfcrowd_button(array('footer_height' => '1in'));
[save_as_pdf_pdfcrowd no_header_footer_horizontal_margins=true]
echo create_save_as_pdf_pdfcrowd_button(array('no_header_footer_horizontal_margins' => true));
1,-1
[save_as_pdf_pdfcrowd exclude_header_on_pages="1,-1"]
echo create_save_as_pdf_pdfcrowd_button(array('exclude_header_on_pages' => '1,-1'));
1,-1
[save_as_pdf_pdfcrowd exclude_footer_on_pages="1,-1"]
echo create_save_as_pdf_pdfcrowd_button(array('exclude_footer_on_pages' => '1,-1'));
50
[save_as_pdf_pdfcrowd header_footer_scale_factor=50]
echo create_save_as_pdf_pdfcrowd_button(array('header_footer_scale_factor' => 50));
-10
[save_as_pdf_pdfcrowd page_numbering_offset=-10]
echo create_save_as_pdf_pdfcrowd_button(array('page_numbering_offset' => -10));
/home/user/john/watermark.png
[save_as_pdf_pdfcrowd page_watermark="/home/user/john/watermark.png"]
echo create_save_as_pdf_pdfcrowd_button(array('page_watermark' => '/home/user/john/watermark.png'));
http://myserver.com/watermark.png
[save_as_pdf_pdfcrowd page_watermark_url="http://myserver.com/watermark.png"]
echo create_save_as_pdf_pdfcrowd_button(array('page_watermark_url' => 'http://myserver.com/watermark.png'));
/home/user/john/watermark.png
[save_as_pdf_pdfcrowd multipage_watermark="/home/user/john/watermark.png"]
echo create_save_as_pdf_pdfcrowd_button(array('multipage_watermark' => '/home/user/john/watermark.png'));
http://myserver.com/watermark.png
[save_as_pdf_pdfcrowd multipage_watermark_url="http://myserver.com/watermark.png"]
echo create_save_as_pdf_pdfcrowd_button(array('multipage_watermark_url' => 'http://myserver.com/watermark.png'));
/home/user/john/background.png
[save_as_pdf_pdfcrowd page_background="/home/user/john/background.png"]
echo create_save_as_pdf_pdfcrowd_button(array('page_background' => '/home/user/john/background.png'));
http://myserver.com/background.png
[save_as_pdf_pdfcrowd page_background_url="http://myserver.com/background.png"]
echo create_save_as_pdf_pdfcrowd_button(array('page_background_url' => 'http://myserver.com/background.png'));
/home/user/john/background.png
[save_as_pdf_pdfcrowd multipage_background="/home/user/john/background.png"]
echo create_save_as_pdf_pdfcrowd_button(array('multipage_background' => '/home/user/john/background.png'));
http://myserver.com/background.png
[save_as_pdf_pdfcrowd multipage_background_url="http://myserver.com/background.png"]
echo create_save_as_pdf_pdfcrowd_button(array('multipage_background_url' => 'http://myserver.com/background.png'));
00ff0080
[save_as_pdf_pdfcrowd page_background_color="00ff0080"]
echo create_save_as_pdf_pdfcrowd_button(array('page_background_color' => '00ff0080'));
[save_as_pdf_pdfcrowd use_print_media=true]
echo create_save_as_pdf_pdfcrowd_button(array('use_print_media' => true));
[save_as_pdf_pdfcrowd no_background=true]
echo create_save_as_pdf_pdfcrowd_button(array('no_background' => true));
[save_as_pdf_pdfcrowd disable_javascript=true]
echo create_save_as_pdf_pdfcrowd_button(array('disable_javascript' => true));
[save_as_pdf_pdfcrowd disable_image_loading=true]
echo create_save_as_pdf_pdfcrowd_button(array('disable_image_loading' => true));
[save_as_pdf_pdfcrowd disable_remote_fonts=true]
echo create_save_as_pdf_pdfcrowd_button(array('disable_remote_fonts' => true));
[save_as_pdf_pdfcrowd use_mobile_user_agent=true]
echo create_save_as_pdf_pdfcrowd_button(array('use_mobile_user_agent' => true));
Iframe loading is disabled.
[save_as_pdf_pdfcrowd load_iframes="none"]
echo create_save_as_pdf_pdfcrowd_button(array('load_iframes' => 'none'));
[save_as_pdf_pdfcrowd block_ads=true]
echo create_save_as_pdf_pdfcrowd_button(array('block_ads' => true));
utf-8
[save_as_pdf_pdfcrowd default_encoding="utf-8"]
echo create_save_as_pdf_pdfcrowd_button(array('default_encoding' => 'utf-8'));
ja-JP
[save_as_pdf_pdfcrowd locale="ja-JP"]
echo create_save_as_pdf_pdfcrowd_button(array('locale' => 'ja-JP'));
John
[save_as_pdf_pdfcrowd http_auth_user_name="John"]
echo create_save_as_pdf_pdfcrowd_button(array('http_auth_user_name' => 'John'));
123456
[save_as_pdf_pdfcrowd http_auth_password="123456"]
echo create_save_as_pdf_pdfcrowd_button(array('http_auth_password' => '123456'));
session=6d7184b3bf35;token=2710
[save_as_pdf_pdfcrowd cookies="session=6d7184b3bf35;token=2710"]
echo create_save_as_pdf_pdfcrowd_button(array('cookies' => 'session=6d7184b3bf35;token=2710'));
[save_as_pdf_pdfcrowd verify_ssl_certificates=true]
echo create_save_as_pdf_pdfcrowd_button(array('verify_ssl_certificates' => true));
[save_as_pdf_pdfcrowd fail_on_main_url_error=true]
echo create_save_as_pdf_pdfcrowd_button(array('fail_on_main_url_error' => true));
[save_as_pdf_pdfcrowd fail_on_any_url_error=true]
echo create_save_as_pdf_pdfcrowd_button(array('fail_on_any_url_error' => true));
[save_as_pdf_pdfcrowd no_xpdfcrowd_header=true]
echo create_save_as_pdf_pdfcrowd_button(array('no_xpdfcrowd_header' => true));
CSS @page rule is preferred.
[save_as_pdf_pdfcrowd css_page_rule_mode="mode2"]
echo create_save_as_pdf_pdfcrowd_button(array('css_page_rule_mode' => 'mode2'));
nav, #ad-block { display: none !important; }
[save_as_pdf_pdfcrowd custom_css="nav, #ad-block { display: none !important; }"]
echo create_save_as_pdf_pdfcrowd_button(array('custom_css' => 'nav, #ad-block { display: none !important; }'));
document.body.style.setProperty('background-color', 'gray', 'important')
[save_as_pdf_pdfcrowd custom_javascript="document.body.style.setProperty('background-color', 'gray', 'important')"]
echo create_save_as_pdf_pdfcrowd_button(array('custom_javascript' => 'document.body.style.setProperty("background-color", "gray", "important")'));
document.body.style.setProperty('background-color', 'gray', 'important')
[save_as_pdf_pdfcrowd on_load_javascript="document.body.style.setProperty('background-color', 'gray', 'important')"]
echo create_save_as_pdf_pdfcrowd_button(array('on_load_javascript' => 'document.body.style.setProperty("background-color", "gray", "important")'));
X-My-Client-ID:k2017-12345
[save_as_pdf_pdfcrowd custom_http_header="X-My-Client-ID:k2017-12345"]
echo create_save_as_pdf_pdfcrowd_button(array('custom_http_header' => 'X-My-Client-ID:k2017-12345'));
2000
[save_as_pdf_pdfcrowd javascript_delay=2000]
echo create_save_as_pdf_pdfcrowd_button(array('javascript_delay' => 2000));
div.user-panel.main p.article
[save_as_pdf_pdfcrowd element_to_convert="div.user-panel.main p.article"]
echo create_save_as_pdf_pdfcrowd_button(array('element_to_convert' => 'div.user-panel.main p.article'));
All element's siblings are hidden.
[save_as_pdf_pdfcrowd element_to_convert_mode="hide-siblings"]
echo create_save_as_pdf_pdfcrowd_button(array('element_to_convert_mode' => 'hide-siblings'));
div.user-panel.main p.article
[save_as_pdf_pdfcrowd wait_for_element="div.user-panel.main p.article"]
echo create_save_as_pdf_pdfcrowd_button(array('wait_for_element' => 'div.user-panel.main p.article'));
[save_as_pdf_pdfcrowd auto_detect_element_to_convert=true]
echo create_save_as_pdf_pdfcrowd_button(array('auto_detect_element_to_convert' => true));
Version 4 of the enhancements is used.
[save_as_pdf_pdfcrowd readability_enhancements="readability-v4"]
echo create_save_as_pdf_pdfcrowd_button(array('readability_enhancements' => 'readability-v4'));
1920
[save_as_pdf_pdfcrowd viewport_width=1920]
echo create_save_as_pdf_pdfcrowd_button(array('viewport_width' => 1920));
15000
[save_as_pdf_pdfcrowd viewport_height=15000]
echo create_save_as_pdf_pdfcrowd_button(array('viewport_height' => 15000));
Adapts the rendering according to the specified viewport width, influencing the @media (min-width) and @media (max-width) CSS properties. This mode is ideal for previewing different responsive designs of a web page, such as mobile or desktop views, by choosing the appropriate viewport size.
[save_as_pdf_pdfcrowd rendering_mode="viewport"]
echo create_save_as_pdf_pdfcrowd_button(array('rendering_mode' => 'viewport'));
Scaling mode 1 is applied.
[save_as_pdf_pdfcrowd smart_scaling_mode="mode1"]
echo create_save_as_pdf_pdfcrowd_button(array('smart_scaling_mode' => 'mode1'));
50
[save_as_pdf_pdfcrowd scale_factor=50]
echo create_save_as_pdf_pdfcrowd_button(array('scale_factor' => 50));
70
[save_as_pdf_pdfcrowd jpeg_quality=70]
echo create_save_as_pdf_pdfcrowd_button(array('jpeg_quality' => 70));
All images are converted to JPEG images. The JPEG format does not support transparency so the transparent color is replaced by a PDF page background color.
[save_as_pdf_pdfcrowd convert_images_to_jpeg="all"]
echo create_save_as_pdf_pdfcrowd_button(array('convert_images_to_jpeg' => 'all'));
300
[save_as_pdf_pdfcrowd image_dpi=300]
echo create_save_as_pdf_pdfcrowd_button(array('image_dpi' => 300));
Miscellaneous values for PDF output.
[save_as_pdf_pdfcrowd enable_pdf_forms=true]
echo create_save_as_pdf_pdfcrowd_button(array('enable_pdf_forms' => true));
[save_as_pdf_pdfcrowd linearize=true]
echo create_save_as_pdf_pdfcrowd_button(array('linearize' => true));
[save_as_pdf_pdfcrowd encrypt=true]
echo create_save_as_pdf_pdfcrowd_button(array('encrypt' => true));
123456
[save_as_pdf_pdfcrowd user_password="123456"]
echo create_save_as_pdf_pdfcrowd_button(array('user_password' => '123456'));
123456
[save_as_pdf_pdfcrowd owner_password="123456"]
echo create_save_as_pdf_pdfcrowd_button(array('owner_password' => '123456'));
[save_as_pdf_pdfcrowd no_print=true]
echo create_save_as_pdf_pdfcrowd_button(array('no_print' => true));
[save_as_pdf_pdfcrowd no_modify=true]
echo create_save_as_pdf_pdfcrowd_button(array('no_modify' => true));
[save_as_pdf_pdfcrowd no_copy=true]
echo create_save_as_pdf_pdfcrowd_button(array('no_copy' => true));
My Resume
[save_as_pdf_pdfcrowd title="My Resume"]
echo create_save_as_pdf_pdfcrowd_button(array('title' => 'My Resume'));
CV - Software Developer
[save_as_pdf_pdfcrowd subject="CV - Software Developer"]
echo create_save_as_pdf_pdfcrowd_button(array('subject' => 'CV - Software Developer'));
John Doe
[save_as_pdf_pdfcrowd author="John Doe"]
echo create_save_as_pdf_pdfcrowd_button(array('author' => 'John Doe'));
software developer, Unix, databases
[save_as_pdf_pdfcrowd keywords="software developer, Unix, databases"]
echo create_save_as_pdf_pdfcrowd_button(array('keywords' => 'software developer, Unix, databases'));
[save_as_pdf_pdfcrowd extract_meta_tags=true]
echo create_save_as_pdf_pdfcrowd_button(array('extract_meta_tags' => true));
These preferences specify how a PDF viewer should present the document. The preferences may be ignored by some PDF viewers.
Display the pages in two columns, with odd-numbered pages on the right.
[save_as_pdf_pdfcrowd page_layout="two-column-right"]
echo create_save_as_pdf_pdfcrowd_button(array('page_layout' => 'two-column-right'));
Document outline is visible.
[save_as_pdf_pdfcrowd page_mode="outlines"]
echo create_save_as_pdf_pdfcrowd_button(array('page_mode' => 'outlines'));
The page content is magnified just enough to fit the entire page within the window both horizontally and vertically. If the required horizontal and vertical magnification factors are different, use the smaller of the two, centering the page within the window in the other dimension.
[save_as_pdf_pdfcrowd initial_zoom_type="fit-page"]
echo create_save_as_pdf_pdfcrowd_button(array('initial_zoom_type' => 'fit-page'));
2
[save_as_pdf_pdfcrowd initial_page=2]
echo create_save_as_pdf_pdfcrowd_button(array('initial_page' => 2));
50
[save_as_pdf_pdfcrowd initial_zoom=50]
echo create_save_as_pdf_pdfcrowd_button(array('initial_zoom' => 50));
[save_as_pdf_pdfcrowd hide_toolbar=true]
echo create_save_as_pdf_pdfcrowd_button(array('hide_toolbar' => true));
[save_as_pdf_pdfcrowd hide_menubar=true]
echo create_save_as_pdf_pdfcrowd_button(array('hide_menubar' => true));
[save_as_pdf_pdfcrowd hide_window_ui=true]
echo create_save_as_pdf_pdfcrowd_button(array('hide_window_ui' => true));
[save_as_pdf_pdfcrowd fit_window=true]
echo create_save_as_pdf_pdfcrowd_button(array('fit_window' => true));
[save_as_pdf_pdfcrowd center_window=true]
echo create_save_as_pdf_pdfcrowd_button(array('center_window' => true));
[save_as_pdf_pdfcrowd display_title=true]
echo create_save_as_pdf_pdfcrowd_button(array('display_title' => true));
[save_as_pdf_pdfcrowd right_to_left=true]
echo create_save_as_pdf_pdfcrowd_button(array('right_to_left' => true));
Methods related to HTML template rendering.
{"recipient": "Anna May", "sender": "John Doe"}
[save_as_pdf_pdfcrowd data_string="{'recipient': 'Anna May', 'sender': 'John Doe'}"]
echo create_save_as_pdf_pdfcrowd_button(array('data_string' => '{"recipient": "Anna May", "sender": "John Doe"}'));
/home/user/john/data.json
[save_as_pdf_pdfcrowd data_file="/home/user/john/data.json"]
echo create_save_as_pdf_pdfcrowd_button(array('data_file' => '/home/user/john/data.json'));
csv
[save_as_pdf_pdfcrowd data_format="csv"]
echo create_save_as_pdf_pdfcrowd_button(array('data_format' => 'csv'));
iso8859-2
[save_as_pdf_pdfcrowd data_encoding="iso8859-2"]
echo create_save_as_pdf_pdfcrowd_button(array('data_encoding' => 'iso8859-2'));
[save_as_pdf_pdfcrowd data_ignore_undefined=true]
echo create_save_as_pdf_pdfcrowd_button(array('data_ignore_undefined' => true));
[save_as_pdf_pdfcrowd data_auto_escape=true]
echo create_save_as_pdf_pdfcrowd_button(array('data_auto_escape' => true));
[save_as_pdf_pdfcrowd data_trim_blocks=true]
echo create_save_as_pdf_pdfcrowd_button(array('data_trim_blocks' => true));
xml_remove_root=1
[save_as_pdf_pdfcrowd data_options="xml_remove_root=1"]
echo create_save_as_pdf_pdfcrowd_button(array('data_options' => 'xml_remove_root=1'));
[save_as_pdf_pdfcrowd debug_log=true]
echo create_save_as_pdf_pdfcrowd_button(array('debug_log' => true));
client-1234
[save_as_pdf_pdfcrowd tag="client-1234"]
echo create_save_as_pdf_pdfcrowd_button(array('tag' => 'client-1234'));
113.25.84.10:33333
[save_as_pdf_pdfcrowd http_proxy="113.25.84.10:33333"]
echo create_save_as_pdf_pdfcrowd_button(array('http_proxy' => '113.25.84.10:33333'));
113.25.84.10:44333
[save_as_pdf_pdfcrowd https_proxy="113.25.84.10:44333"]
echo create_save_as_pdf_pdfcrowd_button(array('https_proxy' => '113.25.84.10:44333'));
/home/user/john/pdfcrowd.crt
[save_as_pdf_pdfcrowd client_certificate="/home/user/john/pdfcrowd.crt"]
echo create_save_as_pdf_pdfcrowd_button(array('client_certificate' => '/home/user/john/pdfcrowd.crt'));
123456
[save_as_pdf_pdfcrowd client_certificate_password="123456"]
echo create_save_as_pdf_pdfcrowd_button(array('client_certificate_password' => '123456'));
Expert options for fine-tuning output.
144
[save_as_pdf_pdfcrowd layout_dpi=144]
echo create_save_as_pdf_pdfcrowd_button(array('layout_dpi' => 144));
2.5cm
[save_as_pdf_pdfcrowd content_area_x="2.5cm"]
echo create_save_as_pdf_pdfcrowd_button(array('content_area_x' => '2.5cm'));
2.5cm
[save_as_pdf_pdfcrowd content_area_y="2.5cm"]
echo create_save_as_pdf_pdfcrowd_button(array('content_area_y' => '2.5cm'));
25cm
[save_as_pdf_pdfcrowd content_area_width="25cm"]
echo create_save_as_pdf_pdfcrowd_button(array('content_area_width' => '25cm'));
25cm
[save_as_pdf_pdfcrowd content_area_height="25cm"]
echo create_save_as_pdf_pdfcrowd_button(array('content_area_height' => '25cm'));
1,0,-10,0,1,-10
[save_as_pdf_pdfcrowd contents_matrix="1,0,-10,0,1,-10"]
echo create_save_as_pdf_pdfcrowd_button(array('contents_matrix' => '1,0,-10,0,1,-10'));
1,0,-10,0,1,-10
[save_as_pdf_pdfcrowd header_matrix="1,0,-10,0,1,-10"]
echo create_save_as_pdf_pdfcrowd_button(array('header_matrix' => '1,0,-10,0,1,-10'));
1,0,-10,0,1,-10
[save_as_pdf_pdfcrowd footer_matrix="1,0,-10,0,1,-10"]
echo create_save_as_pdf_pdfcrowd_button(array('footer_matrix' => '1,0,-10,0,1,-10'));
[save_as_pdf_pdfcrowd disable_page_height_optimization=true]
echo create_save_as_pdf_pdfcrowd_button(array('disable_page_height_optimization' => true));
Warning
If your custom styling affects the contents area size (e.g. by using different margins, padding, border width), the resulting PDF may contain duplicit contents or some contents may be missing.
Allows to configure conversion via JSON. The configuration defines various page settings for individual PDF pages or ranges of pages. It provides flexibility in designing each page of the PDF, giving control over each page's size, header, footer etc. If a page or parameter is not explicitly specified, the system will use the default settings for that page or attribute. If a JSON configuration is provided, the settings in the JSON will take precedence over the global options.
The structure of the JSON must be:
Dimensions may be empty, 0 or specified in inches "in", millimeters "mm", centimeters "cm", pixels "px", or points "pt".
{ "pageSetup": [ { "pages": "1,3", "marginLeft": "72pt", "marginRight": "72pt", "marginTop": "72pt", "marginBottom": "72pt", "displayHeader": "content", "displayFooter": "none" }, { "pages": "2-5", "orientation": "landscape", "marginTop": "0", "marginBottom": "0", "headerHeight": "1cm", "displayHeader": "content", "displayFooter": "none" }, { "pages": "10", "pageWidth": "6in", "pageHeight": "10in", "displayHeader": "none", "displayFooter": "content" }, { "pages": "last", "backgroundColor": "00ff0080" } ] }
/home/user/john/conv_config.json
[save_as_pdf_pdfcrowd conversion_config_file="/home/user/john/conv_config.json"]
echo create_save_as_pdf_pdfcrowd_button(array('conversion_config_file' => '/home/user/john/conv_config.json'));
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
[save_as_pdf_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"]
echo create_save_as_pdf_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'));
Version 20.10 is used.
[save_as_pdf_pdfcrowd converter_version="latest"]
echo create_save_as_pdf_pdfcrowd_button(array('converter_version' => 'latest'));
Warning
Using HTTP is insecure as data sent over HTTP is not encrypted. Enable this option only if you know what you are doing.
[save_as_pdf_pdfcrowd use_http=true]
echo create_save_as_pdf_pdfcrowd_button(array('use_http' => true));
3
[save_as_pdf_pdfcrowd retry_count=3]
echo create_save_as_pdf_pdfcrowd_button(array('retry_count' => 3));