Skip to content

Error Message: MuPDF error: format error: cmsOpenProfileFromMem failed #3572

Closed Answered by JorjMcKie
isaac-peter asked this question in Looking for help
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 3 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
2 replies
@JorjMcKie
Comment options

@benoit74
Comment options

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