Print Pro
Last updated
Last updated
Print Pro gives apps the ability to print the current page, Print based on a custom stylesheet, skip elements, print an element, create a HTML template to insert dynamic data into or create a template with custom HTML, JavaScript, CSS & dynamic data all in one. This means no more APIs or 5 second+ wait times for an invoice, receipt, flyer or anything else you create.
The plugin has 3 elements. You just need to place each of them on the page and get started.
Display content of an pdf file from given URL.
PDF URL
- Link to the pdf file you want to view .
Viewer ID
- return ID of viewer. Need to print this viewer by ID.
This element is powerful tool to print different things.
Exposed states
HTML Output
- stores HTML code of printed things.
1) Print Elements
Fields
Page Title
- Title of printed page. This text will be displayed at top of page.
ID of Elements to Print
- Print an element by it's Id. The value should look like this "elementid" without #.
Import Pages's CSS?
- Use .css files included on current page.
Import Page's Style?
- Use styles from <style></style>
tags of current page
External CSS Files URL
- Import style from custom .css. Example of input value: https://www.w3schools.com/w3css/4/w3.css
Remove Inline Styles From Page?
- Remove inline styles from print elements. Example of inline style: <div
style="color:red;font-size:16px;"
>Text in 'style' is named inline style</div>
Set Print Delay (ms, More you print the longer this need's to be!)
- Waiting time before printing starts.
Add HTML Header to Document?
- This HTML content will be printed before element.
Add HTML Footer to Document?
- This HTML content will be printed after element.
Copy Form Values? (Enhances the look of input fields)
- Preserve input/form values.
Print Canvas Elements?
- Copy canvas content
HTML Doc Type
- Enter a different doctype for older markup
Debug Mode
- Show the iframe for debugging
2) Print HTML Template
Print html content from field.
Fields
custom HTML Template
- HTML code for print
Timeout
- Waiting time before printing starts.
Output the template but dont Print
- Yes
or No
. If No
Output the template but dont Print.
This action write in state HTML Output
Printed HTML code
3) Print HTML Template (Advanced)
Fields
Custom CSS
- Custom internal css code. Tags <style></style>
should be used. Example:
custom CSS URL
- Custom external .css file. Example:
Custom Head Javascript
- Custom JavaScript code. Tags <script></script>
should be used. Example:
Custom Head Javascript URL
- Custom script from source. Example:
Custom Body Javascript
- Custom JavaScript code. Tags <script></script>
should be used. Example:
Custom Body Javascript URL
- Custom script from source. Example:
Custom Head HTML (remove tags!)
- This HTML code will be writen in head of your HTML document. Tags <head></head>
enabled by default. Example:
Custom Body HTML (remove tags!)
- Main HTML content of your page. Tags <body></body> enabled by default. Example:
Custom HTML Header
- This HTML content will be displayed at the top of the page, before body content. Example:
Custom Footer HTML
- This HTML content will be displayed at the bottom of the page, after body content. Example:
Timeout
- Waiting time before printing starts.
Output the template but dont Print
- Yes
or No
. If No
Output the template but dont Print.
Resulting HTML
4) Print Whole Page
This action print current page using Styles of them.
5) Invoice Builder
6) Print Another Page
This action creates an iframe and prints its contents.
Fields
Time to Allow Loading
- Waiting time befor printing. It need to wait while page is not loaded full.
Print Page Named
- URL of page.
7) Print Element Inline styles
Print an element by ID.
Fields
Element ID
- id of element to print.
This element make preview for input HTML code.
Fields
HTML
- HTML Code.