From 784665b54936e70ec6543f259ccb5d9caae4b257 Mon Sep 17 00:00:00 2001 From: DocuSeal Date: Fri, 29 Sep 2023 18:50:57 +0300 Subject: [PATCH] skip pdf reader errors --- lib/templates/build_annotations.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/templates/build_annotations.rb b/lib/templates/build_annotations.rb index 0b541571..8d0113c8 100644 --- a/lib/templates/build_annotations.rb +++ b/lib/templates/build_annotations.rb @@ -17,7 +17,7 @@ module Templates build_external_link_hash(page, annot).merge('page' => index) end end - rescue PDF::Reader::MalformedPDFError + rescue PDF::Reader::MalformedPDFError, OpenSSL::Cipher::CipherError [] end