From 71f351033b695092abd0a251f438ab325e0cf994 Mon Sep 17 00:00:00 2001 From: Joseph Argento Date: Tue, 2 Apr 2024 13:15:56 -0500 Subject: [PATCH] Fix render flag setting. Because Spot Colorants may only be part of Annotation appearances, to do a proper DeviceN rendering of all colorants this needs to be set. Otherwise we collect all the spot colorants including those of Annotation appearances and setup our DeviceN rendering with it....but at the same time we tell PDFL with our render flags "don't consider them", leading to scrambled output. --- Images/GetSeparatedImages/GetSeparatedImages.cs | 3 ++- Images/OutputPreview/OutputPreview.cs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Images/GetSeparatedImages/GetSeparatedImages.cs b/Images/GetSeparatedImages/GetSeparatedImages.cs index 741f413..23b1a49 100644 --- a/Images/GetSeparatedImages/GetSeparatedImages.cs +++ b/Images/GetSeparatedImages/GetSeparatedImages.cs @@ -6,7 +6,7 @@ * This sample demonstrates drawing a list of grayscale separations from a PDF file to multi-paged TIFF file. * * - * Copyright (c) 2007-2023, Datalogics, Inc. All rights reserved. + * Copyright (c) 2007-2024, Datalogics, Inc. All rights reserved. * */ @@ -49,6 +49,7 @@ static void Main(string[] args) } PageImageParams pip = new PageImageParams(); + pip.PageDrawFlags = DrawFlags.UseAnnotFaces; pip.HorizontalResolution = 300; pip.VerticalResolution = 300; diff --git a/Images/OutputPreview/OutputPreview.cs b/Images/OutputPreview/OutputPreview.cs index 9370784..b358f6e 100644 --- a/Images/OutputPreview/OutputPreview.cs +++ b/Images/OutputPreview/OutputPreview.cs @@ -6,7 +6,7 @@ * This sample demonstrates creating an Output Preview Image which is used during Soft Proofing prior to printing to visualize combining different Colorants. * * - * Copyright (c)2023, Datalogics, Inc. All rights reserved. + * Copyright (c)2023-2024, Datalogics, Inc. All rights reserved. * */ @@ -75,6 +75,7 @@ static void Main(string[] args) } PageImageParams pip = new PageImageParams(); + pip.PageDrawFlags = DrawFlags.UseAnnotFaces; pip.HorizontalResolution = 300; pip.VerticalResolution = 300;