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.

Login

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

AdsManager - End of life

It is with great regrets that we have chosen to end the developpement of Adsmanager and its other associated components.

AdsManager is born 10 years ago and, as of today, the number of new subscriptions and downloads have fallen and we cannot maintain the component anymore.

All active subscribers will be able to continue enjoying support until the end of their subscription.

The components will be free and no support will be provided anymore for the other users.

×

Notice

The forum is in read only mode.

Modifying PDF template via CSS

More
10 years 10 months ago #5346 by tachyon
Modifying PDF template via CSS was created by tachyon
As my thread title suggests, is it possible to modify the font type and size of the pdf template via css?
More
10 years 10 months ago #5384 by tompap
Replied by tompap on topic Modifying PDF template via CSS
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)
More
10 years 10 months ago #5399 by tachyon
Replied by tachyon on topic Modifying PDF template via CSS
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) ?
More
10 years 10 months ago #5407 by loic
Replied by loic on topic Modifying PDF template via CSS
Hello,

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

Best regards.
More
10 years 10 months ago #5468 by tachyon
Replied by tachyon on topic Modifying PDF template via CSS
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!
More
10 years 10 months ago #5500 by tompap
Replied by tompap on topic Modifying PDF template via CSS
Hello,

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 =

sprintf(JText::_('INVOICING_INVOICE_FILENAME'),InvoicingHelperFormat::formatInvoiceNumber($invoice));
$filename = str_replace(array("/","."," "),"_",$filename);
$this->setName($filename);
Time to create page: 0.132 seconds
Powered by Kunena Forum