groupdocs_viewer_cloud 24.12 → 25.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. checksums.yaml +4 -4
  2. data/lib/groupdocs_viewer_cloud/api/file_api.rb +6 -6
  3. data/lib/groupdocs_viewer_cloud/api/folder_api.rb +6 -6
  4. data/lib/groupdocs_viewer_cloud/api/info_api.rb +2 -2
  5. data/lib/groupdocs_viewer_cloud/api/license_api.rb +1 -1
  6. data/lib/groupdocs_viewer_cloud/api/storage_api.rb +5 -5
  7. data/lib/groupdocs_viewer_cloud/api/view_api.rb +4 -4
  8. data/lib/groupdocs_viewer_cloud/api_client.rb +1 -1
  9. data/lib/groupdocs_viewer_cloud/api_client_error.rb +1 -1
  10. data/lib/groupdocs_viewer_cloud/configuration.rb +1 -1
  11. data/lib/groupdocs_viewer_cloud/models/api_error.rb +1 -1
  12. data/lib/groupdocs_viewer_cloud/models/api_error_response.rb +1 -1
  13. data/lib/groupdocs_viewer_cloud/models/archive_options.rb +1 -1
  14. data/lib/groupdocs_viewer_cloud/models/archive_view_info.rb +1 -1
  15. data/lib/groupdocs_viewer_cloud/models/attachment_info.rb +1 -1
  16. data/lib/groupdocs_viewer_cloud/models/attachment_view.rb +1 -1
  17. data/lib/groupdocs_viewer_cloud/models/cad_options.rb +1 -1
  18. data/lib/groupdocs_viewer_cloud/models/cad_view_info.rb +1 -1
  19. data/lib/groupdocs_viewer_cloud/models/character.rb +1 -1
  20. data/lib/groupdocs_viewer_cloud/models/consumption_result.rb +20 -5
  21. data/lib/groupdocs_viewer_cloud/models/delete_view_options.rb +1 -1
  22. data/lib/groupdocs_viewer_cloud/models/disc_usage.rb +1 -1
  23. data/lib/groupdocs_viewer_cloud/models/email_options.rb +1 -1
  24. data/lib/groupdocs_viewer_cloud/models/error.rb +1 -1
  25. data/lib/groupdocs_viewer_cloud/models/error_details.rb +1 -1
  26. data/lib/groupdocs_viewer_cloud/models/field_label.rb +1 -1
  27. data/lib/groupdocs_viewer_cloud/models/file_info.rb +1 -1
  28. data/lib/groupdocs_viewer_cloud/models/file_version.rb +1 -1
  29. data/lib/groupdocs_viewer_cloud/models/file_versions.rb +1 -1
  30. data/lib/groupdocs_viewer_cloud/models/files_list.rb +1 -1
  31. data/lib/groupdocs_viewer_cloud/models/files_upload_result.rb +1 -1
  32. data/lib/groupdocs_viewer_cloud/models/format.rb +1 -1
  33. data/lib/groupdocs_viewer_cloud/models/formats_result.rb +1 -1
  34. data/lib/groupdocs_viewer_cloud/models/html_options.rb +20 -5
  35. data/lib/groupdocs_viewer_cloud/models/html_resource.rb +1 -1
  36. data/lib/groupdocs_viewer_cloud/models/image_options.rb +1 -1
  37. data/lib/groupdocs_viewer_cloud/models/info_result.rb +1 -1
  38. data/lib/groupdocs_viewer_cloud/models/layer.rb +1 -1
  39. data/lib/groupdocs_viewer_cloud/models/layout.rb +1 -1
  40. data/lib/groupdocs_viewer_cloud/models/line.rb +1 -1
  41. data/lib/groupdocs_viewer_cloud/models/mail_storage_options.rb +1 -1
  42. data/lib/groupdocs_viewer_cloud/models/object_exist.rb +1 -1
  43. data/lib/groupdocs_viewer_cloud/models/outlook_options.rb +1 -1
  44. data/lib/groupdocs_viewer_cloud/models/outlook_view_info.rb +1 -1
  45. data/lib/groupdocs_viewer_cloud/models/page_info.rb +1 -1
  46. data/lib/groupdocs_viewer_cloud/models/page_rotation.rb +1 -1
  47. data/lib/groupdocs_viewer_cloud/models/page_view.rb +1 -1
  48. data/lib/groupdocs_viewer_cloud/models/pdf_document_options.rb +1 -1
  49. data/lib/groupdocs_viewer_cloud/models/pdf_optimization_options.rb +1 -1
  50. data/lib/groupdocs_viewer_cloud/models/pdf_options.rb +1 -1
  51. data/lib/groupdocs_viewer_cloud/models/pdf_view_info.rb +1 -1
  52. data/lib/groupdocs_viewer_cloud/models/project_management_options.rb +1 -1
  53. data/lib/groupdocs_viewer_cloud/models/project_management_view_info.rb +1 -1
  54. data/lib/groupdocs_viewer_cloud/models/render_options.rb +1 -1
  55. data/lib/groupdocs_viewer_cloud/models/resource.rb +1 -1
  56. data/lib/groupdocs_viewer_cloud/models/spreadsheet_options.rb +1 -1
  57. data/lib/groupdocs_viewer_cloud/models/storage_exist.rb +1 -1
  58. data/lib/groupdocs_viewer_cloud/models/storage_file.rb +1 -1
  59. data/lib/groupdocs_viewer_cloud/models/text_element.rb +1 -1
  60. data/lib/groupdocs_viewer_cloud/models/text_options.rb +1 -1
  61. data/lib/groupdocs_viewer_cloud/models/tile.rb +1 -1
  62. data/lib/groupdocs_viewer_cloud/models/view_options.rb +1 -1
  63. data/lib/groupdocs_viewer_cloud/models/view_result.rb +1 -1
  64. data/lib/groupdocs_viewer_cloud/models/visio_rendering_options.rb +1 -1
  65. data/lib/groupdocs_viewer_cloud/models/watermark.rb +1 -1
  66. data/lib/groupdocs_viewer_cloud/models/web_document_options.rb +1 -1
  67. data/lib/groupdocs_viewer_cloud/models/word.rb +1 -1
  68. data/lib/groupdocs_viewer_cloud/models/word_processing_options.rb +102 -5
  69. data/lib/groupdocs_viewer_cloud/version.rb +2 -2
  70. data/lib/groupdocs_viewer_cloud.rb +1 -1
  71. metadata +2 -2
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="html_resource.rb">
4
- # Copyright (c) 2003-2024 Aspose Pty Ltd
4
+ # Copyright (c) Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="image_options.rb">
4
- # Copyright (c) 2003-2024 Aspose Pty Ltd
4
+ # Copyright (c) Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="info_result.rb">
4
- # Copyright (c) 2003-2024 Aspose Pty Ltd
4
+ # Copyright (c) Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="layer.rb">
4
- # Copyright (c) 2003-2024 Aspose Pty Ltd
4
+ # Copyright (c) Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="layout.rb">
4
- # Copyright (c) 2003-2024 Aspose Pty Ltd
4
+ # Copyright (c) Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="line.rb">
4
- # Copyright (c) 2003-2024 Aspose Pty Ltd
4
+ # Copyright (c) Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="mail_storage_options.rb">
4
- # Copyright (c) 2003-2024 Aspose Pty Ltd
4
+ # Copyright (c) Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="object_exist.rb">
4
- # Copyright (c) 2003-2024 Aspose Pty Ltd
4
+ # Copyright (c) Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="outlook_options.rb">
4
- # Copyright (c) 2003-2024 Aspose Pty Ltd
4
+ # Copyright (c) Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="outlook_view_info.rb">
4
- # Copyright (c) 2003-2024 Aspose Pty Ltd
4
+ # Copyright (c) Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="page_info.rb">
4
- # Copyright (c) 2003-2024 Aspose Pty Ltd
4
+ # Copyright (c) Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="page_rotation.rb">
4
- # Copyright (c) 2003-2024 Aspose Pty Ltd
4
+ # Copyright (c) Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="page_view.rb">
4
- # Copyright (c) 2003-2024 Aspose Pty Ltd
4
+ # Copyright (c) Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="pdf_document_options.rb">
4
- # Copyright (c) 2003-2024 Aspose Pty Ltd
4
+ # Copyright (c) Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="pdf_optimization_options.rb">
4
- # Copyright (c) 2003-2024 Aspose Pty Ltd
4
+ # Copyright (c) Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="pdf_options.rb">
4
- # Copyright (c) 2003-2024 Aspose Pty Ltd
4
+ # Copyright (c) Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="pdf_view_info.rb">
4
- # Copyright (c) 2003-2024 Aspose Pty Ltd
4
+ # Copyright (c) Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="project_management_options.rb">
4
- # Copyright (c) 2003-2024 Aspose Pty Ltd
4
+ # Copyright (c) Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="project_management_view_info.rb">
4
- # Copyright (c) 2003-2024 Aspose Pty Ltd
4
+ # Copyright (c) Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="render_options.rb">
4
- # Copyright (c) 2003-2024 Aspose Pty Ltd
4
+ # Copyright (c) Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="resource.rb">
4
- # Copyright (c) 2003-2024 Aspose Pty Ltd
4
+ # Copyright (c) Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="spreadsheet_options.rb">
4
- # Copyright (c) 2003-2024 Aspose Pty Ltd
4
+ # Copyright (c) Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="storage_exist.rb">
4
- # Copyright (c) 2003-2024 Aspose Pty Ltd
4
+ # Copyright (c) Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="storage_file.rb">
4
- # Copyright (c) 2003-2024 Aspose Pty Ltd
4
+ # Copyright (c) Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="text_element.rb">
4
- # Copyright (c) 2003-2024 Aspose Pty Ltd
4
+ # Copyright (c) Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="text_options.rb">
4
- # Copyright (c) 2003-2024 Aspose Pty Ltd
4
+ # Copyright (c) Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="tile.rb">
4
- # Copyright (c) 2003-2024 Aspose Pty Ltd
4
+ # Copyright (c) Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="view_options.rb">
4
- # Copyright (c) 2003-2024 Aspose Pty Ltd
4
+ # Copyright (c) Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="view_result.rb">
4
- # Copyright (c) 2003-2024 Aspose Pty Ltd
4
+ # Copyright (c) Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="visio_rendering_options.rb">
4
- # Copyright (c) 2003-2024 Aspose Pty Ltd
4
+ # Copyright (c) Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="watermark.rb">
4
- # Copyright (c) 2003-2024 Aspose Pty Ltd
4
+ # Copyright (c) Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="web_document_options.rb">
4
- # Copyright (c) 2003-2024 Aspose Pty Ltd
4
+ # Copyright (c) Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="word.rb">
4
- # Copyright (c) 2003-2024 Aspose Pty Ltd
4
+ # Copyright (c) Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="word_processing_options.rb">
4
- # Copyright (c) 2003-2024 Aspose Pty Ltd
4
+ # Copyright (c) Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -46,6 +46,39 @@ module GroupDocsViewerCloud
46
46
  # Bottom page margin (for HTML rendering only)
