Hello, I just went to v1.6.3 , thanks for your continued development.
When possible I’d like to put everything on one page, here’s what I’ve tried so far.
I’ve removed some things from InvoicePlane.php that I don’t think I’ll use, and removed some line breaks , ie. br that got me some real estate back, and I’ve made entries to templates.css and custom-pdf.css , the changes definitely help for reducing text size but not in the item paragraphs.
I put this into each of the two mentioned files, any advice would be appreciated.
body {
font-size: 10px;
line-height: 1.0;
margin: 5px;
padding: 5px;
}
1 Like
It’s exactly the right approach
Personally, i would have renamed InvoicePlane.php to InvoicePlane custom.php and then set that in all the settings.
- Let’s say version 1.6.4 gets released.
- It will definitely have some changes in
InvoicePlane.php
- Then you don’t want your beautiful changes be overwritten.
That’s true, I’ll clean things up once I get the right format.
But what can I do in the meantime to reduce the padding/spacing of the items the invoice, because what I have doesn’t affect those things. It does affect the footer/header and rest of the text.
1 Like
Show the screenshot of all the things that you want to reduce padding on.
I would have taken a screenshot, pasted it in paint and just started drawing.
The lazy way:
<table cellpadding="0" cellspacing="0">, but that is sooooo 1996…
I would still focus on that css that you showed.
- Is that css actually used?
- does
background-color:red actually turn a table cell red?
body {
font-size: 10px;
line-height: 1.0;
margin: 5px;
padding: 5px;
}
I would not target “body”
I would target table and tr and td instead.
If your style actually turns the table cell (td) red, style it like you want.
I still think you can get rid of padding and spacing in other places.