skip pdf reader errors

pull/133/head
DocuSeal 2 years ago
parent c651709e45
commit 784665b549

@ -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

Loading…
Cancel
Save