47
47
  attr_accessor :bottom_margin
48
48
 
49
+ # The size of the page.
50
+ attr_accessor :page_size
51
+
52
+ # This option enables kerning and other OpenType Features when rendering Arabic, Hebrew, Indian Latin-based, or Cyrillic-based scripts.
53
+ attr_accessor :enable_open_type_features
54
+
55
+ # When rendering to HTML or PDF, you can set this option to `true` to disable navigation from the table of contents. For HTML rendering, `a` tags with relative links will be replaced with `span` tags, removing functionality but preserving visual appearance. For PDF rendering, the table of contents will be rendered as plain text without links to document sections.
56
+ attr_accessor :unlink_table_of_contents
57
+
58
+ # Determines if fields of certain types should be updated before saving the input WordProcessing document to the HTML, PDF, PNG, or JPEG output formats. Default value for this property is true — fields will be updated before saving.
59
+ attr_accessor :update_fields
60
+ class EnumAttributeValidator
61
+ attr_reader :datatype
62
+ attr_reader :allowable_values
63
+
64
+ def initialize(datatype, allowable_values)
65
+ @allowable_values = allowable_values.map do |value|
66
+ case datatype.to_s
67
+ when /Integer/i
68
+ value.to_i
69
+ when /Float/i
70
+ value.to_f
71
+ else
72
+ value
73
+ end
74
+ end
75
+ end
76
+
77
+ def valid?(value)
78
+ !value || allowable_values.include?(value)
79
+ end
80
+ end
81
+
49
82
  # Attribute mapping from ruby-style variable name to JSON key.
