Adding inline css

Phoca PDF - creating PDF documents in Joomla! CMS
Davy
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 21 Sep 2016, 00:06

Adding inline css

Post by Davy »

Hello,

I have basic requirements to style the elements h1, h2, h3 and img in a pdf. From what I read this is not possible to use an external stylesheet but it could be possible to use inline css.

My question is thus: how is it possible to add inline css before rendering the pdf? I read a couple of php files but I wasn't able to find where I could inject it.

Regards,
Davy
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Adding inline css

Post by Jan »

Hi, you should add it directly to article html code or if you will edit the code, you should edit the plugin code:

plugins\phocapdf\content\content.php

see the variable $documentOutput.

Jan
If you find Phoca extensions useful, please support the project
Post Reply