VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: ekwax on February 08, 2015, 18:11:35 PM

Title: I would like to put table borders in my PDF invoice
Post by: ekwax on February 08, 2015, 18:11:35 PM
I have searched a lot in the forum and i didn't find information dealing with the way to give a nice look to the PDF.
i tried in the shop billing /mail tab. i put some code in there:
.sectiontableheader{
background-color: #28e537;
border: 2px solid #000;
}

it worked!
but the reste of the code doesn't work at all. i would like to put border and son padding ...
any idea?
Title: Re: I would like to put table borders in my PDF invoice
Post by: reinhold on February 08, 2015, 20:10:14 PM
VirtueMart uses the TCPDF library to convert the html code to a PDF. Unfortunately, TCPDF is not a full implementation of the CSS specification and supports only a small subset. IIRC, among those features not supported by TCPDF are table/cell border padding...

Sorry,
Reinhold
Title: Re: I would like to put table borders in my PDF invoice
Post by: GJC Web Design on February 09, 2015, 00:43:32 AM
Yes  - TCPDF is so 'primitive' that for things like this it is easier to make an A4 sized image with things like borders and use  that as a background in the pdf

There is code (search TCPDF site  www.tcpdf.org ) to draw lines etc .. but you will need to hack this stuff directly into the files