50
83
  def self.attribute_map
51
84
  {
@@ -53,7 +86,11 @@ module GroupDocsViewerCloud
53
86
  :'left_margin' => :'LeftMargin',
54
87
  :'right_margin' => :'RightMargin',
55
88
  :'top_margin' => :'TopMargin',
56
- :'bottom_margin' => :'BottomMargin'
89
+ :'bottom_margin' => :'BottomMargin',
90
+ :'page_size' => :'PageSize',
91
+ :'enable_open_type_features' => :'EnableOpenTypeFeatures',
92
+ :'unlink_table_of_contents' => :'UnlinkTableOfContents',
93
+ :'update_fields' => :'UpdateFields'
57
94
  }
58
95
  end
59
96
 
@@ -64,7 +101,11 @@ module GroupDocsViewerCloud
64
101
  :'left_margin' => :'Float',
65
102
  :'right_margin' => :'Float',
66
103
  :'top_margin' => :'Float',
67
- :'bottom_margin' => :'Float'
104
+ :'bottom_margin' => :'Float',
105
+ :'page_size' => :'String',
106
+ :'enable_open_type_features' => :'BOOLEAN',
107
+ :'unlink_table_of_contents' => :'BOOLEAN',
108
+ :'update_fields' => :'BOOLEAN'
68
109
  }
