PDF outout: Preserve formatting in titles?

Here should go questions about transforming XML with XSLT and FOP.
Bilderboerg CEO
Posts: 3
Joined: Wed Feb 13, 2019 10:59 am

PDF outout: Preserve formatting in titles?

Post by Bilderboerg CEO » Wed Feb 13, 2019 1:51 pm

Is there a way to preserve multiple styles within a topic title when producing PDF output?

For example:

Code: Select all

<title><i>Italic</i> normal <codeph>Code</codeph> normal</title>
I get the expected output in HTML, but PDF strips out all the formatting.

Radu
Posts: 6541
Joined: Fri Jul 09, 2004 5:18 pm

Re: PDF outout: Preserve formatting in titles?

Post by Radu » Wed Feb 13, 2019 2:32 pm

Hi,

There may be two possibilities for this behavior:

1) You have a custom PDF plugin (or customization folder) which somehow changed the way in which the title text was generated and removed all formatting from it.
2) You are using for the title a font which does not support italic glyphs (for example most fonts which render Chinese content might not support rendering bold or italic content).

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Bilderboerg CEO
Posts: 3
Joined: Wed Feb 13, 2019 10:59 am

Re: PDF outout: Preserve formatting in titles?

Post by Bilderboerg CEO » Wed Feb 13, 2019 3:31 pm

Thanks for the quick reply. :)

Do you know if the org.dita.pdf2 plugin removes the formatting likes this?

Radu
Posts: 6541
Joined: Fri Jul 09, 2004 5:18 pm

Re: PDF outout: Preserve formatting in titles?

Post by Radu » Wed Feb 13, 2019 3:52 pm

Hi,

I did a quick test and the italic formatting was preserved in a topic title when published to PDF.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Bilderboerg CEO
Posts: 3
Joined: Wed Feb 13, 2019 10:59 am

Re: PDF outout: Preserve formatting in titles?

Post by Bilderboerg CEO » Wed Feb 13, 2019 5:28 pm

Radu wrote:Hi,

I did a quick test and the italic formatting was preserved in a topic title when published to PDF.

Regards,
Radu
Thanks for the help :)

Post Reply