Large Headings in pdf transformation

dpksaini89
Posts: 66
Joined: Thu Feb 08, 2018 2:44 pm

Large Headings in pdf transformation

Post by dpksaini89 » Tue Oct 22, 2019 3:38 pm

Hi team,

I am using <oXygen/> XML Author 21.1, build 2019090904 for pdf transformation.

The pdf after transformation has heading 1 and 2 bigger than the size defined in css. Also the safety statements are distorted.

Costin
Posts: 621
Joined: Mon Dec 05, 2011 6:04 pm

Re: Large Headings in pdf transformation

Post by Costin » Tue Oct 22, 2019 4:23 pm

Hello,

Maybe there are some other rules in your customization CSS that override the headers size?
Or there could be selectors (either from your customization or from the default CSS files in oXygen) that have a higher specificity?

I suggest you should use the technique described in the Debugging the CSS section from the "Oxygen DITA-OT CSS Publishing to PDF Plugin" to better notice which selectors match the headers and which rules are applied. Then you could use higher specificity selectors or the !important marker in your customization CSS to override them.

If you still won't manage to find out what causes the different size, you should provide us some minimal sample files together with the specific customization CSS that you are using and which reproduce the issue and we could have a look at them to see if we find something.

Regards,
Costin
Costin Sandoi
oXygen XML Editor and Author Support

dpksaini89
Posts: 66
Joined: Thu Feb 08, 2018 2:44 pm

Re: Large Headings in pdf transformation

Post by dpksaini89 » Wed Oct 23, 2019 12:24 pm

In which .xsl file are the heading 1,2,3,4 styles defined? What is its location?

Costin
Posts: 621
Joined: Mon Dec 05, 2011 6:04 pm

Re: Large Headings in pdf transformation

Post by Costin » Wed Oct 23, 2019 1:52 pm

Which transformation scenario are you using?
The DITA Map PDF based on XSL-FO, or the DITA Map PDF based on HTML5 and CSS?

As you asked about the .xsl files that style the headers, am I right in supposing you are using the XSL-FO based scenario?

Regards,
Costin
Costin Sandoi
oXygen XML Editor and Author Support

Post Reply