Skip to content

ColorConversionNeededError raised even when color_conversion_strategy is explicitly set #1623

@justinkowarsch

Description

@justinkowarsch

Key points to include:

  • Version 16.12.0 (though it appears to go back further)
  • In _exec/ghostscript.py, the generate_pdfa() function passes color_conversion_strategy to Ghostscript correctly, but after GS completes, the _gs_devicen_reported() check on the stderr output raises ColorConversionNeededError regardless of the current strategy
  • The fix is to only raise when color_conversion_strategy == "LeaveColorUnchanged" (the default), since any other strategy means the user has already addressed the issue
  • You can include the exact line (line 325 in your version) and the one-line fix
  • The Brother MFC-6920DW manual PDF is a good repro case if you want to attach it

This would help a lot of people — there are multiple open Paperless-ngx issues with users stuck on the same thing, all thinking it's a Paperless config issue when it's actually an ocrmypdf bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions