Page 1 of 1

symbols ### appears in PDF output

Posted: Fri Feb 28, 2020 11:59 am
by catherine
In the past, I used "PDF based on DITA & CSS", and created an customization print css for the PDF output.
Everything worked well with your instructions.
The only problem is that certain styles defined in custom css file didn't work very well for the Tables.

Today, I am testing "PDF based on HTML & CSS.
I find that the tables displayed well in the PDF output.
The symbols ## appears again!
The first level Topic titles display correctlly.
The second level Topic title, third level topic title only display English characters, and display #### instead of the Chinese characters.

However, all the topic titles display correctly in the TOC.

This is what I set in my customized css file:

Code: Select all

*[class ~= "topic/title"] {
    font-weight: 900 !important;
    color: blue !important;
    font-family:  SourceHanSansCN-Light, sans-serif !important; 

Another issue on the TOC page, I want to add a TOC title on the TOC page, so I add this codes in the css file.
It works if I use "PDF based on DITA & CSS", but doesn't work if I use "PDF based on HTML & CSS"

Code: Select all

/* Title in the TOC page  */
toc-title[empty]:lang(zh-cn):before { 
    content: "目录"; 

Please help.
Thanks and Regards,

Re: symbols ### appears in PDF output

Posted: Fri Feb 28, 2020 12:39 pm
by Costin

The ## symbols appear when you are using a specific font that does not have support for specific characters or glyphs.

What version and build of oXygen are you using (you can find this information in the dialog from oXygen menu Help > About)?
I tested using oXygen XML Editor version 22 but could not reproduce the issue. "目录" was rendered OK in the PDF on 2nd and 3rd level topic titles and I used both the built-in (untouched) DITA Map PDF based on HTML5 & CSS and your CSS rule (setting font-family: SourceHanSansCN-Light, sans-serif !important; on any topic title),

There might be another selector with higher specificity elsewhere in your customization CSS that sets a different font.

In order to investigate and help you with your CSS customization, please send us (on the official support email - - or through the online support form) a sample DITA Map that reproduces the characters issue, together with the customization CSS file that you are using.


Re: symbols ### appears in PDF output

Posted: Fri Feb 28, 2020 12:59 pm
by catherine
Hi, I solved these problems.

All the codes need to be rewrote.

Re: symbols ### appears in PDF output

Posted: Fri Feb 28, 2020 1:01 pm
by catherine
Thanks for your help!