skip pdf reader errors

This commit is contained in:
Alex Turchyn
2023-09-17 17:00:21 +03:00
parent 907aaa9c30
commit 41d3eaf582
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -17,6 +17,8 @@ module Templates
build_external_link_hash(page, annot).merge('page' => index)
end
end
rescue PDF::Reader::MalformedPDFError
[]
end
def build_external_link_hash(page, annot)