Menu

#19 paper size and page orientation settings

Next_Release
open
nobody
None
2013-12-26
2013-12-26
urugamai
No

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.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.