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

Hundreds of Warning Messages: Warning: Ran out of space in font private use area. #3

Open
LoveAndHappiness opened this issue Mar 24, 2024 · 0 comments

Comments

@LoveAndHappiness
Copy link

This warning seems to be occuring when a PDF file uses a large number of unique fonts or font styles. The pdf-parse library assigns each unique font or font style to a slot in a "private use area" (PUA), which is a range of Unicode code points that are reserved for private use. If a PDF file uses more unique fonts or font styles than there are slots in the PUA, this warning is issued.

Unfortunately, it seems there is not much I can do to prevent this warning, because pdf-parse doesn't provide a way to increase the size of the PUA or to suppress this warning.

Deactivating the warning doesn't seem to work either, because the warnings could be coming from a deeper level in the pdf-parse library or its dependencies, which might be using a different instance of console.warn.

Unfortunately I don't have the time to digg deeper into this. Hope you can someday fix it.

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

1 participant