Class: AsposeCellsCloud::ImageOrPrintOptions

Inherits:
Object
  • Object
show all
Defined in:
lib/aspose_cells_cloud/models/image_or_print_options.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ ImageOrPrintOptions

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash



149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
# File 'lib/aspose_cells_cloud/models/image_or_print_options.rb', line 149

def initialize(attributes = {})
  return unless attributes.is_a?(Hash)

  # convert string to symbol for hash key
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}

  if attributes.has_key?(:'TextCrossType')
      self.text_cross_type = attributes[:'TextCrossType']
  end
  if attributes.has_key?(:'GridlineType')
      self.gridline_type = attributes[:'GridlineType']
  end
  if attributes.has_key?(:'OutputBlankPageWhenNothingToPrint')
      self.output_blank_page_when_nothing_to_print = attributes[:'OutputBlankPageWhenNothingToPrint']
  end
  if attributes.has_key?(:'CheckWorkbookDefaultFont')
      self.check_workbook_default_font = attributes[:'CheckWorkbookDefaultFont']
  end
  if attributes.has_key?(:'DefaultFont')
      self.default_font = attributes[:'DefaultFont']
  end
  if attributes.has_key?(:'IsOptimized')
      self.is_optimized = attributes[:'IsOptimized']
  end
  if attributes.has_key?(:'PageCount')
      self.page_count = attributes[:'PageCount']
  end
  if attributes.has_key?(:'PageIndex')
      self.page_index = attributes[:'PageIndex']
  end
  if attributes.has_key?(:'IsFontSubstitutionCharGranularity')
      self.is_font_substitution_char_granularity = attributes[:'IsFontSubstitutionCharGranularity']
  end
  if attributes.has_key?(:'Transparent')
      self.transparent = attributes[:'Transparent']
  end
  if attributes.has_key?(:'OnlyArea')
      self.only_area = attributes[:'OnlyArea']
  end
  if attributes.has_key?(:'SVGFitToViewPort')
      self.svg_fit_to_view_port = attributes[:'SVGFitToViewPort']
  end
  if attributes.has_key?(:'EmbededImageNameInSvg')
      self.embeded_image_name_in_svg = attributes[:'EmbededImageNameInSvg']
  end
  if attributes.has_key?(:'AllColumnsInOnePagePerSheet')
      self.all_columns_in_one_page_per_sheet = attributes[:'AllColumnsInOnePagePerSheet']
  end
  if attributes.has_key?(:'PrintWithStatusDialog')
      self.print_with_status_dialog = attributes[:'PrintWithStatusDialog']
  end
  if attributes.has_key?(:'HorizontalResolution')
      self.horizontal_resolution = attributes[:'HorizontalResolution']
  end
  if attributes.has_key?(:'VerticalResolution')
      self.vertical_resolution = attributes[:'VerticalResolution']
  end
  if attributes.has_key?(:'DefaultEditLanguage')
      self.default_edit_language = attributes[:'DefaultEditLanguage']
  end
  if attributes.has_key?(:'TiffColorDepth')
      self.tiff_color_depth = attributes[:'TiffColorDepth']
  end
  if attributes.has_key?(:'TiffCompression')
      self.tiff_compression = attributes[:'TiffCompression']
  end
  if attributes.has_key?(:'PrintingPage')
      self.printing_page = attributes[:'PrintingPage']
  end
  if attributes.has_key?(:'Quality')
      self.quality = attributes[:'Quality']
  end
  if attributes.has_key?(:'ImageType')
      self.image_type = attributes[:'ImageType']
  end
  if attributes.has_key?(:'OnePagePerSheet')
      self.one_page_per_sheet = attributes[:'OnePagePerSheet']
  end
  if attributes.has_key?(:'TiffBinarizationMethod')
      self.tiff_binarization_method = attributes[:'TiffBinarizationMethod']
  end

end

Instance Attribute Details

#all_columns_in_one_page_per_sheetObject

