lib/hexapdf/cli/command.rb in hexapdf-0.5.0 vs lib/hexapdf/cli/command.rb in hexapdf-0.6.0
- old
+ new
@@ -94,9 +94,10 @@
# Returns a hash with HexaPDF::Document options based on the given password and the option
# switches.
def pdf_options(password)
hash = {decryption_opts: {password: password}, config: {}}
+ HexaPDF::GlobalConfiguration['filter.predictor.strict'] = command_parser.strict
hash[:config]['parser.on_correctable_error'] =
if command_parser.strict
proc { true }
else
proc do |_, msg, pos|