We'll create fresh WordPress site with Save as Image plugin by Pdfcrowd installed. You have 20 minutes to test the plugin after that site we'll be deleted.
The Save as Image plugin is easy to use. Just install the plugin and activate it. The plugin puts a “Save as Image” button in your web pages. The button enables to save the current web page (the default), or only a part of the page or an arbitrary page in one click.
The plugin internally uses the Pdfcrowd API web service. The Pdfcrowd API is a professional solution for converting web pages and HTML documents to PDF and various image formats.
The plugin is highly customizable, you can:
* customize the button style, text and icon
* choose between the “screen” and “print” layout (CSS @media)
* convert password-protected pages
* convert pages with data in forms
* create interactive PDF forms
* customize image format, image size, scale factor, run custom JavaScript, and many more …
You can customize the plugin on the Settings page.
Shortcodes
The [save_as_image_pdfcrowd] shortcode places a button in the web page. Clicking the button downloads the page as an image.
The enclosing [block_save_as_image_pdfcrowd] shortcode downloads just the enclosed part of the page as an image. To style the part, include CSS rules inside the block shortcode.
The shortcodes can customize the button style and conversion output by overriding the settings specified on the plugin Settings page.
For example, to change the page size to Letter and create a red button use:
[save_as_image_pdfcrowd page_size='letter' button_background_color='red']
Create Button in PHP
The conversion button can be created directly in your PHP code with the create_save_as_image_pdfcrowd_button($options = array()) function.
<?php
create_save_as_image_pdfcrowd_button(array(
'page_size' => 'letter',
'button_text' => 'Save as Letter'));
?>
Button CSS Customization
The button style can be customized also by setting CSS properties on the save-as-image-pdfcrowd-button-wrap or save-as-image-pdfcrowd-button classes.
.save-as-image-pdfcrowd-button {
font-family: Georgia;
}
Output
The output image can be either downloaded or opened directly in the browser. This can be configured with the “Button Click Action” option.
The output file name is generated automatically or can be specified in custom options, e.g.
[save_as_image_pdfcrowd output_name='my-page.png' button_background_color='red']
Support
Please contact us on [email protected] us if you need any help.
We recommend that you check our FAQ. It contains answers to many common questions.
Pdfcrowd API Playground may help you to configure the plugin, create a shortcode or a function call.
The plugin runs in the demo by default. It is fully functional but adds a watermark and Pdfcrowd branding over the content.
You can purchase a Pdfcrowd API license to remove the demo watermark and Pdfcrowd branding. To activate the license, enter your Pdfcrowd username and your API key in the plugin settings on the License tab.
A single Pdfcrowd API license can be used for both our plugins on multiple WordPress websites. Moreover, the API license enables you to use the Pdfcrowd conversion API directly.