Author Topic: Which PDF library does VirtueMart use to get PDF's so accurate?  (Read 356 times)

mailblade

  • Jr. Member
  • **
  • Posts: 102
  • A beginner
Which PDF library does VirtueMart use to get PDF's so accurate?
« 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.

StefanSTS

  • Global Moderator
  • Jr. Member
  • *
  • Posts: 449
  • VirtueMart Version: VM 4.2 on Joomla 4.5
Re: Which PDF library does VirtueMart use to get PDF's so accurate?
« Reply #1 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
--
Stefan Schumacher
www.jooglies.com - VirtueMart Invoice Layouts

Please use only stable versions with even numbers for your life shop! Use Alpha versions only if you know what risk you are taking.

mailblade

  • Jr. Member
  • **
  • Posts: 102
  • A beginner
Re: Which PDF library does VirtueMart use to get PDF's so accurate?
« Reply #2 on: November 28, 2018, 14:45:26 pm »
Thanks a lot StefanSTS!

Will look into tcpdf and those files a bit more.