creating a pdf at the right output size and dimensions