Copy link to clipboard
Copied
I have a pdf document (generated from Latex) which has headings that contain suit symbols (club, diamond, heart, spade) which are rendered correctly in the form of the appropriate suit symbols. However in the navigation pane I do not see the suit symbols at all. What is the cause of this and how can I fix this issue? See the attached file as an example
Copy link to clipboard
Copied
The font used for the suit symbols has a custom encoding for those characters, it doesn't use standard Unicode values, which is why it's not working when you try to include them in the bookmarks' names. If you want to add them you have to use the Unicode escape characters for each suite, which are:
\u2660 - Spade ♠
\u2661 - Heart ♥
\u2662 - Diamond ♦
\u2663 - Club ♣
For example, this code will add the Spade character to the second bookmark in your file:
this.bookmarkRoot.children[1].name+="\u2663"
You can even copy and paste them, for example from here (or from this post...):