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.
Key points to include:
_exec/ghostscript.py, thegenerate_pdfa()function passescolor_conversion_strategyto Ghostscript correctly, but after GS completes, the_gs_devicen_reported()check on the stderr output raisesColorConversionNeededErrorregardless of the current strategycolor_conversion_strategy == "LeaveColorUnchanged"(the default), since any other strategy means the user has already addressed the issueline 325in your version) and the one-line fixThis 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.