printable content / excluded content

Created on 11 February 2024, 5 months ago
Updated 1 March 2024, 4 months ago

Is there a way to specify which areas of the entity content should be printed, or ways to exclude some ?

I could for example imagine some class such as ".exclude-from-print" or similar which would indicate that the contents of that element should not be printed / "PDeffed"

✨ Feature request
Status

Active

Version

2.13

Component

Miscellaneous

Created by

πŸ‡ΉπŸ‡­Thailand manarak

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @manarak
  • ivnish Poland
    <style>
      @media print {
        .noprint { display: none; }
      }
    </style>
    
    <div class="noprint">
    ...
    </div>

    But we need to use

    $this->dompdfOptions->setDefaultMediaType('print'); into /modules/contrib/entity_print/src/Plugin/EntityPrint/PrintEngine/DomPdf.php

Production build 0.69.0 2024