7 Best JavaScript Printing Plugins To Print Specific Elements

by jQueryScript,

In general, users can print the entire page directly from the browser by pressing Ctrl + P.

Most modern browsers, however, don't provide an advanced printing feature that enables the user to print specific elements from within the document.

To address this, I listed here the 7 best jQuery and Vanilla JavaScript printing plugins that help you print specific HTML element with additional styles and custom header & footer on the page. Enjoy.

Originally Published Nov 04 2020, updated Mar 04 2024

1. jQuery Plugin To Print Any Part Of Your Page - Print

Print is an easy and simple jQuery plugin that allows the visitor to print only the specified area of your web page.

jQuery Plugin To Print Any Part Of Your Page - Print

[Demo] [Download]


2. A JavaScript Library For Printing Any Elements On The Page – Print.js

A small yet powerful JavaScript library which enables you to preview and print any elements (PDF, HTML, IMAGE, DYNAMIC DATA) on the webpage.

A JavaScript Library For Printing Any Elements On The Page – Print.js

[Demo] [Download]


3. Print Specific Element With CSS - jQuery divjs

A lightweight and easy jQuery element printing plugin which allows the user to print only a selected HTML element with additional CSS styles.

Print Specific Element With CSS - jQuery divjs

[Demo] [Download]


4. Print HTML/JSON/PDF/Image From The Web – Print.js

A small yet powerful and customizable JavaScript print library which enables you to print HTML, JSON, PDF, and Image directly from the web.

Print HTML/JSON/PDF/Image From The Web – Print.js

[Demo] [Download]


5. Print Specified Area Of A Page - PrintArea

PrintArea is a jQuery Plugin that allows your visitors to a specific area of the page.

Print Specified Area Of A Page - PrintArea

[Demo] [Download]


6. Print Specific Content While Preserving Styling – Printout.js

A JavaScript printing library to print specific DOM elements while maintaining their visual aspect.

Print Specific Content While Preserving Styling – Printout.js

[Demo] [Download]


7. Customizable Multiple Elements Printing Plugin With jQuery - printThis

Yet another page printing plugin for jQuery that allows the user to print specific element(s) of your webpage, while preserving the page styles (and even additional CSS) and input/form values.

Customizable Multiple Elements Printing Plugin With jQuery - printThis

[Demo] [Download]


More Resources:

Seeking more jQuery plugins or JavaScript libraries to help printing on the webpage? See jQuery Printing and JavaScript Print sections for more details.