Login or create new account.

By registering on joomprod.com, you will have immediate access to all our free products and to the public side of our support forum.

Enjoy our subscriptions.

Each of our subscriptions allow you to enjoy the private side of the support forum and all the update of our products for a period ranging from 3 months to 1 year.

Payment And immediate download.

After subscribing to one of our subscription, the products are immediately downloadable.


Or Register
Accueil / forum / Support / Invoicing Support / Modifying PDF template via CSS

Support Availability Because we must sleep sometimes

Working days: Monday to Friday.
Reply time: Depending on the complexity of your support issue it's usually between a few hours to 48 hours.

Support is only guaranteed to paid subscribers



The forum is in read only mode.

End of Forum > Moving to ticket system (01 Jan 2014)

The forum is now in read-only mode.

To send us support request, please open a tickets > Support > Tickets Support

We have tested the ticket system during the last 3 months and we are sastified with it. So the forum is just for history now.

Modifying PDF template via CSS

7 years 4 months ago #5346 by tachyon
As my thread title suggests, is it possible to modify the font type and size of the pdf template via css?
7 years 4 months ago #5384 by tompap
you can add some style in the template textarea editor.

I didn't try to load a font type so I am not sure it will work (domPDF the library we are using, is not perfect, in the next release we are planning to use other lib)
7 years 4 months ago #5399 by tachyon
Hi tompap,

I will try this. I would like to see if we can change the font size, if nothing else.

Also, can we alter the generated pdf to include the invoice number in the filename (rather than just file.pdf) ?
7 years 4 months ago #5407 by loic

for the name of the invoice, we need to make a fix. This feature doesn't seems to work correctly.

Best regards.
7 years 4 months ago #5468 by tachyon
I can confirm that changing css style in the template works. However, to change font-face, I have to add the additional font to dompdf, since the dompdf library that comes with the module did not come with a full complement of fonts.

Any clues on how to modify the generated pdf filename ourselves? I assume this is done from within pdf helper class in the com_invoicing ?

Thanks again!
7 years 4 months ago #5500 by tompap

DOMPDF don't manage CSS3.
The best way to convert to PDF is using wkhtmltopdf (but to use it you should install this program on linux etc.. a little too complicated for all users). but wkhtmltopdf is based on webkit to do the PDF rendering. so you can use all CSS syntax.

Regarding the file name, we have to do some test
because the code is correct already
in view.pdf.php
we do
$filename =

$filename = str_replace(array("/","."," "),"_",$filename);
Time to create page: 0.186 seconds
Powered by Kunena Forum