The paper size in Australia is 'a4' and while 'portrait' orientation is normal, someone out there may want a 'landscape' invoice? I started to add code to carry the user's desired settings on a per-project basis (for people who work across borders) but then got stuck getting these two values (papersize and pageorientation) to the createPDF routine without bringing in SQL calls which I suspect you dont want in the 'core' routines. I modified the defaults in the config file for dompdf but of course this will be overwritten by the next upgrade so a settings file or DB value is needed. If I get time I will continue to look at how to add this better but thought it best to raise it for the experts to contemplate.