Module: Pdfrb::CLI::Umodify
- Defined in:
- lib/pdfrb/cli/modify.rb
Class Method Summary collapse
Class Method Details
.call(path, **opts) {|doc| ... } ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/pdfrb/cli/modify.rb', line 8 def call(path, **opts) doc = Pdfrb::Document.open(path) yield doc if block_given? output = opts[:output] || path doc.write(output) puts "Processed: #{output}" true end |