Class: Pdf4me::ImageAction

Inherits:
Base
  • Object
show all
Defined in:
lib/pdf4me/models/image_action.rb

Constant Summary collapse

ATTRIBUTES =
{
  page_selection: 'PageSelection',
  center: 'BOOLEAN',
  fit_page: 'BOOLEAN',
  bits_per_pixel: 'Integer',
  bilevel_threshold: 'Integer',
  width_pixel: 'Integer',
  height_pixel: 'Integer',
  width_point: 'Integer',
  height_point: 'Integer',
  render_options: 'Array<String>',
  rotate_mode: 'String',
  preserve_active_ratio: 'BOOLEAN',
  image_quality: 'Integer',
  cms_engine: 'String',
  custom_cMS_config: 'CustomCmsConfig',
  dithering: 'String',
  dpi: 'Integer',
  fill_order: 'String',
  filter_ratio: 'Integer',
  image_extension: 'String',
  color_space: 'String',
  compression: 'String',
  custom_properties: 'Array<KeyValuePairStringString>'
}

Instance Method Summary collapse

Methods inherited from Base

#attributes, #initialize

Methods included from Serializer

#_deserialize, #from_hash, #from_response

Methods included from Assigner

#assign_attributes

Constructor Details

This class inherits a constructor from Pdf4me::Base

Instance Method Details

#defaultsObject



90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# File 'lib/pdf4me/models/image_action.rb', line 90

def defaults
  {
    center: false,
    fit_page: true,
    bits_per_pixel: 24,
    bilevel_threshold: 181,
    rotate_mode: 'attribute',
    preserve_aspect_ratio: true,
    image_quality: 80,
    cms_engine: 'lcms',
    dithering: 'floydSteinberg',
    dpi: 150,
    fill_order: 'mSB',
    filter_ratio: 1,
    color_space: 'RGB',
    compression: 'LZW',
  }
end