Is there a way to remove a page from the PDF output if a certain element is found on that page?
For example:
If I want to remove all pages that have an element with the id "banana", I tried the following:
css
or if I want to remove all pages that have an element with class "banana", I tried the following:
css
Unfortunately, neither of these ideas work. Does CSS/Prince allow for such an instruction?
For example:
If I want to remove all pages that have an element with the id "banana", I tried the following:
css
@page removed { visibility: hidden; }
div[id^="banana"] { page: removed; }
or if I want to remove all pages that have an element with class "banana", I tried the following:
css
@page removed { visibility: hidden; }
div.banana { page: removed; }
Unfortunately, neither of these ideas work. Does CSS/Prince allow for such an instruction?
John Clarke
Cornerstone Systems Northwest Inc.