PDF invoice different to preview

Hi,
I have added a table to the payment terms section of the invoice to show bank details. Everything looks fine on the preview but on the PDF something has gone wrong with the padding/background. My css is probably not the best but I cannot see the wood for the trees anymore, have I missed something obvious? Thanks for any help!




The PDF generator may have some other bits of CSS in force that the screen renderer doesn’t. Have you tried explicitly setting margin:0; padding;0 in the style attribute of your top level <table> in case it’s putting some margin on all tables by default?

Thanks Ian, I gave that a try, and each separately, but it still renders the same unfortunately.

I thought that I would have another try with this by taking out the table border and adding a border to each th and td but the PDF rendered with gaps too.

I am having trouble with odd characters being added to my css. There are two types of quotation marks showing and if I edit, it always gives me the curly type and that sends everything out of alignment again. I can’t seem to put back in the straight type of quotation mark. This is all very strange!

This topic was automatically closed after 4 days. New replies are no longer allowed.