Printer is used to print a certain component instead of the whole page.
<div class="card">
<p:commandButton value="Print" type="button" icon="pi pi-print" styleClass="p-d-block p-shadow-2 p-mb-3">
<p:printer target="image"/>
</p:commandButton>
<p:graphicImage id="image" name="demo/images/nature/nature10.jpg"/>
</div>