From 1b90f77e82fb70d7633b26afd8dc25721b18358e Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Mon, 5 Feb 2024 13:54:55 +0200 Subject: [PATCH] skip errors in pdf processor --- lib/pdf_processor.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/pdf_processor.rb b/lib/pdf_processor.rb index c929dcc4d..e0ad01980 100644 --- a/lib/pdf_processor.rb +++ b/lib/pdf_processor.rb @@ -25,6 +25,11 @@ def call(processor, operator, operands) @pos += 1 end + @pos = 0 + @num += 1 + rescue HexaPDF::Error => e + Rails.logger.error(e.message) + @pos = 0 @num += 1 end