Returns the value of attribute all_columns_in_one_page_per_sheet.



61
62
63
# File 'lib/aspose_cells_cloud/models/image_or_print_options.rb', line 61

def all_columns_in_one_page_per_sheet
  @all_columns_in_one_page_per_sheet
end

#check_workbook_default_fontObject

Returns the value of attribute check_workbook_default_font.



41
42
43
# File 'lib/aspose_cells_cloud/models/image_or_print_options.rb', line 41

def check_workbook_default_font
  @check_workbook_default_font
end

#default_edit_languageObject

DefaultEditLanguage



69
70
71
# File 'lib/aspose_cells_cloud/models/image_or_print_options.rb', line 69

def default_edit_language
  @default_edit_language
end

#default_fontObject

Returns the value of attribute default_font.



43
44
45
# File 'lib/aspose_cells_cloud/models/image_or_print_options.rb', line 43

def default_font
  @default_font
end

#embeded_image_name_in_svgObject

Returns the value of attribute embeded_image_name_in_svg.



59
60
61
# File 'lib/aspose_cells_cloud/models/image_or_print_options.rb', line 59

def embeded_image_name_in_svg
  @embeded_image_name_in_svg
end

#gridline_typeObject

GridlineType



37
38
39
# File 'lib/aspose_cells_cloud/models/image_or_print_options.rb', line 37

def gridline_type
  @gridline_type
end

#horizontal_resolutionObject

Returns the value of attribute horizontal_resolution.



65
66
67
# File 'lib/aspose_cells_cloud/models/image_or_print_options.rb', line 65

def horizontal_resolution
  @horizontal_resolution
end

#image_typeObject

ImageType



79
80
81
# File 'lib/aspose_cells_cloud/models/image_or_print_options.rb', line 79

def image_type
  @image_type
end

#is_font_substitution_char_granularityObject

Returns the value of attribute is_font_substitution_char_granularity.



51
52
53
# File 'lib/aspose_cells_cloud/models/image_or_print_options.rb', line 51

def is_font_substitution_char_granularity
  @is_font_substitution_char_granularity
end

#is_optimizedObject

Returns the value of attribute is_optimized.



45
46
47
# File 'lib/aspose_cells_cloud/models/image_or_print_options.rb', line 45

def is_optimized
  @is_optimized
end

#one_page_per_sheetObject

Returns the value of attribute one_page_per_sheet.



81
82
83
# File 'lib/aspose_cells_cloud/models/image_or_print_options.rb', line 81

def one_page_per_sheet
  @one_page_per_sheet
end

#only_areaObject

Returns the value of attribute only_area.



55
56
57
# File 'lib/aspose_cells_cloud/models/image_or_print_options.rb', line 55

def only_area
  @only_area
end

#output_blank_page_when_nothing_to_printObject

Returns the value of attribute output_blank_page_when_nothing_to_print.



39
40
41
# File 'lib/aspose_cells_cloud/models/image_or_print_options.rb', line 39

def output_blank_page_when_nothing_to_print
  @output_blank_page_when_nothing_to_print
end

#page_countObject

Returns the value of attribute page_count.



47
48
49
# File 'lib/aspose_cells_cloud/models/image_or_print_options.rb', line 47

def page_count
  @page_count
end

#page_indexObject

Returns the value of attribute page_index.



49
50
51
# File 'lib/aspose_cells_cloud/models/image_or_print_options.rb', line 49

def page_index
  @page_index
end

Returns the value of attribute print_with_status_dialog.



63
64
65
# File 'lib/aspose_cells_cloud/models/image_or_print_options.rb', line 63

def print_with_status_dialog
  @print_with_status_dialog
end

#printing_pageObject

PrintingPageType



75
76
77
# File 'lib/aspose_cells_cloud/models/image_or_print_options.rb', line 75

def printing_page
  @printing_page
end

#qualityObject

Returns the value of attribute quality.



