Object/PdfExportOptions.pm untested

filter: Statementstmt 0.0% 0 / 80 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 18 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 102 CC 2 SCAR 8.8
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::PdfExportOptions;
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::AccessPermissions;
41 use AsposeSlidesCloud::Object::ExportOptions;
42 use AsposeSlidesCloud::Object::FontFallbackRule;
43 use AsposeSlidesCloud::Object::FontSubstRule;
44 use AsposeSlidesCloud::Object::SlidesLayoutOptions;
45  
46 use base ("Class::Accessor", "Class::Data::Inheritable");
47  
48  
49 #
50 #Provides options that control how a presentation is saved in Pdf format.
51 #
52 # NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
53 # REF: https://github.com/swagger-api/swagger-codegen
54 #
55  
56 #
57 # NOTE: This class is auto generated by the swagger code generator program.
58 # Do not edit the class manually.
59 # Ref: https://github.com/swagger-api/swagger-codegen
60 #
61 __PACKAGE__->mk_classdata('attribute_map' => {});
62 __PACKAGE__->mk_classdata('swagger_types' => {});
63 __PACKAGE__->mk_classdata('method_documentation' => {});
64 __PACKAGE__->mk_classdata('class_documentation' => {});
65  
66 # new object
67 sub new {
68 my ($class, %args) = @_;
69  
70 my $self = bless {}, $class;
71
72 foreach my $attribute (keys %{$class->attribute_map}) {
73 my $args_key = $class->attribute_map->{$attribute};
74 $self->$attribute( $args{ $args_key } );
75 }
76 $self->{ format } = 'pdf';
77 return $self;
78 }
79  
80 # used by JSON for serialization
81 sub TO_JSON {
82 my $self = shift;
83 my $_data = {};
84 foreach my $_key (keys %{$self->attribute_map}) {
85 if (defined $self->{$_key}) {
86 $_data->{$self->attribute_map->{$_key}} = $self->{$_key};
87 }
88 }
89 return $_data;
90 }
91  
92  
93 __PACKAGE__->class_documentation({description => 'Provides options that control how a presentation is saved in Pdf format.',
94 class => 'PdfExportOptions',
95 required => [], # TODO
96 } );
97  
98 __PACKAGE__->method_documentation({
99 'default_regular_font' => {
100 datatype => 'string',
101 base_name => 'DefaultRegularFont',
102 description => 'Default regular font for rendering the presentation. ',
103 format => '',
104 read_only => '',
105 },
106 'delete_embedded_binary_objects' => {
107 datatype => 'boolean',
108 base_name => 'DeleteEmbeddedBinaryObjects',
109 description => 'True to delete delete all embedded binary objects.',
110 format => '',
111 read_only => '',
112 },
113 'gradient_style' => {
114 datatype => 'string',
115 base_name => 'GradientStyle',
116 description => 'Default regular font for rendering the presentation. ',
117 format => '',
118 read_only => '',
119 },
120 'font_fallback_rules' => {
121 datatype => 'ARRAY[FontFallbackRule]',
122 base_name => 'FontFallbackRules',
123 description => 'Gets of sets list of font fallback rules.',
124 format => '',
125 read_only => '',
126 },
127 'font_subst_rules' => {
128 datatype => 'ARRAY[FontSubstRule]',
129 base_name => 'FontSubstRules',
130 description => 'Gets of sets list of font substitution rules.',
131 format => '',
132 read_only => '',
133 },
134 'skip_java_script_links' => {
135 datatype => 'boolean',
136 base_name => 'SkipJavaScriptLinks',
137 description => 'True to skip hyperlinks with javascript calls when saving the presentation.',
138 format => '',
139 read_only => '',
140 },
141 'format' => {
142 datatype => 'string',
143 base_name => 'Format',
144 description => 'Export format.',
145 format => '',
146 read_only => '',
147 },
148 'text_compression' => {
149 datatype => 'string',
150 base_name => 'TextCompression',
151 description => 'Specifies compression type to be used for all textual content in the document.',
152 format => '',
153 read_only => '',
154 },
155 'embed_full_fonts' => {
156 datatype => 'boolean',
157 base_name => 'EmbedFullFonts',
158 description => 'Determines if all characters of font should be embedded or only used subset.',
159 format => '',
160 read_only => '',
161 },
162 'compliance' => {
163 datatype => 'string',
164 base_name => 'Compliance',
165 description => 'Desired conformance level for generated PDF document.',
166 format => '',
167 read_only => '',
168 },
169 'sufficient_resolution' => {
170 datatype => 'double',
171 base_name => 'SufficientResolution',
172 description => 'Returns or sets a value determining resolution of images inside PDF document. Property affects on file size, time of export and image quality. The default value is 96.',
173 format => '',
174 read_only => '',
175 },
176 'jpeg_quality' => {
177 datatype => 'int',
178 base_name => 'JpegQuality',
179 description => 'Returns or sets a value determining the quality of the JPEG images inside PDF document.',
180 format => '',
181 read_only => '',
182 },
183 'draw_slides_frame' => {
184 datatype => 'boolean',
185 base_name => 'DrawSlidesFrame',
186 description => 'True to draw black frame around each slide.',
187 format => '',
188 read_only => '',
189 },
190 'show_hidden_slides' => {
191 datatype => 'boolean',
192 base_name => 'ShowHiddenSlides',
193 description => 'Specifies whether the generated document should include hidden slides or not. Default is false. ',
194 format => '',
195 read_only => '',
196 },
197 'save_metafiles_as_png' => {
198 datatype => 'boolean',
199 base_name => 'SaveMetafilesAsPng',
200 description => 'True to convert all metafiles used in a presentation to the PNG images.',
201 format => '',
202 read_only => '',
203 },
204 'password' => {
205 datatype => 'string',
206 base_name => 'Password',
207 description => 'Setting user password to protect the PDF document. ',
208 format => '',
209 read_only => '',
210 },
211 'embed_true_type_fonts_for_ascii' => {
212 datatype => 'boolean',
213 base_name => 'EmbedTrueTypeFontsForASCII',
214 description => 'Determines if Aspose.Slides will embed common fonts for ASCII (33..127 code range) text. Fonts for character codes greater than 127 are always embedded. Common fonts list includes PDF's base 14 fonts and additional user specified fonts.',
215 format => '',
216 read_only => '',
217 },
218 'additional_common_font_families' => {
219 datatype => 'ARRAY[string]',
220 base_name => 'AdditionalCommonFontFamilies',
221 description => 'Returns or sets an array of user-defined names of font families which Aspose.Slides should consider common.',
222 format => '',
223 read_only => '',
224 },
225 'slides_layout_options' => {
226 datatype => 'SlidesLayoutOptions',
227 base_name => 'SlidesLayoutOptions',
228 description => 'Slides layouting options',
229 format => '',
230 read_only => '',
231 },
232 'image_transparent_color' => {
233 datatype => 'string',
234 base_name => 'ImageTransparentColor',
235 description => 'Image transparent color.',
236 format => '',
237 read_only => '',
238 },
239 'apply_image_transparent' => {
240 datatype => 'boolean',
241 base_name => 'ApplyImageTransparent',
242 description => 'True to apply specified ImageTransparentColor to an image.',
243 format => '',
244 read_only => '',
245 },
246 'access_permissions' => {
247 datatype => 'AccessPermissions',
248 base_name => 'AccessPermissions',
249 description => 'Access permissions that should be granted when the document is opened with user access. Default is AccessPermissions.None. ',
250 format => '',
251 read_only => '',
252 },
253 'hide_ink' => {
254 datatype => 'boolean',
255 base_name => 'HideInk',
256 description => 'True to hide Ink elements in exported document.',
257 format => '',
258 read_only => '',
259 },
260 'interpret_mask_op_as_opacity' => {
261 datatype => 'boolean',
262 base_name => 'InterpretMaskOpAsOpacity',
263 description => 'True to use ROP operation or Opacity for rendering brush.',
264 format => '',
265 read_only => '',
266 },
267 'rasterize_unsupported_font_styles' => {
268 datatype => 'boolean',
269 base_name => 'RasterizeUnsupportedFontStyles',
270 description => 'True if text should be rasterized as a bitmap and saved to PDF when the font does not support bold styling. This approach can enhance the quality of text in the resulting PDF for certain fonts.',
271 format => '',
272 read_only => '',
273 },
274 'include_ole_data' => {
275 datatype => 'boolean',
276 base_name => 'IncludeOleData',
277 description => 'True to convert all OLE data from the presentation to embedded files in the resulting PDF.',
278 format => '',
279 read_only => '',
280 },
281 });
282  
283 __PACKAGE__->swagger_types( {
284 'default_regular_font' => 'string',
285 'delete_embedded_binary_objects' => 'boolean',
286 'gradient_style' => 'string',
287 'font_fallback_rules' => 'ARRAY[FontFallbackRule]',
288 'font_subst_rules' => 'ARRAY[FontSubstRule]',
289 'skip_java_script_links' => 'boolean',
290 'format' => 'string',
291 'text_compression' => 'string',
292 'embed_full_fonts' => 'boolean',
293 'compliance' => 'string',
294 'sufficient_resolution' => 'double',
295 'jpeg_quality' => 'int',
296 'draw_slides_frame' => 'boolean',
297 'show_hidden_slides' => 'boolean',
298 'save_metafiles_as_png' => 'boolean',
299 'password' => 'string',
300 'embed_true_type_fonts_for_ascii' => 'boolean',
301 'additional_common_font_families' => 'ARRAY[string]',
302 'slides_layout_options' => 'SlidesLayoutOptions',
303 'image_transparent_color' => 'string',
304 'apply_image_transparent' => 'boolean',
305 'access_permissions' => 'AccessPermissions',
306 'hide_ink' => 'boolean',
307 'interpret_mask_op_as_opacity' => 'boolean',
308 'rasterize_unsupported_font_styles' => 'boolean',
309 'include_ole_data' => 'boolean'
310 } );
311  
312 __PACKAGE__->attribute_map( {
313 'default_regular_font' => 'DefaultRegularFont',
314 'delete_embedded_binary_objects' => 'DeleteEmbeddedBinaryObjects',
315 'gradient_style' => 'GradientStyle',
316 'font_fallback_rules' => 'FontFallbackRules',
317 'font_subst_rules' => 'FontSubstRules',
318 'skip_java_script_links' => 'SkipJavaScriptLinks',
319 'format' => 'Format',
320 'text_compression' => 'TextCompression',
321 'embed_full_fonts' => 'EmbedFullFonts',
322 'compliance' => 'Compliance',
323 'sufficient_resolution' => 'SufficientResolution',
324 'jpeg_quality' => 'JpegQuality',
325 'draw_slides_frame' => 'DrawSlidesFrame',
326 'show_hidden_slides' => 'ShowHiddenSlides',
327 'save_metafiles_as_png' => 'SaveMetafilesAsPng',
328 'password' => 'Password',
329 'embed_true_type_fonts_for_ascii' => 'EmbedTrueTypeFontsForASCII',
330 'additional_common_font_families' => 'AdditionalCommonFontFamilies',
331 'slides_layout_options' => 'SlidesLayoutOptions',
332 'image_transparent_color' => 'ImageTransparentColor',
333 'apply_image_transparent' => 'ApplyImageTransparent',
334 'access_permissions' => 'AccessPermissions',
335 'hide_ink' => 'HideInk',
336 'interpret_mask_op_as_opacity' => 'InterpretMaskOpAsOpacity',
337 'rasterize_unsupported_font_styles' => 'RasterizeUnsupportedFontStyles',
338 'include_ole_data' => 'IncludeOleData'
339 } );
340  
341 __PACKAGE__->mk_accessors(keys %{__PACKAGE__->attribute_map});
342  
343  
344 1;