-
Bug
-
Resolution: Not a bug
-
Low
-
None
-
4.2.7, 4.3
If you change the font-size in your custom PDF stylesheets, when you export a page to PDF, it does not have any effect in the generated document. It must get overridden later as adding the attribute !important make it work.
For example, this CSS does not have any effect in the generated PDF file.
body { font-size: 6pt; }
To make it work, you need ot add the important attribute, as the example bellow:
body { font-size: 6pt !important; }
This also happens for other parameters (i.e.: text-decoration).
Custom CSS should not be overridden by default ones.
Hi Alex
Thanks for raising this issue, apologies for not being back in touch with you sooner.
In this instance this is expected behaviour. Because we're relying on CSS we are beholden to its rules a regulations. In the example you've given the rule is overwritten by one in our pdf stylesheet that sets the font size to 8pt.
The fix for this is to use a rule that is more specific. For example:
p
{ font-size: 6pt; }Regards