Measured against the real document, not a guess

input the pack html
step render headless Chrome
artefact the PDF what the reader opens
pdfinfo Pages: N the real count
compare N ≤ max ?
within budget PASS
over budget FAIL · by how much