diff options
author | Ken Sharp <ken.sharp@artifex.com> | 2023-02-08 16:53:37 +0000 |
---|---|---|
committer | Robin Watts <Robin.Watts@artifex.com> | 2023-02-09 09:59:41 +0000 |
commit | a24b9624bf31e39df2a16d0d71d783accb155277 (patch) | |
tree | 2394d88998fb391b53cd1304a4503c03611a9276 /pdf | |
parent | 536f27b292418cc49e943d7110dc05058e799efd (diff) | |
download | ghostpdl-a24b9624bf31e39df2a16d0d71d783accb155277.tar.gz |
GhostPDF - intialise the 'ForOPDFRead' field
We have this in the device setup structure, and have for ages, even
though we don't currently use it. Initialise it properly though in case
we ever need it.
Noticed while looking at a bug with Robin.
Diffstat (limited to 'pdf')
-rw-r--r-- | pdf/pdf_device.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pdf/pdf_device.c b/pdf/pdf_device.c index 541c0cc30..8e01a8b81 100644 --- a/pdf/pdf_device.c +++ b/pdf/pdf_device.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2019-2022 Artifex Software, Inc. +/* Copyright (C) 2019-2023 Artifex Software, Inc. All Rights Reserved. This software is provided AS-IS with no warranty, either express or @@ -152,6 +152,7 @@ void pdfi_device_set_flags(pdf_context *ctx) ctx->device_state.preserve_tr_mode = pdfi_device_check_param_bool(dev, "PreserveTrMode"); ctx->device_state.preserve_smask = pdfi_device_check_param_bool(dev, "PreserveSMask"); ctx->device_state.HighLevelDevice = pdfi_device_check_param_bool(dev, "HighLevelDevice"); + ctx->device_state.ForOPDFRead = pdfi_device_check_param_bool(dev, "ForOPDFRead"); ctx->device_state.WantsPageLabels = pdfi_device_check_param_bool(dev, "WantsPageLabels"); ctx->device_state.PassUserUnit = pdfi_device_check_param_bool(dev, "PassUserUnit"); |