The last page of the pdf always fails to add the margin.