skip errors in pdf processor
This commit is contained in:
@@ -25,6 +25,11 @@ class PdfProcessor < HexaPDF::Content::Processor
|
||||
@pos += 1
|
||||
end
|
||||
|
||||
@pos = 0
|
||||
@num += 1
|
||||
rescue HexaPDF::Error => e
|
||||
Rails.logger.error(e.message)
|
||||
|
||||
@pos = 0
|
||||
@num += 1
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user