77
78
79
# File 'lib/aspose_cells_cloud/models/image_or_print_options.rb', line 77

def quality
  @quality
end

#svg_fit_to_view_portObject

Returns the value of attribute svg_fit_to_view_port.



57
58
59
# File 'lib/aspose_cells_cloud/models/image_or_print_options.rb', line 57

def svg_fit_to_view_port
  @svg_fit_to_view_port
end

#text_cross_typeObject

TextCrossType



35
36
37
# File 'lib/aspose_cells_cloud/models/image_or_print_options.rb', line 35

def text_cross_type
  @text_cross_type
end

#tiff_binarization_methodObject

ImageBinarizationMethod



83
84
85
# File 'lib/aspose_cells_cloud/models/image_or_print_options.rb', line 83

def tiff_binarization_method
  @tiff_binarization_method
end

#tiff_color_depthObject

ColorDepth



71
72
73
# File 'lib/aspose_cells_cloud/models/image_or_print_options.rb', line 71

def tiff_color_depth
  @tiff_color_depth
end

#tiff_compressionObject

TiffCompression



73
74
75
# File 'lib/aspose_cells_cloud/models/image_or_print_options.rb', line 73

def tiff_compression
  @tiff_compression
end

#transparentObject

Returns the value of attribute transparent.



53
54
55
# File 'lib/aspose_cells_cloud/models/image_or_print_options.rb', line 53

def transparent
  @transparent
end

#vertical_resolutionObject

Returns the value of attribute vertical_resolution.



67
68
69
# File 'lib/aspose_cells_cloud/models/image_or_print_options.rb', line 67

def vertical_resolution
  @vertical_resolution
end

Class Method Details

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# File 'lib/aspose_cells_cloud/models/image_or_print_options.rb', line 86

def self.attribute_map
  {
    :'text_cross_type' => :'TextCrossType',
    :'gridline_type' => :'GridlineType',
    :'output_blank_page_when_nothing_to_print' => :'OutputBlankPageWhenNothingToPrint',
    :'check_workbook_default_font' => :'CheckWorkbookDefaultFont',
    :'default_font' => :'DefaultFont',
    :'is_optimized' => :'IsOptimized',
    :'page_count' => :'PageCount',
    :'page_index' => :'PageIndex',
    :'is_font_substitution_char_granularity' => :'IsFontSubstitutionCharGranularity',
    :'transparent' => :'Transparent',
    :'only_area' => :'OnlyArea',
    :'svg_fit_to_view_port' => :'SVGFitToViewPort',
    :'embeded_image_name_in_svg' => :'EmbededImageNameInSvg',
    :'all_columns_in_one_page_per_sheet' => :'AllColumnsInOnePagePerSheet',
    :'print_with_status_dialog' => :'PrintWithStatusDialog',
    :'horizontal_resolution' => :'HorizontalResolution',
    :'vertical_resolution' => :'VerticalResolution',
    :'default_edit_language' => :'DefaultEditLanguage',
    :'tiff_color_depth' => :'TiffColorDepth',
    :'tiff_compression' => :'TiffCompression',
    :'printing_page' => :'PrintingPage',
    :'quality' => :'Quality',
    :'image_type' => :'ImageType',
    :'one_page_per_sheet' => :'OnePagePerSheet',
    :'tiff_binarization_method' => :'TiffBinarizationMethod'
  }
end

.swagger_typesObject

Attribute type mapping.



117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
# File 'lib/aspose_cells_cloud/models/image_or_print_options.rb', line 117

