diff options
Diffstat (limited to 'examples/pdf-invert-images.cc')
-rw-r--r-- | examples/pdf-invert-images.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/pdf-invert-images.cc b/examples/pdf-invert-images.cc index 00362091..537fd35e 100644 --- a/examples/pdf-invert-images.cc +++ b/examples/pdf-invert-images.cc @@ -121,7 +121,8 @@ int main(int argc, char* argv[]) // pipeStreamData with a null pipeline to determine // whether the image is filterable. Directly inspect // keys to determine the image type. - if (image.pipeStreamData(0, true, false, false) && + if (image.pipeStreamData(0, qpdf_ef_compress, + qpdf_dl_generalized) && color_space.isName() && bits_per_component.isInteger() && (color_space.getName() == "/DeviceGray") && |