Skip to content

Commit e8398fc

Browse files
committed
Updated sources
1 parent c588ff4 commit e8398fc

4 files changed

Lines changed: 21 additions & 11 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ gem install groupdocs_viewer_cloud
1212
To add dependency to your app copy following into your Gemfile and run `bundle install`:
1313

1414
```
15-
gem "groupdocs_viewer_cloud", "~> 19.3.2"
15+
gem "groupdocs_viewer_cloud", "~> 19.4"
1616
```
1717

1818
## Getting Started

lib/groupdocs_viewer_cloud/api/viewer_api.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def self.from_config(config)
6464
return new(config)
6565
end
6666

67-
# Create new view if it not exists
67+
# Render document pages
6868
#
6969
# @param request create_view_request
7070
# @return [ViewResult]
@@ -73,7 +73,7 @@ def create_view(request)
7373
data
7474
end
7575

76-
# Create new view if it not exists
76+
# Render document pages
7777
#
7878
# @param request create_view_request
7979
# @return [Array<(ViewResult, Fixnum, Hash)>]
@@ -116,7 +116,7 @@ def create_view_with_http_info(request)
116116
[data, status_code, headers]
117117
end
118118

119-
# Delete view
119+
# Delete rendered pages
120120
#
121121
# @param request delete_view_request
122122
# @return [nil]
@@ -125,7 +125,7 @@ def delete_view(request)
125125
nil
126126
end
127127

128-
# Delete view
128+
# Delete rendered pages
129129
#
130130
# @param request delete_view_request
131131
# @return [Array<(nil, Fixnum, Hash)>]
@@ -167,7 +167,7 @@ def delete_view_with_http_info(request)
167167
[data, status_code, headers]
168168
end
169169

170-
# Get information about view
170+
# Retrieve information about document pages
171171
#
172172
# @param request get_info_request
173173
# @return [InfoResult]
@@ -176,7 +176,7 @@ def get_info(request)
176176
data
177177
end
178178

179-
# Get information about view
179+
# Retrieve information about document pages
180180
#
181181
# @param request get_info_request
182182
# @return [Array<(InfoResult, Fixnum, Hash)>]
@@ -219,15 +219,15 @@ def get_info_with_http_info(request)
219219
[data, status_code, headers]
220220
end
221221

222-
# Get supported file formats
222+
# List supported file formats
223223
#
224224
# @return [FormatsResult]
225225
def get_supported_file_formats()
226226
data, _status_code, _headers = get_supported_file_formats_with_http_info()
227227
data
228228
end
229229

230-
# Get supported file formats
230+
# List supported file formats
231231
#
232232

233233
# @return [Array<(FormatsResult, Fixnum, Hash)>]

lib/groupdocs_viewer_cloud/models/view_options.rb

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ class ViewOptions
3737
# View format (HTML, PNG, JPG, BMP or PDF) Default value is HTML.
3838
attr_accessor :view_format
3939

40+
# The output path. Default value is 'viewer\\{input file path}_{file extension}\\'
41+
attr_accessor :output_path
42+
4043
# The path to directory containing custom fonts in storage
4144
attr_accessor :fonts_path
4245

@@ -72,6 +75,7 @@ def self.attribute_map
7275
{
7376
:'file_info' => :'FileInfo',
7477
:'view_format' => :'ViewFormat',
78+
:'output_path' => :'OutputPath',
7579
:'fonts_path' => :'FontsPath',
7680
:'watermark' => :'Watermark',
7781
:'render_options' => :'RenderOptions'
@@ -83,6 +87,7 @@ def self.swagger_types
8387
{
8488
:'file_info' => :'FileInfo',
8589
:'view_format' => :'String',
90+
:'output_path' => :'String',
8691
:'fonts_path' => :'String',
8792
:'watermark' => :'Watermark',
8893
:'render_options' => :'RenderOptions'
@@ -105,6 +110,10 @@ def initialize(attributes = {})
105110
self.view_format = attributes[:'ViewFormat']
106111
end
107112

113+
if attributes.key?(:'OutputPath')
114+
self.output_path = attributes[:'OutputPath']
115+
end
116+
108117
if attributes.key?(:'FontsPath')
109118
self.fonts_path = attributes[:'FontsPath']
110119
end
@@ -160,6 +169,7 @@ def ==(other)
160169
self.class == other.class &&
161170
file_info == other.file_info &&
162171
view_format == other.view_format &&
172+
output_path == other.output_path &&
163173
fonts_path == other.fonts_path &&
164174
watermark == other.watermark &&
165175
render_options == other.render_options
@@ -174,7 +184,7 @@ def eql?(other)
174184
# Calculates hash code according to all attributes.
175185
# @return [Fixnum] Hash code
176186
def hash
177-
[file_info, view_format, fonts_path, watermark, render_options].hash
187+
[file_info, view_format, output_path, fonts_path, watermark, render_options].hash
178188
end
179189

180190
# Downcases first letter.

lib/groupdocs_viewer_cloud/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@
2525
# --------------------------------------------------------------------------------------------------------------------
2626
#
2727
module GroupDocsViewerCloud
28-
VERSION = "19.3.2".freeze
28+
VERSION = "19.4".freeze
2929
end

0 commit comments

Comments
 (0)