@@ -34,6 +34,33 @@ class CsvLoadOptions
3434 # The format of input file, (\"docx\", for example). This field must be filled with correct input file format when using ConvertDirect method, which accept input file as binary stream, and, because of that, API can correctly handle LoadOptions. In regular conversion, the input file format taken from the input file name and this field ignored.
3535 attr_accessor :format
3636
37+ # Default font for Cells document. The following font will be used if a font is missing.
38+ attr_accessor :default_font
39+
40+ # Substitute specific fonts when converting Cells document.
41+ attr_accessor :font_substitutes
42+
43+ # Show grid lines when converting Excel files
44+ attr_accessor :show_grid_lines
45+
46+ # Show hidden sheets when converting Excel files
47+ attr_accessor :show_hidden_sheets
48+
49+ # If OnePagePerSheet is true the content of the sheet will be converted to one page in the PDF document. Default value is true.
50+ attr_accessor :one_page_per_sheet
51+
52+ # Convert specific range when converting to other than cells format. Example: \"D1:F8\"
53+ attr_accessor :convert_range
54+
55+ # Skips empty rows and columns when converting. Default is True.
56+ attr_accessor :skip_empty_rows_and_columns
57+
58+ # Set password to unprotect protected document
59+ attr_accessor :password
60+
61+ # Hide comments
62+ attr_accessor :hide_comments
63+
3764 # Delimiter of a Csv file
3865 attr_accessor :separator
3966
@@ -56,6 +83,15 @@ class CsvLoadOptions
5683 def self . attribute_map
5784 {
5885 :'format' => :'Format' ,
86+ :'default_font' => :'DefaultFont' ,
87+ :'font_substitutes' => :'FontSubstitutes' ,
88+ :'show_grid_lines' => :'ShowGridLines' ,
89+ :'show_hidden_sheets' => :'ShowHiddenSheets' ,
90+ :'one_page_per_sheet' => :'OnePagePerSheet' ,
91+ :'convert_range' => :'ConvertRange' ,
92+ :'skip_empty_rows_and_columns' => :'SkipEmptyRowsAndColumns' ,
93+ :'password' => :'Password' ,
94+ :'hide_comments' => :'HideComments' ,
5995 :'separator' => :'Separator' ,
6096 :'is_multi_encoded' => :'IsMultiEncoded' ,
6197 :'has_formula' => :'HasFormula' ,
@@ -69,6 +105,15 @@ def self.attribute_map
69105 def self . swagger_types
70106 {
71107 :'format' => :'String' ,
108+ :'default_font' => :'String' ,
109+ :'font_substitutes' => :'Hash<String, String>' ,
110+ :'show_grid_lines' => :'BOOLEAN' ,
111+ :'show_hidden_sheets' => :'BOOLEAN' ,
112+ :'one_page_per_sheet' => :'BOOLEAN' ,
113+ :'convert_range' => :'String' ,
114+ :'skip_empty_rows_and_columns' => :'BOOLEAN' ,
115+ :'password' => :'String' ,
116+ :'hide_comments' => :'BOOLEAN' ,
72117 :'separator' => :'String' ,
73118 :'is_multi_encoded' => :'BOOLEAN' ,
74119 :'has_formula' => :'BOOLEAN' ,
@@ -90,6 +135,44 @@ def initialize(attributes = {})
90135 self . format = attributes [ :'Format' ]
91136 end
92137
138+ if attributes . key? ( :'DefaultFont' )
139+ self . default_font = attributes [ :'DefaultFont' ]
140+ end
141+
142+ if attributes . key? ( :'FontSubstitutes' )
143+ if ( value = attributes [ :'FontSubstitutes' ] ) . is_a? ( Hash )
144+ self . font_substitutes = value
145+ end
146+ end
147+
148+ if attributes . key? ( :'ShowGridLines' )
149+ self . show_grid_lines = attributes [ :'ShowGridLines' ]
150+ end
151+
152+ if attributes . key? ( :'ShowHiddenSheets' )
153+ self . show_hidden_sheets = attributes [ :'ShowHiddenSheets' ]
154+ end
155+
156+ if attributes . key? ( :'OnePagePerSheet' )
157+ self . one_page_per_sheet = attributes [ :'OnePagePerSheet' ]
158+ end
159+
160+ if attributes . key? ( :'ConvertRange' )
161+ self . convert_range = attributes [ :'ConvertRange' ]
162+ end
163+
164+ if attributes . key? ( :'SkipEmptyRowsAndColumns' )
165+ self . skip_empty_rows_and_columns = attributes [ :'SkipEmptyRowsAndColumns' ]
166+ end
167+
168+ if attributes . key? ( :'Password' )
169+ self . password = attributes [ :'Password' ]
170+ end
171+
172+ if attributes . key? ( :'HideComments' )
173+ self . hide_comments = attributes [ :'HideComments' ]
174+ end
175+
93176 if attributes . key? ( :'Separator' )
94177 self . separator = attributes [ :'Separator' ]
95178 end
@@ -120,6 +203,26 @@ def initialize(attributes = {})
120203 # @return Array for valid properies with the reasons
121204 def list_invalid_properties
122205 invalid_properties = [ ]
206+ if @show_grid_lines . nil?
207+ invalid_properties . push ( "invalid value for 'show_grid_lines', show_grid_lines cannot be nil." )
208+ end
209+
210+ if @show_hidden_sheets . nil?
211+ invalid_properties . push ( "invalid value for 'show_hidden_sheets', show_hidden_sheets cannot be nil." )
212+ end
213+
214+ if @one_page_per_sheet . nil?
215+ invalid_properties . push ( "invalid value for 'one_page_per_sheet', one_page_per_sheet cannot be nil." )
216+ end
217+
218+ if @skip_empty_rows_and_columns . nil?
219+ invalid_properties . push ( "invalid value for 'skip_empty_rows_and_columns', skip_empty_rows_and_columns cannot be nil." )
220+ end
221+
222+ if @hide_comments . nil?
223+ invalid_properties . push ( "invalid value for 'hide_comments', hide_comments cannot be nil." )
224+ end
225+
123226 if @separator . nil?
124227 invalid_properties . push ( "invalid value for 'separator', separator cannot be nil." )
125228 end
@@ -146,6 +249,11 @@ def list_invalid_properties
146249 # Check to see if the all the properties in the model are valid
147250 # @return true if the model is valid
148251 def valid?
252+ return false if @show_grid_lines . nil?
253+ return false if @show_hidden_sheets . nil?
254+ return false if @one_page_per_sheet . nil?
255+ return false if @skip_empty_rows_and_columns . nil?
256+ return false if @hide_comments . nil?
149257 return false if @separator . nil?
150258 return false if @is_multi_encoded . nil?
151259 return false if @has_formula . nil?
@@ -160,6 +268,15 @@ def ==(other)
160268 return true if self . equal? ( other )
161269 self . class == other . class &&
162270 format == other . format &&
271+ default_font == other . default_font &&
272+ font_substitutes == other . font_substitutes &&
273+ show_grid_lines == other . show_grid_lines &&
274+ show_hidden_sheets == other . show_hidden_sheets &&
275+ one_page_per_sheet == other . one_page_per_sheet &&
276+ convert_range == other . convert_range &&
277+ skip_empty_rows_and_columns == other . skip_empty_rows_and_columns &&
278+ password == other . password &&
279+ hide_comments == other . hide_comments &&
163280 separator == other . separator &&
164281 is_multi_encoded == other . is_multi_encoded &&
165282 has_formula == other . has_formula &&
@@ -177,7 +294,7 @@ def eql?(other)
177294 # Calculates hash code according to all attributes.
178295 # @return [Fixnum] Hash code
179296 def hash
180- [ format , separator , is_multi_encoded , has_formula , convert_numeric_data , convert_date_time_data , encoding ] . hash
297+ [ format , default_font , font_substitutes , show_grid_lines , show_hidden_sheets , one_page_per_sheet , convert_range , skip_empty_rows_and_columns , password , hide_comments , separator , is_multi_encoded , has_formula , convert_numeric_data , convert_date_time_data , encoding ] . hash
181298 end
182299
183300 # Downcases first letter.
0 commit comments