Hello,
You can use the @media rule for this purpose.
CSS
@media print {
.screen-only { display:none }
}
@media screen {
.pdf-only { display:none }
}
HTML
<p class="screen-only">This won't be printed</p>
<p class="pdf-only">This won't be rendered in the browser, only in PDF</p>
API
// use the print media type, default is screen
$client->usePrintMedia(True);