Class: HexaPDF::CLI::Command
- Inherits:
-
CmdParse::Command
- Object
- CmdParse::Command
- HexaPDF::CLI::Command
- Includes:
- Extensions
- Defined in:
- lib/hexapdf/cli/command.rb
Overview
Base class for all hexapdf commands. It provides utility methods needed by the individual commands.
Direct Known Subclasses
Batch, Files, Fonts, Form, Image2PDF, Images, Info, Inspect, Merge, Modify, Optimize, Split, Usage, Watermark
Defined Under Namespace
Modules: Extensions
Instance Method Summary collapse
-
#initialize(*args, **kwargs, &block) ⇒ Command
constructor
:nodoc:.
Methods included from Extensions
Constructor Details
#initialize(*args, **kwargs, &block) ⇒ Command
:nodoc:
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
# File 'lib/hexapdf/cli/command.rb', line 69 def initialize(*args, **kwargs, &block) #:nodoc: super @out_options = OpenStruct.new @out_options.compact = true @out_options.compress_pages = false @out_options.object_streams = :preserve @out_options.xref_streams = :preserve @out_options.streams = :preserve @out_options.optimize_fonts = false @out_options.prune_page_resources = false @out_options.encryption = :preserve @out_options.enc_user_pwd = @out_options.enc_owner_pwd = nil @out_options.enc_key_length = 128 @out_options.enc_algorithm = :aes @out_options.enc_force_v4 = false @out_options. = [] end |