69
110
  end
70
111
 
@@ -96,6 +137,22 @@ module GroupDocsViewerCloud
96
137
  self.bottom_margin = attributes[:'BottomMargin']
97
138
  end
98
139
 
140
+ if attributes.key?(:'PageSize')
141
+ self.page_size = attributes[:'PageSize']
142
+ end
143
+
144
+ if attributes.key?(:'EnableOpenTypeFeatures')
145
+ self.enable_open_type_features = attributes[:'EnableOpenTypeFeatures']
146
+ end
147
+
148
+ if attributes.key?(:'UnlinkTableOfContents')
149
+ self.unlink_table_of_contents = attributes[:'UnlinkTableOfContents']
150
+ end
151
+
152
+ if attributes.key?(:'UpdateFields')
153
+ self.update_fields = attributes[:'UpdateFields']
154
+ end
155
+
99
156
  end
100
157
 
101
158
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -122,6 +179,22 @@ module GroupDocsViewerCloud
122
179
  invalid_properties.push("invalid value for 'bottom_margin', bottom_margin cannot be nil.")
123
180
  end
124
181
 
182
+ if @page_size.nil?
183
+ invalid_properties.push("invalid value for 'page_size', page_size cannot be nil.")
184
+ end
185
+
186
+ if @enable_open_type_features.nil?
187
+ invalid_properties.push("invalid value for 'enable_open_type_features', enable_open_type_features cannot be nil.")
188
+ end
189
+
190
+ if @unlink_table_of_contents.nil?
191
+ invalid_properties.push("invalid value for 'unlink_table_of_contents', unlink_table_of_contents cannot be nil.")
192
+ end
193
+
194
+ if @update_fields.nil?
195
+ invalid_properties.push("invalid value for 'update_fields', update_fields cannot be nil.")
196
+ end
197
+
125
198
  return invalid_properties
