jQuery PrintMe

Yes! Another jQuery plugin for print any page element

PrintMe is a lightweight Plugin to print any html element.

Get from github

Step 1 - Include your Javascript

printMe is a jQuery plugin, so you gotta have that first:

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>

Then, just include jquery-printme.js, wherever it lives on your server:

<script src="path_to/jquery-printme.js"></script>

Step 2 - PrintMe!

Now you can print any element.

Here are a few examples:

Basic:

$("#example").printMe();

With external css styles, add all stylesheets you can need in the array

$("#example").printMe({ "path": ["path_to/eternal.css","path_to/eternal2.css"] });

With title

$("#example").printMe({ "title": "The title" });

Options:

Print without css styles

Col1 Col2 Col3
A B C
D E F

Code:

$("#example").printMe();


Print with external css styles

Col1 Col2 Col3
A B C
D E F

Code:

$("#example").printMe({ "path": ["path_to/eternal.css"] });


Print with title

Col1 Col2 Col3
A B C
D E F

Code:

$("#example").printMe({ "path": ["path_to/eternal.css"], "title": "Document title" });


PrintMe has been developped by Daniel Arlandis @menusal


That's about all there is to know! Happy printing! If you find any interesting uses for this little library, please let me know!
Issues and Pull Requests are more than welcome!

If you have any questions, drop me a line at: daniarlandis@gmail.com