groupdocs_conversion_cloud 24.1 → 24.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/groupdocs_conversion_cloud/models/doc_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/docm_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/docx_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/dot_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/dotm_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/dotx_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/odt_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/ott_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/pdf_convert_options.rb +67 -5
- data/lib/groupdocs_conversion_cloud/models/rtf_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/word_processing_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a9ae3fdfc9741992b0786cbfd43c78bb4952b4d010241f3c49c3bad54832422
|
4
|
+
data.tar.gz: a3e2cff15b0bffc748a50f33c2dc94da845201fd0722d446106e546917b111a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73fea67eca3a1b8f84e76af62edc7a9b8aed0e2b760390cdacf544ccf1b63b368cd7ff407aaa948738c740f16eaedca80ebf2c2026dbfaba1dc582a1fda9643f
|
7
|
+
data.tar.gz: 8f58ec6a0464d61d5a705f4461f1f6162df215f6c9c029309024f6c9b89ae0f6aea34c503de457d0878f13bce598d66b40c5469069dfb7ac78a95b569176dbda
|
@@ -115,7 +115,7 @@ module GroupDocsConversionCloud
|
|
115
115
|
:'watermark_options' => :'WatermarkOptions',
|
116
116
|
:'width' => :'Integer',
|
117
117
|
:'height' => :'Integer',
|
118
|
-
:'dpi' => :'
|
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' => :'
|
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' => :'
|
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' => :'
|
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' => :'
|
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' => :'
|
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' => :'
|
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' => :'
|
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' => :'
|
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' => :'
|
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' => :'
|
118
|
+
:'dpi' => :'Integer',
|
119
119
|
:'password' => :'String',
|
120
120
|
:'zoom' => :'Integer',
|
121
121
|
:'pdf_recognition_mode' => :'String',
|
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.
|
4
|
+
version: '24.2'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GroupDocs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-02-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|