126
199
  end
127
200
 
@@ -133,9 +206,29 @@ module GroupDocsViewerCloud
133
206
  return false if @right_margin.nil?
134
207
  return false if @top_margin.nil?
135
208
  return false if @bottom_margin.nil?
209
+ return false if @page_size.nil?
210
+ page_size_validator = EnumAttributeValidator.new('String', ["Unspecified", "Letter", "Ledger", "A0", "A1", "A2", "A3", "A4"])
211
+ return false unless page_size_validator.valid?(@page_size)
212
+ return false if @enable_open_type_features.nil?
213
+ return false if @unlink_table_of_contents.nil?
214
+ return false if @update_fields.nil?
136
215
  return true
137
216
  end
138
217
 
218
+ # Custom attribute writer method checking allowed values (enum).
219
+ # @param [Object] page_size Object to be assigned
220
+ def page_size=(page_size)
221
+ validator = EnumAttributeValidator.new('String', ["Unspecified", "Letter", "Ledger", "A0", "A1", "A2", "A3", "A4"])
222
+ if page_size.to_i == 0
223
+ unless validator.valid?(page_size)
224
+ raise ArgumentError, "invalid value for 'page_size', must be one of #{validator.allowable_values}."
225
+ end
226
+ @page_size = page_size
227
+ else
228
+ @page_size = validator.allowable_values[page_size.to_i]
229
+ end
230
+ end
231
+
139
232
  # Checks equality by comparing each attribute.
140
233
  # @param [Object] Object to be compared
141
234
  def ==(other)
@@ -145,7 +238,11 @@ module GroupDocsViewerCloud
145
238
  left_margin == other.left_margin &&
146
239
  right_margin == other.right_margin &&
147
240
  top_margin == other.top_margin &&
148
- bottom_margin == other.bottom_margin
241
+ bottom_margin == other.bottom_margin &&
242
+ page_size == other.page_size &&
243
+ enable_open_type_features == other.enable_open_type_features &&
244
+ unlink_table_of_contents == other.unlink_table_of_contents &&
245
+ update_fields == other.update_fields
149
246
  end
150
247
 
151
248
  # @see the `==` method
@@ -157,7 +254,7 @@ module GroupDocsViewerCloud
157
254
  # Calculates hash code according to all attributes.
158
255
  # @return [Fixnum] Hash code
159
256
  def hash
160
- [render_tracked_changes, left_margin, right_margin, top_margin, bottom_margin].hash
257
+ [render_tracked_changes, left_margin, right_margin, top_margin, bottom_margin, page_size, enable_open_type_features, unlink_table_of_contents, update_fields].hash
161
258
  end
162
259
 
163
260
  # Downcases first letter.
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="version.rb">
4
- # Copyright (c) 2003-2024 Aspose Pty Ltd
4
+ # Copyright (c) Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -25,5 +25,5 @@
25
25
  # --------------------------------------------------------------------------------------------------------------------
26
26
  #
27
27
  module GroupDocsViewerCloud
28
- VERSION = "24.12".freeze
28
+ VERSION = "25.4".freeze
29
29
  end
@@ -1,6 +1,6 @@
1
1
  # ------------------------------------------------------------------------------------
2
2
  # <copyright company="Aspose Pty Ltd" file="groupdocs_viewer_cloud.rb">
3
- # Copyright (c) 2003-2024 Aspose Pty Ltd
3
+ # Copyright (c) Aspose Pty Ltd
4
4
  # </copyright>
5
5
  # <summary>
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a copy
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: groupdocs_viewer_cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: '24.12'
4
+ version: '25.4'
5
5
  platform: ruby
6
6
  authors:
7
7
  - GroupDocs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-12-24 00:00:00.000000000 Z
11
+ date: 2025-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday