The following is an example of how to add a pdf document to be printed along with a target using the new add_print_url attribute.
First, we need a simple target to print:
<div id="print_target">This is the simple print target for the page</div>
Now, we simply add our print-me shortcode and use the add_pdf_url attribute to include a pdf document to be printed:
[print-me target="#print_target" add_pdf_url="http://spacedonkey.de/wp-content/uploads/2012/06/RomeSweetRome1-8v22.pdf" pause_time="3000"/]
Direct PDF Print
This will produce a simple button that will print the pdf:
The optional attirbutes for the print-pdf shortcode are as follows:
The ID attribute will assign a custom ID to the button. If no ID is assigned a random id will be assigned.
The title attribute will assign the text of the print button. If no title is assigned, the button will have the tex of: ‘Print PDF’
The class attribute will assign the button a custom class.
The tag attribute will change the trigger element from the default button to, say a div. For example:
[print-pdf pdf_url="url_to_pdf" tag="div"/]