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.