dompdf/dompdf — pull request #776 by pauln (2014-01-28 21:21:07+00:00)
Title: Account for \n at start of xref in startxref

Although (most) PDF readers seem to cope with an incorrect startxref value
it is off by one and can cause problems with other PDF libraries if they
trust the startxref value (i.e. they don't account for this issue).

The value is almost calculated correctly, but the \n added when adding the
xref table is not accounted for.