Page 1 of 1

Adding inline css

Posted: 22 Sep 2016, 13:44
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

Re: Adding inline css

Posted: 22 Sep 2016, 21:48
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