| 1 | =begin comment | ||
| 2 | |||
| 3 | Copyright (c) 2019 Aspose Pty Ltd | ||
| 4 | |||
| 5 | Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| 6 | of this software and associated documentation files (the "Software"), to deal | ||
| 7 | in the Software without restriction, including without limitation the rights | ||
| 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| 9 | copies of the Software, and to permit persons to whom the Software is | ||
| 10 | furnished to do so, subject to the following conditions: | ||
| 11 | |||
| 12 | The above copyright notice and this permission notice shall be included in all | ||
| 13 | copies or substantial portions of the Software. | ||
| 14 | |||
| 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| 21 | SOFTWARE. | ||
| 22 | |||
| 23 | =end comment | ||
| 24 | |||
| 25 | =cut | ||
| 26 | |||
| 27 | package AsposeSlidesCloud::Object::SvgExportOptions; | ||
| 28 | |||
| 29 | require 5.6.0; | ||
| 30 | use strict; | ||
| 31 | use warnings; | ||
| 32 | use utf8; | ||
| 33 | use JSON qw(decode_json); | ||
| 34 | use Data::Dumper; | ||
| 35 | use Module::Runtime qw(use_module); | ||
| 36 | use Log::Any qw($log); | ||
| 37 | use Date::Parse; | ||
| 38 | use DateTime; | ||
| 39 | |||
| 40 | use AsposeSlidesCloud::Object::ExportOptions; | ||
| 41 | use AsposeSlidesCloud::Object::FontFallbackRule; | ||
| 42 | use AsposeSlidesCloud::Object::FontSubstRule; | ||
| 43 | |||
| 44 | use base ("Class::Accessor", "Class::Data::Inheritable"); | ||
| 45 | |||
| 46 | |||
| 47 | # | ||
| 48 | #Provides options that control how a presentation is saved in SVG format. | ||
| 49 | # | ||
| 50 | # NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. | ||
| 51 | # REF: https://github.com/swagger-api/swagger-codegen | ||
| 52 | # | ||
| 53 | |||
| 54 | # | ||
| 55 | # NOTE: This class is auto generated by the swagger code generator program. | ||
| 56 | # Do not edit the class manually. | ||
| 57 | # Ref: https://github.com/swagger-api/swagger-codegen | ||
| 58 | # | ||
| 59 | __PACKAGE__->mk_classdata('attribute_map' => {}); | ||
| 60 | __PACKAGE__->mk_classdata('swagger_types' => {}); | ||
| 61 | __PACKAGE__->mk_classdata('method_documentation' => {}); | ||
| 62 | __PACKAGE__->mk_classdata('class_documentation' => {}); | ||
| 63 | |||
| 64 | # new object | ||
| 65 | sub new { | ||
| 66 | my ($class, %args) = @_; | ||
| 67 | |||
| 68 | my $self = bless {}, $class; | ||
| 69 | |||
| 70 | foreach my $attribute (keys %{$class->attribute_map}) { | ||
| 71 | my $args_key = $class->attribute_map->{$attribute}; | ||
| 72 | $self->$attribute( $args{ $args_key } ); | ||
| 73 | } | ||
| 74 | $self->{ format } = 'svg'; | ||
| 75 | return $self; | ||
| 76 | } | ||
| 77 | |||
| 78 | # used by JSON for serialization | ||
| 79 | sub TO_JSON { | ||
| 80 | my $self = shift; | ||
| 81 | my $_data = {}; | ||
| 82 | foreach my $_key (keys %{$self->attribute_map}) { | ||
| 83 | if (defined $self->{$_key}) { | ||
| 84 | $_data->{$self->attribute_map->{$_key}} = $self->{$_key}; | ||
| 85 | } | ||
| 86 | } | ||
| 87 | return $_data; | ||
| 88 | } | ||
| 89 | |||
| 90 | |||
| 91 | __PACKAGE__->class_documentation({description => 'Provides options that control how a presentation is saved in SVG format.', | ||
| 92 | class => 'SvgExportOptions', | ||
| 93 | required => [], # TODO | ||
| 94 | } ); | ||
| 95 | |||
| 96 | __PACKAGE__->method_documentation({ | ||
| 97 | 'default_regular_font' => { | ||
| 98 | datatype => 'string', | ||
| 99 | base_name => 'DefaultRegularFont', | ||
| 100 | description => 'Default regular font for rendering the presentation. ', | ||
| 101 | format => '', | ||
| 102 | read_only => '', | ||
| 103 | }, | ||
| 104 | 'delete_embedded_binary_objects' => { | ||
| 105 | datatype => 'boolean', | ||
| 106 | base_name => 'DeleteEmbeddedBinaryObjects', | ||
| 107 | description => 'True to delete delete all embedded binary objects.', | ||
| 108 | format => '', | ||
| 109 | read_only => '', | ||
| 110 | }, | ||
| 111 | 'gradient_style' => { | ||
| 112 | datatype => 'string', | ||
| 113 | base_name => 'GradientStyle', | ||
| 114 | description => 'Default regular font for rendering the presentation. ', | ||
| 115 | format => '', | ||
| 116 | read_only => '', | ||
| 117 | }, | ||
| 118 | 'font_fallback_rules' => { | ||
| 119 | datatype => 'ARRAY[FontFallbackRule]', | ||
| 120 | base_name => 'FontFallbackRules', | ||
| 121 | description => 'Gets of sets list of font fallback rules.', | ||
| 122 | format => '', | ||
| 123 | read_only => '', | ||
| 124 | }, | ||
| 125 | 'font_subst_rules' => { | ||
| 126 | datatype => 'ARRAY[FontSubstRule]', | ||
| 127 | base_name => 'FontSubstRules', | ||
| 128 | description => 'Gets of sets list of font substitution rules.', | ||
| 129 | format => '', | ||
| 130 | read_only => '', | ||
| 131 | }, | ||
| 132 | 'skip_java_script_links' => { | ||
| 133 | datatype => 'boolean', | ||
| 134 | base_name => 'SkipJavaScriptLinks', | ||
| 135 | description => 'True to skip hyperlinks with javascript calls when saving the presentation.', | ||
| 136 | format => '', | ||
| 137 | read_only => '', | ||
| 138 | }, | ||
| 139 | 'format' => { | ||
| 140 | datatype => 'string', | ||
| 141 | base_name => 'Format', | ||
| 142 | description => ' Export format. ', | ||
| 143 | format => '', | ||
| 144 | read_only => '', | ||
| 145 | }, | ||
| 146 | 'vectorize_text' => { | ||
| 147 | datatype => 'boolean', | ||
| 148 | base_name => 'VectorizeText', | ||
| 149 | description => 'Determines whether the text on a slide will be saved as graphics.', | ||
| 150 | format => '', | ||
| 151 | read_only => '', | ||
| 152 | }, | ||
| 153 | 'metafile_rasterization_dpi' => { | ||
| 154 | datatype => 'int', | ||
| 155 | base_name => 'MetafileRasterizationDpi', | ||
| 156 | description => 'Returns or sets the lower resolution limit for metafile rasterization.', | ||
| 157 | format => '', | ||
| 158 | read_only => '', | ||
| 159 | }, | ||
| 160 | 'disable3_d_text' => { | ||
| 161 | datatype => 'boolean', | ||
| 162 | base_name => 'Disable3DText', | ||
| 163 | description => 'Determines whether the 3D text is disabled in SVG.', | ||
| 164 | format => '', | ||
| 165 | read_only => '', | ||
| 166 | }, | ||
| 167 | 'disable_gradient_split' => { | ||
| 168 | datatype => 'boolean', | ||
| 169 | base_name => 'DisableGradientSplit', | ||
| 170 | description => 'Disables splitting FromCornerX and FromCenter gradients.', | ||
| 171 | format => '', | ||
| 172 | read_only => '', | ||
| 173 | }, | ||
| 174 | 'disable_line_end_cropping' => { | ||
| 175 | datatype => 'boolean', | ||
| 176 | base_name => 'DisableLineEndCropping', | ||
| 177 | description => 'SVG 1.1 lacks ability to define insets for markers. Aspose.Slides SVG writing engine has workaround for that problem: it crops end of line with arrow, so, line doesn't overlap markers. This option switches off such behavior.', | ||
| 178 | format => '', | ||
| 179 | read_only => '', | ||
| 180 | }, | ||
| 181 | 'jpeg_quality' => { | ||
| 182 | datatype => 'int', | ||
| 183 | base_name => 'JpegQuality', | ||
| 184 | description => 'Determines JPEG encoding quality.', | ||
| 185 | format => '', | ||
| 186 | read_only => '', | ||
| 187 | }, | ||
| 188 | 'pictures_compression' => { | ||
| 189 | datatype => 'string', | ||
| 190 | base_name => 'PicturesCompression', | ||
| 191 | description => 'Represents the pictures compression level', | ||
| 192 | format => '', | ||
| 193 | read_only => '', | ||
| 194 | }, | ||
| 195 | 'delete_pictures_cropped_areas' => { | ||
| 196 | datatype => 'boolean', | ||
| 197 | base_name => 'DeletePicturesCroppedAreas', | ||
| 198 | description => 'A boolean flag indicates if the cropped parts remain as part of the document. If true the cropped parts will removed, if false they will be serialized in the document (which can possible lead to a larger file)', | ||
| 199 | format => '', | ||
| 200 | read_only => '', | ||
| 201 | }, | ||
| 202 | 'external_fonts_handling' => { | ||
| 203 | datatype => 'string', | ||
| 204 | base_name => 'ExternalFontsHandling', | ||
| 205 | description => 'Determines a way of handling externally loaded fonts.', | ||
| 206 | format => '', | ||
| 207 | read_only => '', | ||
| 208 | }, | ||
| 209 | 'use_frame_size' => { | ||
| 210 | datatype => 'boolean', | ||
| 211 | base_name => 'UseFrameSize', | ||
| 212 | description => 'Determines whether the text frame will be included in a rendering area or not.', | ||
| 213 | format => '', | ||
| 214 | read_only => '', | ||
| 215 | }, | ||
| 216 | 'use_frame_rotation' => { | ||
| 217 | datatype => 'boolean', | ||
| 218 | base_name => 'UseFrameRotation', | ||
| 219 | description => 'Determines whether to perform the specified rotation of the shape when rendering or not.', | ||
| 220 | format => '', | ||
| 221 | read_only => '', | ||
| 222 | }, | ||
| 223 | 'disable_font_ligatures' => { | ||
| 224 | datatype => 'boolean', | ||
| 225 | base_name => 'DisableFontLigatures', | ||
| 226 | description => 'true to disable ligatures in the rendered output.', | ||
| 227 | format => '', | ||
| 228 | read_only => '', | ||
| 229 | }, | ||
| 230 | }); | ||
| 231 | |||
| 232 | __PACKAGE__->swagger_types( { | ||
| 233 | 'default_regular_font' => 'string', | ||
| 234 | 'delete_embedded_binary_objects' => 'boolean', | ||
| 235 | 'gradient_style' => 'string', | ||
| 236 | 'font_fallback_rules' => 'ARRAY[FontFallbackRule]', | ||
| 237 | 'font_subst_rules' => 'ARRAY[FontSubstRule]', | ||
| 238 | 'skip_java_script_links' => 'boolean', | ||
| 239 | 'format' => 'string', | ||
| 240 | 'vectorize_text' => 'boolean', | ||
| 241 | 'metafile_rasterization_dpi' => 'int', | ||
| 242 | 'disable3_d_text' => 'boolean', | ||
| 243 | 'disable_gradient_split' => 'boolean', | ||
| 244 | 'disable_line_end_cropping' => 'boolean', | ||
| 245 | 'jpeg_quality' => 'int', | ||
| 246 | 'pictures_compression' => 'string', | ||
| 247 | 'delete_pictures_cropped_areas' => 'boolean', | ||
| 248 | 'external_fonts_handling' => 'string', | ||
| 249 | 'use_frame_size' => 'boolean', | ||
| 250 | 'use_frame_rotation' => 'boolean', | ||
| 251 | 'disable_font_ligatures' => 'boolean' | ||
| 252 | } ); | ||
| 253 | |||
| 254 | __PACKAGE__->attribute_map( { | ||
| 255 | 'default_regular_font' => 'DefaultRegularFont', | ||
| 256 | 'delete_embedded_binary_objects' => 'DeleteEmbeddedBinaryObjects', | ||
| 257 | 'gradient_style' => 'GradientStyle', | ||
| 258 | 'font_fallback_rules' => 'FontFallbackRules', | ||
| 259 | 'font_subst_rules' => 'FontSubstRules', | ||
| 260 | 'skip_java_script_links' => 'SkipJavaScriptLinks', | ||
| 261 | 'format' => 'Format', | ||
| 262 | 'vectorize_text' => 'VectorizeText', | ||
| 263 | 'metafile_rasterization_dpi' => 'MetafileRasterizationDpi', | ||
| 264 | 'disable3_d_text' => 'Disable3DText', | ||
| 265 | 'disable_gradient_split' => 'DisableGradientSplit', | ||
| 266 | 'disable_line_end_cropping' => 'DisableLineEndCropping', | ||
| 267 | 'jpeg_quality' => 'JpegQuality', | ||
| 268 | 'pictures_compression' => 'PicturesCompression', | ||
| 269 | 'delete_pictures_cropped_areas' => 'DeletePicturesCroppedAreas', | ||
| 270 | 'external_fonts_handling' => 'ExternalFontsHandling', | ||
| 271 | 'use_frame_size' => 'UseFrameSize', | ||
| 272 | 'use_frame_rotation' => 'UseFrameRotation', | ||
| 273 | 'disable_font_ligatures' => 'DisableFontLigatures' | ||
| 274 | } ); | ||
| 275 | |||
| 276 | __PACKAGE__->mk_accessors(keys %{__PACKAGE__->attribute_map}); | ||
| 277 | |||
| 278 | |||
| 279 | 1; |