News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

I would like to put table borders in my PDF invoice

Started by ekwax, February 08, 2015, 18:11:35 PM

Previous topic - Next topic

ekwax

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?

reinhold

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

GJC Web Design

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
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation