mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 06:42:32 -05:00
skip pdf reader errors
This commit is contained in:
1 parent
c651709e45
commit
784665b549
1 file changed
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user