I need to remove a watermark on the last page of my PDF, but I can\'t detect the last page in the header Yes I can do it in the footer.
protected $last_page_