Using the standard built-in plain invoice template, I slightly changed the theme to have a line break in the company details and the business identifier to be included as well. The invoice preview reflects this change correctly, but the print and PDF layout do not. Here, the line break is not included. I tried to find the possible different instances of the theme files, but in the GUI, there’s just the code box for editing the theme.
I think your problem is that you have your <br> tags enclosed in <div> tags. Since there is no content, the PDF generator ignores it. Try just placing the <br> tags in front of the following <div>
Thanks for the quick reply. Tut’s response about ‘no content’ put me on the right track.
It’s not the “br” tag that is in the wrong place. Any position is handled the same, before/between/after “div”. Brucanna’s suggestion of using xhtml tag “br/” also does not solve it.
However, since the PDF generator seems to skip empty lines, I included a forced space tag (“ ”) to see if that would be treated as ‘content’, which it does. This solved the problem.
The difference between the two is that <br> is more commonly-accepted, whereas <br/> is the correct fully XHTML syntax to use, if you’re strictly following the requirements. All modern browsers will accept the more relaxed version though (<br>).
I am clueless with regards to Liquid. My PC crashed so I had to download Manager again. When I restored my company from the backup, the format for my invoices in PDF/Print changed. Viewing the invoice in Manager is fine
Can someone please help me correct the settings to fix this issue?
Under Settings in Themes, you will see a list of templates/themes that are available. You will get a preview of the elements that are defined in the theme. When clicking the Edit button, you will be presented with the code of that template/theme. I am no expert on all of this, but the difference between your screenshots looks a lot like a column width issue.
It looks like you have 3 columns (customer, invoice, business). It may be that your logo/image “pushes” the other columns to the left (look for code similar to ). Or it may be that the column size is not defined and this is an auto-sizing thing (look for code similar to ).
Maybe this helps with identifying what the problem is.