Hi Geertjan,
You can use the PrintLayout to set this, which is also part of ultimate pdf.
They actually have a PaperSize and MarginSize option.
The way this works is by adding it to the the screenToPdf..
I've added a print screen to help you out in case my descriptions wasn't clear.
Hope this solves your problem.
Kind regards,
Alexander