Skip to content
Discussion options

You must be logged in to vote

This message is issued when unsuccessfully trying to interpret ICC color profiles. Presumably there exist erroneous profiles in some PDFs.
The message is issued from our base library, MuPDF so you may want to ask for more background in the public MuPDF Discord channel.
As a quick circumvention, why don't you wrap the processing in try/except clauses?
Another option might be to switch off ICC support by executing pymupdf.TOOLS.set_icc(False).

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@isaac-peter
Comment options

Answer selected by isaac-peter
Comment options

You must be logged in to vote
3 replies
@JorjMcKie
Comment options

@benoit74
Comment options

@dragongu
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants