groupdocs_conversion_cloud 24.1 → 24.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 21fa5a582047bcd4dc57627dfd32e137b19d1affa1519449c27ea60faf83bc4e
4
- data.tar.gz: 690bb3b270f091cea7491824a6f25a137ddea9848fb23ee2620865bbb0f980f3
3
+ metadata.gz: 74886dfd7d48be4b54ea4ecc554d39346b4c5cfe14dcf18c2b654e94c4d2c068
4
+ data.tar.gz: 52d625970d1efc95d04653f1bc48a8c6e7f38865faff1dca8536777d2d21da4c
5
5
  SHA512:
6
- metadata.gz: 71c1edd2f5f55e15e282e9060e47ec56926e5260f2a96bf0517a6796316766c6e3bdd315097b381d5ed36f09abe5b73a5106e114c86eb724dee2b2635ac7c80d
7
- data.tar.gz: e2a56b64a4eac93ed4b5bb562d859e6edf4ef7f069d9dc3d53ce7cb5414366923e3b1ae9f322adadb7762bf4fc9f5902f0c4f1fe39ea7554bfe81c0693613451
6
+ metadata.gz: fd78a4b7c44f32a57c977fe5b8014de6d6d547405753b733bf5a103af65e224e9a6f6360aa90200e4ccbb162fb2d2e56f4bb5ea78d3a7250e3dd4db8b280c32d
7
+ data.tar.gz: f8ee111daa7d40bcd44a2b0be2c68c7b03f04985a82fd18b8d8208ec92e921de3ef8de786f06f818754741af6f09a633294c92fa87ccbceade58d2ce45bc9ee7
@@ -115,7 +115,7 @@ module GroupDocsConversionCloud
115
115
  :'watermark_options' => :'WatermarkOptions',
116
116
  :'width' => :'Integer',
117
117
  :'height' => :'Integer',
118
- :'dpi' => :'Float',
118
+ :'dpi' => :'Integer',
119
119
  :'password' => :'String',
120
120
  :'zoom' => :'Integer',
121
121
  :'pdf_recognition_mode' => :'String',
@@ -115,7 +115,7 @@ module GroupDocsConversionCloud
115
115
  :'watermark_options' => :'WatermarkOptions',
116
116
  :'width' => :'Integer',
117
117
  :'height' => :'Integer',
118
- :'dpi' => :'Float',
118
+ :'dpi' => :'Integer',
119
119
  :'password' => :'String',
120
120
  :'zoom' => :'Integer',
121
121
  :'pdf_recognition_mode' => :'String',
@@ -115,7 +115,7 @@ module GroupDocsConversionCloud
115
115
  :'watermark_options' => :'WatermarkOptions',
116
116
  :'width' => :'Integer',
117
117
  :'height' => :'Integer',
118
- :'dpi' => :'Float',
118
+ :'dpi' => :'Integer',
119
119
  :'password' => :'String',
120
120
  :'zoom' => :'Integer',
121
121
  :'pdf_recognition_mode' => :'String',
@@ -115,7 +115,7 @@ module GroupDocsConversionCloud
115
115
  :'watermark_options' => :'WatermarkOptions',
116
116
  :'width' => :'Integer',
117
117
  :'height' => :'Integer',
118
- :'dpi' => :'Float',
118
+ :'dpi' => :'Integer',
119
119
  :'password' => :'String',
120
120
  :'zoom' => :'Integer',
121
121
  :'pdf_recognition_mode' => :'String',
@@ -115,7 +115,7 @@ module GroupDocsConversionCloud
115
115
  :'watermark_options' => :'WatermarkOptions',
116
116
  :'width' => :'Integer',
117
117
  :'height' => :'Integer',
118
- :'dpi' => :'Float',
118
+ :'dpi' => :'Integer',
119
119
  :'password' => :'String',
120
120
  :'zoom' => :'Integer',
121
121
  :'pdf_recognition_mode' => :'String',
@@ -115,7 +115,7 @@ module GroupDocsConversionCloud
115
115
  :'watermark_options' => :'WatermarkOptions',
116
116
  :'width' => :'Integer',
117
117
  :'height' => :'Integer',
118
- :'dpi' => :'Float',
118
+ :'dpi' => :'Integer',
119
119
  :'password' => :'String',
120
120
  :'zoom' => :'Integer',
121
121
  :'pdf_recognition_mode' => :'String',
@@ -115,7 +115,7 @@ module GroupDocsConversionCloud
115
115
  :'watermark_options' => :'WatermarkOptions',
116
116
  :'width' => :'Integer',
117
117
  :'height' => :'Integer',
118
- :'dpi' => :'Float',
118
+ :'dpi' => :'Integer',
119
119
  :'password' => :'String',
120
120
  :'zoom' => :'Integer',
121
121
  :'pdf_recognition_mode' => :'String',
@@ -115,7 +115,7 @@ module GroupDocsConversionCloud
115
115
  :'watermark_options' => :'WatermarkOptions',
116
116
  :'width' => :'Integer',
117
117
  :'height' => :'Integer',
118
- :'dpi' => :'Float',
118
+ :'dpi' => :'Integer',
119
119
  :'password' => :'String',
120
120
  :'zoom' => :'Integer',
121
121
  :'pdf_recognition_mode' => :'String',
@@ -132,6 +132,12 @@ module GroupDocsConversionCloud
132
132
 
133
133
  # Rotate page
134
134
  attr_accessor :rotate
135
+
136
+ # Specifies page size
137
+ attr_accessor :page_size
138
+
139
+ # Specifies page orientation
140
+ attr_accessor :page_orientation
135
141
  class EnumAttributeValidator
136
142
  attr_reader :datatype
137
143
  attr_reader :allowable_values
@@ -190,7 +196,9 @@ module GroupDocsConversionCloud
190
196
  :'non_full_screen_page_mode' => :'NonFullScreenPageMode',
191
197
  :'page_layout' => :'PageLayout',
192
198
  :'page_mode' => :'PageMode',
193
- :'rotate' => :'Rotate'
199
+ :'rotate' => :'Rotate',
200
+ :'page_size' => :'PageSize',
201
+ :'page_orientation' => :'PageOrientation'
194
202
  }
195
203
  end
196
204
 
@@ -203,7 +211,7 @@ module GroupDocsConversionCloud
203
211
  :'watermark_options' => :'WatermarkOptions',
204
212
  :'width' => :'Integer',
205
213
  :'height' => :'Integer',
206
- :'dpi' => :'Float',
214
+ :'dpi' => :'Integer',
207
215
  :'password' => :'String',
208
216
  :'margin_top' => :'Integer',
209
217
  :'margin_bottom' => :'Integer',
@@ -230,7 +238,9 @@ module GroupDocsConversionCloud
230
238
  :'non_full_screen_page_mode' => :'String',
231
239
  :'page_layout' => :'String',
232
240
  :'page_mode' => :'String',
233
- :'rotate' => :'String'
241
+ :'rotate' => :'String',
242
+ :'page_size' => :'String',
243
+ :'page_orientation' => :'String'
234
244
  }
235
245
  end
236
246
 
@@ -380,6 +390,14 @@ module GroupDocsConversionCloud
380
390
  self.rotate = attributes[:'Rotate']
381
391
  end
382
392
 
393
+ if attributes.key?(:'PageSize')
394
+ self.page_size = attributes[:'PageSize']
395
+ end
396
+
397
+ if attributes.key?(:'PageOrientation')
398
+ self.page_orientation = attributes[:'PageOrientation']
399
+ end
400
+
383
401
  end
384
402
 
385
403
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -510,6 +528,14 @@ module GroupDocsConversionCloud
510
528
  invalid_properties.push("invalid value for 'rotate', rotate cannot be nil.")
511
529
  end
512
530
 
531
+ if @page_size.nil?
532
+ invalid_properties.push("invalid value for 'page_size', page_size cannot be nil.")
533
+ end
534
+
535
+ if @page_orientation.nil?
536
+ invalid_properties.push("invalid value for 'page_orientation', page_orientation cannot be nil.")
537
+ end
538
+
513
539
  return invalid_properties
514
540
  end
515
541
 
@@ -559,6 +585,12 @@ module GroupDocsConversionCloud
559
585
  return false if @rotate.nil?
560
586
  rotate_validator = EnumAttributeValidator.new('String', ["None", "On90", "On180", "On270"])
561
587
  return false unless rotate_validator.valid?(@rotate)
588
+ return false if @page_size.nil?
589
+ page_size_validator = EnumAttributeValidator.new('String', ["Default", "A3", "Statement", "Quarto", "Paper11x17", "Paper10x14", "Letter", "Legal", "Ledger", "Folio", "Executive", "EnvelopeDL", "Custom", "B5", "B4", "A5", "A4", "Tabloid"])
590
+ return false unless page_size_validator.valid?(@page_size)
591
+ return false if @page_orientation.nil?
592
+ page_orientation_validator = EnumAttributeValidator.new('String', ["Default", "Landscape", "Portrait"])
593
+ return false unless page_orientation_validator.valid?(@page_orientation)
562
594
  return true
563
595
  end
564
596
 
@@ -646,6 +678,34 @@ module GroupDocsConversionCloud
646
678
  end
647
679
  end
648
680
 
