diff --git a/src/ocrmypdf/_pipeline.py b/src/ocrmypdf/_pipeline.py index d0d5ad89..db7e7464 100644 --- a/src/ocrmypdf/_pipeline.py +++ b/src/ocrmypdf/_pipeline.py @@ -428,6 +428,9 @@ def rasterize( else: device_idx = at_least('png16m') + if pageinfo.has_vector: + device_idx = at_least('png16m') + device = colorspaces[device_idx] page_context.log.debug(f"Rasterize with {device}")