I am trying to remove a page break from a PDF file using DOM PDF
.
I also tried to get page number and regenerate PDF File with custom page height.
Take a look: http://www.tcpdf.org
Everything You need is in examples - ease to write and advanced php pdf lib.
Custom header > https://tcpdf.org/examples/example_002.phps