def self.swagger_types
  {
    :'text_cross_type' => :'String',
    :'gridline_type' => :'String',
    :'output_blank_page_when_nothing_to_print' => :'BOOLEAN',
    :'check_workbook_default_font' => :'BOOLEAN',
    :'default_font' => :'String',
    :'is_optimized' => :'BOOLEAN',
    :'page_count' => :'Integer',
    :'page_index' => :'Integer',
    :'is_font_substitution_char_granularity' => :'BOOLEAN',
    :'transparent' => :'BOOLEAN',
    :'only_area' => :'BOOLEAN',
    :'svg_fit_to_view_port' => :'BOOLEAN',
    :'embeded_image_name_in_svg' => :'String',
    :'all_columns_in_one_page_per_sheet' => :'BOOLEAN',
    :'print_with_status_dialog' => :'BOOLEAN',
    :'horizontal_resolution' => :'Integer',
    :'vertical_resolution' => :'Integer',
    :'default_edit_language' => :'String',
    :'tiff_color_depth' => :'String',
    :'tiff_compression' => :'String',
    :'printing_page' => :'String',
    :'quality' => :'Integer',
    :'image_type' => :'String',
    :'one_page_per_sheet' => :'BOOLEAN',
    :'tiff_binarization_method' => :'String'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
# File 'lib/aspose_cells_cloud/models/image_or_print_options.rb', line 349

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      text_cross_type == o.text_cross_type &&
      gridline_type == o.gridline_type &&
      output_blank_page_when_nothing_to_print == o.output_blank_page_when_nothing_to_print &&
      check_workbook_default_font == o.check_workbook_default_font &&
      default_font == o.default_font &&
      is_optimized == o.is_optimized &&
      page_count == o.page_count &&
      page_index == o.page_index &&
      is_font_substitution_char_granularity == o.is_font_substitution_char_granularity &&
      transparent == o.transparent &&
      only_area == o.only_area &&
      svg_fit_to_view_port == o.svg_fit_to_view_port &&
      embeded_image_name_in_svg == o.embeded_image_name_in_svg &&
      all_columns_in_one_page_per_sheet == o.all_columns_in_one_page_per_sheet &&
      print_with_status_dialog == o.print_with_status_dialog &&
      horizontal_resolution == o.horizontal_resolution &&
      vertical_resolution == o.vertical_resolution &&
      default_edit_language == o.default_edit_language &&
      tiff_color_depth == o.tiff_color_depth &&
      tiff_compression == o.tiff_compression &&
      printing_page == o.printing_page &&
      quality == o.quality &&
      image_type == o.image_type &&
      one_page_per_sheet == o.one_page_per_sheet &&
      tiff_binarization_method == o.tiff_binarization_method 
      std_dev == o.std_dev
end

#_deserialize(type, value) ⇒ Object

Deserializes the data based on type

Parameters:

  • string

    type Data type

  • string

    value Value to be deserialized

Returns:

  • (Object)

    Deserialized data



416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
# File 'lib/aspose_cells_cloud/models/image_or_print_options.rb', line 416

def _deserialize(type, value)
  case type.to_sym
  when :DateTime
    DateTime.parse(value)
  when :Date
    Date.parse(value)
  when :String
    value.to_s
  when :Integer
    value.to_i
  when :Float
    value.to_f
  when :BOOLEAN
    if value.to_s =~ /\A(true|t|yes|y|1)\z/i
      true
    else
      false
    end
  when :Object
    # generic object (usually a Hash), return directly
    value
  when /\AArray<(?<inner_type>.+)>\z/
    inner_type = Regexp.last_match[:inner_type]
    value.map { |v| _deserialize(inner_type, v) }
  when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
    k_type = Regexp.last_match[:k_type]
    v_type = Regexp.last_match[:v_type]
    {}.tap do |hash|
      value.each do |k, v|
        hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
      end
    end
  else # model
    temp_model = AsposeCellsCloud.const_get(type).new
    temp_model.build_from_hash(value)
  end
end

#_to_hash(value) ⇒ Hash

Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value

Parameters:

  • value (Object)

    Any valid value

Returns:

  • (Hash)

    Returns the value in the form of hash



482
483
484
485
486
487
488
489
490
491
492
493
494
# File 'lib/aspose_cells_cloud/models/image_or_print_options.rb', line 482

def _to_hash(value)
  if value.is_a?(Array)
    value.compact.map{ |v| _to_hash(v) }
  elsif value.is_a?(Hash)
    {}.tap do |hash|
      value.each { |k, v| hash[k] = _to_hash(v) }
    end
  elsif value.respond_to? :to_hash
    value.to_hash
  else
    value
  end
end

#build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
# File 'lib/aspose_cells_cloud/models/image_or_print_options.rb', line 395

def build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)
  self.class.swagger_types.each_pair do |key, type|
    if type =~ /\AArray<(.*)>/i
      # check to ensure the input is an array given that the the attribute
      # is documented as an array but the input is not
      if attributes[self.class.attribute_map[key]].is_a?(Array)
        self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
      end
    elsif !attributes[self.class.attribute_map[key]].nil?
      self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
    end # or else data not found in attributes(hash), not an issue as the data can be optional
  end

  self
