Drupal is a registered trademark of Dries Buytaert
Release: Drupal 10.3.6 Update released for Drupal core (10.3.6)! Release: Drupal 11.0.5 Update released for Drupal core (11.0.5)! Release: Drupal 10.2.9 Update released for Drupal core (10.2.9)! Release: Drupal 10.2.10 Update released for Drupal core (10.2.10)! Release: Drupal 10.3.7 Update released for Drupal core (10.3.7)! Release: Drupal 11.0.6 Update released for Drupal core (11.0.6)! Release: Drupal 10.3.8 Update released for Drupal core (10.3.8)! Release: Drupal 11.0.7 Update released for Drupal core (11.0.7)! Module Revived: Translation Management Tool 8.x-1.19 Module tmgmt updated after 7 months of inactivity (8.x-1.19). Usage Milestone: Account field split Module account_field_split crossed 10,000 active installs.

Sometimes you just want to Print only content in Div with your custom id
This module uses https://printjs.crabbly.com/ library for this purpose.
you can specify the id you want to print in configuration, by default id="print"
<div id="print"> Print me</div>

How to use:

  • It's easy to print specific parts of a page by wrapping content in a div with a custom ID, e.g. <div id="print">...</div>. The ID can be configured in the module settings.
  • Place Printjs block, it will show print button Print, when you click will send content in id=print + css of page to printer.
  • You can add print buttons to trigger printing in views headers/footers.
  • The module is highly extensible via hooks like hook_preprocess_printjs. For example, you can customize the print output to generate PDFs, images,json etc. instead of plain HTML more infomation in https://printjs.crabbly.com/.

In summary, PrintJs is a developer-friendly module that offers easy and configurable printing of Drupal content. By using div IDs, you can selectively print just what you need, not print all page with header / footer/ sidebar

Do you like this module? Show your appreciation by buying me ☕.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Jan 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Core Release date
1.0.10 Stable Jan 7, 2025