Area Print is a simple module that let's you add print button or link that sends any given element(div, table, block.. anything with a css id) to a printer.

All original css from the page(including definitions from parent elements) is applied(though browsers tend to strip some off) and you can append your own on top of that.

Usage

Provides a blog containing a print button.
Or if you are coding, you can use this render array

$renderable['my_button'] = [
  '#type' => 'print_area_button',
  '#value' => t('Print page'),
  '#selector' => 'main#main',
  '#as_link' => FALSE,
);

See also PrintJs module.

Project information

Releases