August 28, 2018 at 7:35 am #16019
Hi everyone. I apologise if this topic has been covered before but I can’t seem to find any info on how to set custom page size or change page orientation.
Is it possible to change page orientation from portrait to landscape or change the paper size to custom dimensions?
Thanks in advance !August 28, 2018 at 7:51 am #16021
The page size can be adjusted on Settings > Invoice Design.
Changing the orientation would require changing the code.August 28, 2018 at 9:59 am #16023
Thanks for the reply, Hillel. I have seen the “Page Size” setting in “Invoice Design” tab but all the entries in that drop down list are predefined sizes and in portrait mode. I was hoping to change the page size values so that I can have a landscape page orientation.
In order to switch to landscape page orientation, what code do I need to change? I am having a self hosted version 4.5.3. Although I am not a developer, I may be able to change the code if you can point me in the right direction on what code needs to be changed.
Thanks in advance!August 28, 2018 at 2:54 pm #16033
We use pdfmake to generate the PDF, it requires a document definition (dd) which is defined here:
You can find out about the additional options here:
Note: we compile the JS/CSS files, there’s more info here:August 31, 2018 at 9:23 am #16080
Thanks for taking your time to guide me on this. I appreciate very much. Unfortunately, I tried but could not figure out how to change the page orientation by looking at the reference material that you have provided. Perhaps because I am not a developer, I mistakenly hoped that this task could be achieved easily by changing a couple of lines of codes, and the explanation of how to do this would be in a knowledgebase or an FAQ.
I understand that the portrait mode page orientation is sufficient for many people but I am sure there are some people out there, like me, who might need landscape mode for various reasons. Is there any plans for implementing an option for users to switch between Portrait and Landscape mode? Thanks!August 31, 2018 at 9:25 am #16081
Sorry, this is the first time it’s been requested. We don’t have any plans to add it.
You may want to consider hiring a developer on upwork.com or submitting a request here:August 31, 2018 at 4:57 pm #16086
I understand. I wish I could hire a developer but I can’t right now. Thanks for the suggestion anyway.December 1, 2018 at 5:05 pm #17223
I would like to +1 for the ability to change page orientation for invoices, quotes, and proposals.December 1, 2018 at 10:24 pm #17229
dd.pageOrientation = ‘landscape’;
You must be logged in to reply to this topic.