Instructions
The "Print Magic" plugin contains only one client side action, "Print Magic", which accepts the following fields:
"CSS Selectors" a list of style selector queries. Each item is treated as a single query placed inside a STYLE element. Use this to customize the printed rendering.
"HTML Pages" a list of static HTML snippets that can be embedded into a DIV element. Each item in the list is printed on at least one independent page.
"Copies" the number of copies of the pages to print. This creates actual copies of the pages. It does not forward a copy count to the print dialog.
"Margin" the physical margin of the page, in millimetres, to request from the print manager. May or may not be respected by the print manager.
"Width" and "Height" must be specified together to be applied. Constrains the physical size of each HTML snippet item in millimetres, regardless of the available physical print media.
"Orientation" applies the orientation to each HTML snippet item, regardless of the print manager settings. When "Width" and "Height" are not supplied uses the viewport units to determine shortest and longest dimensions. See the caveat emptor regarding AirPrint shortcomings.
Drag the Print.js Client element onto the page to access the following actions:
"Download" the binary of a remote URL into local memory and provide a local URL pointing to the local file. Will raise "Download Started", "Download Progressed", and "Download Completed" events.
"Save" a local URL, raising the Share prompt when available, falling back to the Save file prompt, which in turn falls back to opening the local URL in a new tab.
"Print" a PDF or image from a URL, or a HTML or serialized JSON text directly. Will raise the "Print Started", Print Completed", and "Print Prompt Exited" events (may or may not be raised depending on browser).
"Close" a local file URL, freeing the memory resources.
All actions, in the case of an error will raise the "Action Failed" event.