Initialize a buffer and ensure the last item is never written to.
Initialize a buffer and ensure the last item is never written to.

This should fix the item in Issue #6 exposed by stackoverflow2.pdf
Thanks to @rtfingc for finding and reporting this issue.

enferex/pdfresurrect