end

#eql?(o) ⇒ Boolean

Parameters:

  • Object (Object)

    to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


382
383
384
# File 'lib/aspose_cells_cloud/models/image_or_print_options.rb', line 382

def eql?(o)
  self == o
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



388
389
390
# File 'lib/aspose_cells_cloud/models/image_or_print_options.rb', line 388

def hash
  [ text_cross_type , gridline_type , output_blank_page_when_nothing_to_print , check_workbook_default_font , default_font , is_optimized , page_count , page_index , is_font_substitution_char_granularity , transparent , only_area , svg_fit_to_view_port , embeded_image_name_in_svg , all_columns_in_one_page_per_sheet , print_with_status_dialog , horizontal_resolution , vertical_resolution , default_edit_language , tiff_color_depth , tiff_compression , printing_page , quality , image_type , one_page_per_sheet , tiff_binarization_method ].hash
end

#list_invalid_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properies with the reasons



235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
# File 'lib/aspose_cells_cloud/models/image_or_print_options.rb', line 235

def list_invalid_properties
  invalid_properties = Array.new
  if @text_cross_type.nil?
      invalid_properties.push("invalid value for 'text_cross_type', text_cross_type cannot be nil.")
  end
  if @gridline_type.nil?
      invalid_properties.push("invalid value for 'gridline_type', gridline_type cannot be nil.")
  end
  if @output_blank_page_when_nothing_to_print.nil?
      invalid_properties.push("invalid value for 'output_blank_page_when_nothing_to_print', output_blank_page_when_nothing_to_print cannot be nil.")
  end
  if @check_workbook_default_font.nil?
      invalid_properties.push("invalid value for 'check_workbook_default_font', check_workbook_default_font cannot be nil.")
  end
  if @default_font.nil?
      invalid_properties.push("invalid value for 'default_font', default_font cannot be nil.")
  end
  if @is_optimized.nil?
      invalid_properties.push("invalid value for 'is_optimized', is_optimized cannot be nil.")
  end
  if @page_count.nil?
      invalid_properties.push("invalid value for 'page_count', page_count cannot be nil.")
  end
  if @page_index.nil?
      invalid_properties.push("invalid value for 'page_index', page_index cannot be nil.")
  end
  if @is_font_substitution_char_granularity.nil?
      invalid_properties.push("invalid value for 'is_font_substitution_char_granularity', is_font_substitution_char_granularity cannot be nil.")
  end
  if @transparent.nil?
      invalid_properties.push("invalid value for 'transparent', transparent cannot be nil.")
  end
  if @only_area.nil?
      invalid_properties.push("invalid value for 'only_area', only_area cannot be nil.")
  end
  if @svg_fit_to_view_port.nil?
      invalid_properties.push("invalid value for 'svg_fit_to_view_port', svg_fit_to_view_port cannot be nil.")
  end
  if @embeded_image_name_in_svg.nil?
      invalid_properties.push("invalid value for 'embeded_image_name_in_svg', embeded_image_name_in_svg cannot be nil.")
  end
  if @all_columns_in_one_page_per_sheet.nil?
      invalid_properties.push("invalid value for 'all_columns_in_one_page_per_sheet', all_columns_in_one_page_per_sheet cannot be nil.")
  end
  if @print_with_status_dialog.nil?
      invalid_properties.push("invalid value for 'print_with_status_dialog', print_with_status_dialog cannot be nil.")
  end
  if @horizontal_resolution.nil?
      invalid_properties.push("invalid value for 'horizontal_resolution', horizontal_resolution cannot be nil.")
  end
  if @vertical_resolution.nil?
      invalid_properties.push("invalid value for 'vertical_resolution', vertical_resolution cannot be nil.")
  end
  if @default_edit_language.nil?
      invalid_properties.push("invalid value for 'default_edit_language', default_edit_language cannot be nil.")
  end
  if @tiff_color_depth.nil?
      invalid_properties.push("invalid value for 'tiff_color_depth', tiff_color_depth cannot be nil.")
  end
  if @tiff_compression.nil?
      invalid_properties.push("invalid value for 'tiff_compression', tiff_compression cannot be nil.")
  end
  if @printing_page.nil?
      invalid_properties.push("invalid value for 'printing_page', printing_page cannot be nil.")
  end
  if @quality.nil?
      invalid_properties.push("invalid value for 'quality', quality cannot be nil.")
  end
  if @image_type.nil?
      invalid_properties.push("invalid value for 'image_type', image_type cannot be nil.")
  end
  if @one_page_per_sheet.nil?
      invalid_properties.push("invalid value for 'one_page_per_sheet', one_page_per_sheet cannot be nil.")
  end
  if @tiff_binarization_method.nil?
      invalid_properties.push("invalid value for 'tiff_binarization_method', tiff_binarization_method cannot be nil.")
  end

  return invalid_properties
