Allow for adjustable pdf dimensions and margins