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.

            [CONFSERVER-26970] Custom PDF CSS stylesheet overriden

            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

            Steve Haffenden (Inactive) added a comment - 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

            I am having a similar issue where none of the changes I make to my PDF stylesheet are being observed. Unfortunately, I can't use the !important hack for some of them, such as removing the Chapter/section counter numbers in the TOC. I have a similar bug that was filed today: https://jira.atlassian.com/browse/CONF-27191. I think something is very broken with the PDF generation.

            Phil Gochenour added a comment - I am having a similar issue where none of the changes I make to my PDF stylesheet are being observed. Unfortunately, I can't use the !important hack for some of them, such as removing the Chapter/section counter numbers in the TOC. I have a similar bug that was filed today: https://jira.atlassian.com/browse/CONF-27191 . I think something is very broken with the PDF generation.

              shaffenden Steve Haffenden (Inactive)
              aconde Alejandro Conde Carrillo (Inactive)
              Affected customers:
              4 This affects my team
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: