
The above will work nicely if there is no validation to consider.

Here we will have a trigger image that redirects on print close: ]
#PRINTME DOCUMENT ID PDF#
Use the alt attribute along with the img_url to define the image alt value.ĭemo of Trigger Image: ]įull url to redirect the user to after either a) the print dialogue closes or b) the pdf is loaded into a new tab (depending on which browser is being used) ] Use the height attribute along with the img_url to define the image height. Use the width attribute along with the img_url to define the image width. Using a trigger image will override standard print trigger, replacing it with the chosen image. The img_url attribute is used to define the image URL to use as a trigger. The tag attribute will change the trigger element from the default button to, say a div. The class attribute will assign the button a custom class. If no title is assigned, the button will have the tex of: ‘Print PDF’ The title attribute will assign the text of the print button.

If no ID is assigned a random id will be assigned. The ID attribute will assign a custom ID to the button. The optional attirbutes for the print-pdf shortcode are as follows: This will produce a simple button that will print the pdf: Therefore the PDF will open in a new tab and the user can print from there. Note: the ability to print pdf files from javascript is currently not supported in FireFox. As of version 1.2.6 we have introduced a new shortcode to print-pro-matic, just for printing PDFs.