end

#to_bodyHash

to_body is an alias to to_hash (backward compatibility)

Returns:

  • (Hash)

    Returns the object in the form of hash



462
463
464
# File 'lib/aspose_cells_cloud/models/image_or_print_options.rb', line 462

def to_body
  to_hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



468
469
470
471
472
473
474
475
476
# File 'lib/aspose_cells_cloud/models/image_or_print_options.rb', line 468

def to_hash
  hash = {}
  self.class.attribute_map.each_pair do |attr, param|
    value = self.send(attr)
    next if value.nil?
    hash[param] = _to_hash(value)
  end
  hash
end

#to_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object



456
457
458
# File 'lib/aspose_cells_cloud/models/image_or_print_options.rb', line 456

def to_s
  to_hash.to_s
end

#valid?Boolean

Check to see if the all the properties in the model are valid

Returns:

  • (Boolean)

    true if the model is valid



318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
# File 'lib/aspose_cells_cloud/models/image_or_print_options.rb', line 318

def valid?
  return false if @text_cross_type.nil?
  return false if @gridline_type.nil?
  return false if @output_blank_page_when_nothing_to_print.nil?
  return false if @check_workbook_default_font.nil?
  return false if @default_font.nil?
  return false if @is_optimized.nil?
  return false if @page_count.nil?
  return false if @page_index.nil?
  return false if @is_font_substitution_char_granularity.nil?
  return false if @transparent.nil?
  return false if @only_area.nil?
  return false if @svg_fit_to_view_port.nil?
  return false if @embeded_image_name_in_svg.nil?
  return false if @all_columns_in_one_page_per_sheet.nil?
  return false if @print_with_status_dialog.nil?
  return false if @horizontal_resolution.nil?
  return false if @vertical_resolution.nil?
  return false if @default_edit_language.nil?
  return false if @tiff_color_depth.nil?
  return false if @tiff_compression.nil?
  return false if @printing_page.nil?
  return false if @quality.nil?
  return false if @image_type.nil?
  return false if @one_page_per_sheet.nil?
  return false if @tiff_binarization_method.nil?
  return true
end