You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As implemented in #8064 and demonstrated in #8881 (comment), a CMapReaderFactory must resolve a promise with an object containing a compressionType slot, the value of which should be one of the CMapCompressionType enumeration.
Unfortunately, CMapCompressionType is not exported by pdf.js as it is currently built, so implementing CMapReaderFactory requires copy/pasting the enumeration, or maybe hard-coding the value of compressionType (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:
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: