Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bookmarks longer than 28 characters will be rendered as level 0 #490

maurice-f2p opened this issue Jul 8, 2019 · 0 comments


None yet
1 participant
Copy link

commented Jul 8, 2019

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.

For now, I truncate at 28 characters but is this fixable?

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.