Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Bookmarks longer than 28 characters will be rendered as level 0 #490
When I render a pdf with bookmarks at level 0, 1 and 2 and the bookmark title is longer than 28 characters, the bookmark seems to be rendered at level 0 instead of 1 or 2. Following bookmarks are rendered based on this faulty level.
So if a level 1 bookmark is rendered at level 0, the following level 2 bookmark is rendered at level 1. This state seems to get restored when a new bookmark with level 0 is given (until the title is longer than 28 characters).
Maybe it is 29 characters, but the truncate function adds an ellipsis.
Edit: it seems that 28 is not sufficient. Truncated now at 25. Hope this is enough, but the characters displayed is less than 28/25. Are space characters added in front of the bookmark?