Object/TiffExportOptions.pm untested

filter: Statementstmt 0.0% 0 / 77 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 17 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 98 CC 2 SCAR 8.9
CC
2
Cov
0%
TO_JSON
6.0
new
2.0
BEGIN
2.0
CRAP 2.4
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::TiffExportOptions;
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::FontFallbackRule;
41 use AsposeSlidesCloud::Object::FontSubstRule;
42 use AsposeSlidesCloud::Object::ImageExportOptionsBase;
43 use AsposeSlidesCloud::Object::SlidesLayoutOptions;
44  
45 use base ("Class::Accessor", "Class::Data::Inheritable");
46  
47  
48 #
49 #Provides options that control how a presentation is saved in TIFF format.
50 #
51 # NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
52 # REF: https://github.com/swagger-api/swagger-codegen
53 #
54  
55 #
56 # NOTE: This class is auto generated by the swagger code generator program.
57 # Do not edit the class manually.
58 # Ref: https://github.com/swagger-api/swagger-codegen
59 #
60 __PACKAGE__->mk_classdata('attribute_map' => {});
61 __PACKAGE__->mk_classdata('swagger_types' => {});
62 __PACKAGE__->mk_classdata('method_documentation' => {});
63 __PACKAGE__->mk_classdata('class_documentation' => {});
64  
65 # new object
66 sub new {
67 my ($class, %args) = @_;
68  
69 my $self = bless {}, $class;
70
71 foreach my $attribute (keys %{$class->attribute_map}) {
72 my $args_key = $class->attribute_map->{$attribute};
73 $self->$attribute( $args{ $args_key } );
74 }
75 $self->{ format } = 'tiff';
76 return $self;
77 }
78  
79 # used by JSON for serialization
80 sub TO_JSON {
81 my $self = shift;
82 my $_data = {};
83 foreach my $_key (keys %{$self->attribute_map}) {
84 if (defined $self->{$_key}) {
85 $_data->{$self->attribute_map->{$_key}} = $self->{$_key};
86 }
87 }
88 return $_data;
89 }
90  
91  
92 __PACKAGE__->class_documentation({description => 'Provides options that control how a presentation is saved in TIFF format.',
93 class => 'TiffExportOptions',
94 required => [], # TODO
95 } );
96  
97 __PACKAGE__->method_documentation({
98 'default_regular_font' => {
99 datatype => 'string',
100 base_name => 'DefaultRegularFont',
101 description => 'Default regular font for rendering the presentation. ',
102 format => '',
103 read_only => '',
104 },
105 'delete_embedded_binary_objects' => {
106 datatype => 'boolean',
107 base_name => 'DeleteEmbeddedBinaryObjects',
108 description => 'True to delete delete all embedded binary objects.',
109 format => '',
110 read_only => '',
111 },
112 'gradient_style' => {
113 datatype => 'string',
114 base_name => 'GradientStyle',
115 description => 'Default regular font for rendering the presentation. ',
116 format => '',
117 read_only => '',
118 },
119 'font_fallback_rules' => {
120 datatype => 'ARRAY[FontFallbackRule]',
121 base_name => 'FontFallbackRules',
122 description => 'Gets of sets list of font fallback rules.',
123 format => '',
124 read_only => '',
125 },
126 'font_subst_rules' => {
127 datatype => 'ARRAY[FontSubstRule]',
128 base_name => 'FontSubstRules',
129 description => 'Gets of sets list of font substitution rules.',
130 format => '',
131 read_only => '',
132 },
133 'skip_java_script_links' => {
134 datatype => 'boolean',
135 base_name => 'SkipJavaScriptLinks',
136 description => 'True to skip hyperlinks with javascript calls when saving the presentation.',
137 format => '',
138 read_only => '',
139 },
140 'format' => {
141 datatype => 'string',
142 base_name => 'Format',
143 description => 'Export format.',
144 format => '',
145 read_only => '',
146 },
147 'height' => {
148 datatype => 'int',
149 base_name => 'Height',
150 description => 'Gets or sets the height of slides in the output image format.',
151 format => '',
152 read_only => '',
153 },
154 'width' => {
155 datatype => 'int',
156 base_name => 'Width',
157 description => 'Gets or sets the height of slides in the output the output image format.',
158 format => '',
159 read_only => '',
160 },
161 'compression' => {
162 datatype => 'string',
163 base_name => 'Compression',
164 description => 'Compression type.',
165 format => '',
166 read_only => '',
167 },
168 'dpi_x' => {
169 datatype => 'int',
170 base_name => 'DpiX',
171 description => 'Horizontal resolution, in dots per inch.',
172 format => '',
173 read_only => '',
174 },
175 'dpi_y' => {
176 datatype => 'int',
177 base_name => 'DpiY',
178 description => 'Vertical resolution, in dots per inch.',
179 format => '',
180 read_only => '',
181 },
182 'show_hidden_slides' => {
183 datatype => 'boolean',
184 base_name => 'ShowHiddenSlides',
185 description => 'Specifies whether the generated document should include hidden slides or not. Default is false. ',
186 format => '',
187 read_only => '',
188 },
189 'pixel_format' => {
190 datatype => 'string',
191 base_name => 'PixelFormat',
192 description => 'Specifies the pixel format for the generated images. Read/write ImagePixelFormat.',
193 format => '',
194 read_only => '',
195 },
196 'slides_layout_options' => {
197 datatype => 'SlidesLayoutOptions',
198 base_name => 'SlidesLayoutOptions',
199 description => 'Slides layouting options',
200 format => '',
201 read_only => '',
202 },
203 'bw_conversion_mode' => {
204 datatype => 'string',
205 base_name => 'BwConversionMode',
206 description => 'Specifies the algorithm for converting a color image into a black and white image. This option will applied only if Aspose.Slides.Export.TiffOptions.CompressionType is set to Aspose.Slides.Export.TiffCompressionTypes.CCITT4 or Aspose.Slides.Export.TiffCompressionTypes.CCITT3.',
207 format => '',
208 read_only => '',
209 },
210 });
211  
212 __PACKAGE__->swagger_types( {
213 'default_regular_font' => 'string',
214 'delete_embedded_binary_objects' => 'boolean',
215 'gradient_style' => 'string',
216 'font_fallback_rules' => 'ARRAY[FontFallbackRule]',
217 'font_subst_rules' => 'ARRAY[FontSubstRule]',
218 'skip_java_script_links' => 'boolean',
219 'format' => 'string',
220 'height' => 'int',
221 'width' => 'int',
222 'compression' => 'string',
223 'dpi_x' => 'int',
224 'dpi_y' => 'int',
225 'show_hidden_slides' => 'boolean',
226 'pixel_format' => 'string',
227 'slides_layout_options' => 'SlidesLayoutOptions',
228 'bw_conversion_mode' => 'string'
229 } );
230  
231 __PACKAGE__->attribute_map( {
232 'default_regular_font' => 'DefaultRegularFont',
233 'delete_embedded_binary_objects' => 'DeleteEmbeddedBinaryObjects',
234 'gradient_style' => 'GradientStyle',
235 'font_fallback_rules' => 'FontFallbackRules',
236 'font_subst_rules' => 'FontSubstRules',
237 'skip_java_script_links' => 'SkipJavaScriptLinks',
238 'format' => 'Format',
239 'height' => 'Height',
240 'width' => 'Width',
241 'compression' => 'Compression',
242 'dpi_x' => 'DpiX',
243 'dpi_y' => 'DpiY',
244 'show_hidden_slides' => 'ShowHiddenSlides',
245 'pixel_format' => 'PixelFormat',
246 'slides_layout_options' => 'SlidesLayoutOptions',
247 'bw_conversion_mode' => 'BwConversionMode'
248 } );
249  
250 __PACKAGE__->mk_accessors(keys %{__PACKAGE__->attribute_map});
251  
252  
253 1;