-
Notifications
You must be signed in to change notification settings - Fork 9.9k
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
CMapCompressionType is not exported in the pdf.js distribution #10148
Labels
Comments
Good point. I think this should be added to Line 104 in 6f30cbb
Util is also there and comes from the same file.
|
Thank you @timvandermeij and @Snuffleupagus 😄 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As implemented in #8064 and demonstrated in #8881 (comment), a
CMapReaderFactory
must resolve a promise with an object containing acompressionType
slot, the value of which should be one of theCMapCompressionType
enumeration.Unfortunately,
CMapCompressionType
is not exported by pdf.js as it is currently built, so implementingCMapReaderFactory
requires copy/pasting the enumeration, or maybe hard-coding the value ofcompressionType
(e.g. if all of the cmaps being loaded from disk are known to be compressed).No PR at this time; I can see at least three reasonable places where
CMapCompressionType
could be exported, but I'd rather not guess at the maintainers' desired aesthetic. 😄The text was updated successfully, but these errors were encountered: