Hide element when printing page

0

I have a page of a product report that converts it to pdf using wkhtmltopdf.

My problem is when generating the pdf I want to put a div with a banner at the end of category, if the category does not occupy the entire page. EX: report with 10 page    on the tenth page the products occupied only half of the page, so place a banner.

If the products occupy the entire page do not show the banner. not even the next one.

    
asked by anonymous 26.09.2016 / 20:18

1 answer

2

I do not know if the question is consistent with the title of the same, but in case of hiding or treating elements in the print version you just need to deal with css.

Here's an example

/*CSS para impressão*/
@media print {
  .elemento{
  display: none;
  }
}
    
05.10.2016 / 22:57