jQuery Plugin To Print Specified Elements Of Webpage - printThis

jQuery Plugin To Print Specified Elements Of Webpage - printThis
File Size: 35.4 KB
Views Total: 8376
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

printThis is a jQuery plugin which allows you to exclude or include certain area in a document from printing. Also supports printing webpage with a specified stylesheet.

How to use it:

1. Download and include the printThis jQuery plugin after JQuery javascript.

<script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="jquery.printThis.js"></script>

2. Call the plugin to print a specified area of your webpage.

$('#div_to_print').printThis();

3. Config options.

// Title of the print Document
title: 'New Document', 

// stylesheets links
styles: null, 

// elements to be excluded
exclude: null, 

// hidden elements to be included
include: null 

Change log:

2017-02-11

  • Fix bugs not showing properly on html elements

This awesome jQuery plugin is developed by valluminarias. For more Advanced Usages, please check the demo page or visit the official website.