Print Header only on first page of PDF

As a non-upgrade safe hack, you could try changing this function

To become like this

    public function Header(): void
    {
         if ($this->page == 1) {
             $this->writeHTMLCell(0, 0, '', '', $this->getHtmlHeader());
         }
    }

I didn’t test this, I just made it up right now, I have no idea if it will work, or fail miserably.