VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: mailblade on November 28, 2018, 14:34:08 PM

Title: Which PDF library does VirtueMart use to get PDF's so accurate?
Post by: mailblade on November 28, 2018, 14:34:08 PM
I was wondering which PDF library/component VirtueMart uses to generate the PDF's.

It keeps all the formatting, styling etc. of your order details view and transfers it onto the PDF.

If someone could point me to the file which handles all this I'd appreciate it.
Title: Re: Which PDF library does VirtueMart use to get PDF's so accurate?
Post by: StefanSTS on November 28, 2018, 14:43:33 PM
Hello,

the library is called TCPDF.

The files you are looking for are located in /components/com_virtuemart/views/invoice/tmpl/
There are four files with the beginning invoice.

Overrides should be placed in the template folder adding .... /html/com_virtuemart/invoice/

Stefan
Title: Re: Which PDF library does VirtueMart use to get PDF's so accurate?
Post by: mailblade on November 28, 2018, 14:45:26 PM
Thanks a lot StefanSTS!

Will look into tcpdf and those files a bit more.