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

How to make fonts work for outline? #711

Closed
lillallol opened this issue Dec 15, 2020 · 1 comment
Closed

How to make fonts work for outline? #711

lillallol opened this issue Dec 15, 2020 · 1 comment

Comments

@lillallol
Copy link

I have created this package that depends on pdf-lib to add outline to an outline-less pdf. The code is in accordance to what is suggested here : 1 , 2 . I use PDFString.of() to add the text to the pdf outline.

I have tried what is mentioned here , but the font does not seem to affect the outline.

@Hopding
Copy link
Owner

Hopding commented Jan 2, 2021

Hello @lillallol!

Try using PDFHexString.fromText() instead of PDFString.of(). That should solve your issue. See #486 (comment).

@Hopding Hopding closed this as completed Jan 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants