From 9c3421c5efea33d2019269b5c210e5be4364d085 Mon Sep 17 00:00:00 2001 From: BobLd <38405645+BobLd@users.noreply.github.com> Date: Wed, 16 Aug 2023 23:33:03 +0100 Subject: [PATCH] POC for rendering layers as soon as they are done --- src/UglyToad.PdfPig/Graphics/BaseStreamProcessor.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/UglyToad.PdfPig/Graphics/BaseStreamProcessor.cs b/src/UglyToad.PdfPig/Graphics/BaseStreamProcessor.cs index fa96aa612..420f495a2 100644 --- a/src/UglyToad.PdfPig/Graphics/BaseStreamProcessor.cs +++ b/src/UglyToad.PdfPig/Graphics/BaseStreamProcessor.cs @@ -150,7 +150,16 @@ protected void ProcessOperations(IReadOnlyList operatio { foreach (var stateOperation in operations) { - stateOperation.Run(this); + try + { + stateOperation.Run(this); + } + catch (Exception ex) + { + System.Diagnostics.Debug.WriteLine(ex.ToString()); + //throw; + } + } }