681
+ # Custom attribute writer method checking allowed values (enum).
682
+ # @param [Object] page_size Object to be assigned
683
+ def page_size=(page_size)
684
+ validator = EnumAttributeValidator.new('String', ["Default", "A3", "Statement", "Quarto", "Paper11x17", "Paper10x14", "Letter", "Legal", "Ledger", "Folio", "Executive", "EnvelopeDL", "Custom", "B5", "B4", "A5", "A4", "Tabloid"])
685
+ if page_size.to_i == 0
686
+ unless validator.valid?(page_size)
687
+ raise ArgumentError, "invalid value for 'page_size', must be one of #{validator.allowable_values}."
688
+ end
689
+ @page_size = page_size
690
+ else
691
+ @page_size = validator.allowable_values[page_size.to_i]
692
+ end
693
+ end
694
+
695
+ # Custom attribute writer method checking allowed values (enum).
696
+ # @param [Object] page_orientation Object to be assigned
697
+ def page_orientation=(page_orientation)
698
+ validator = EnumAttributeValidator.new('String', ["Default", "Landscape", "Portrait"])
699
+ if page_orientation.to_i == 0
700
+ unless validator.valid?(page_orientation)
701
+ raise ArgumentError, "invalid value for 'page_orientation', must be one of #{validator.allowable_values}."
702
+ end
703
+ @page_orientation = page_orientation
704
+ else
705
+ @page_orientation = validator.allowable_values[page_orientation.to_i]
706
+ end
707
+ end
708
+
649
709
  # Checks equality by comparing each attribute.
650
710
  # @param [Object] Object to be compared
651
711
  def ==(other)
@@ -684,7 +744,9 @@ module GroupDocsConversionCloud
684
744
  non_full_screen_page_mode == other.non_full_screen_page_mode &&
685
745
  page_layout == other.page_layout &&
686
746
  page_mode == other.page_mode &&
687
- rotate == other.rotate
747
+ rotate == other.rotate &&
748
+ page_size == other.page_size &&
749
+ page_orientation == other.page_orientation
688
750
  end
689
751
 
690
752
  # @see the `==` method
@@ -696,7 +758,7 @@ module GroupDocsConversionCloud
696
758
  # Calculates hash code according to all attributes.
697
759
  # @return [Fixnum] Hash code
698
760
  def hash
699
- [from_page, pages_count, pages, watermark_options, width, height, dpi, password, margin_top, margin_bottom, margin_left, margin_right, pdf_format, remove_pdfa_compliance, zoom, linearize, link_duplicate_streams, remove_unused_objects, remove_unused_streams, compress_images, image_quality, unembed_fonts, grayscale, center_window, direction, display_doc_title, fit_window, hide_menu_bar, hide_tool_bar, hide_window_ui, non_full_screen_page_mode, page_layout, page_mode, rotate].hash
761
+ [from_page, pages_count, pages, watermark_options, width, height, dpi, password, margin_top, margin_bottom, margin_left, margin_right, pdf_format, remove_pdfa_compliance, zoom, linearize, link_duplicate_streams, remove_unused_objects, remove_unused_streams, compress_images, image_quality, unembed_fonts, grayscale, center_window, direction, display_doc_title, fit_window, hide_menu_bar, hide_tool_bar, hide_window_ui, non_full_screen_page_mode, page_layout, page_mode, rotate, page_size, page_orientation].hash
700
762
  end
701
763
 
702
764
  # Downcases first letter.
@@ -119,7 +119,7 @@ module GroupDocsConversionCloud
119
119
  :'watermark_options' => :'WatermarkOptions',
120
120
  :'width' => :'Integer',
121
121
  :'height' => :'Integer',
122
- :'dpi' => :'Float',
122
+ :'dpi' => :'Integer',
123
123
  :'password' => :'String',
124
124
  :'zoom' => :'Integer',
125
125
  :'pdf_recognition_mode' => :'String',
@@ -115,7 +115,7 @@ module GroupDocsConversionCloud
115
115
  :'watermark_options' => :'WatermarkOptions',
116
116
  :'width' => :'Integer',
117
117
  :'height' => :'Integer',
118
- :'dpi' => :'Float',
118
+ :'dpi' => :'Integer',
119
119
  :'password' => :'String',
120
120
  :'zoom' => :'Integer',
121
121
  :'pdf_recognition_mode' => :'String',
@@ -25,5 +25,5 @@
25
25
  # --------------------------------------------------------------------------------------------------------------------
26
26
  #
27
27
  module GroupDocsConversionCloud
28
- VERSION = "24.1".freeze
28
+ VERSION = "24.3".freeze
29
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: groupdocs_conversion_cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: '24.1'
4
+ version: '24.3'
5
5
  platform: ruby
6
6
  authors:
7
7
  - GroupDocs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-18 00:00:00.000000000 Z
11
+ date: 2024-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday