| 1 | package AsposePdfCloud::PdfApi; | ||||||||||
| 2 | |||||||||||
| 3 | 1 | require 5.6.0; | |||||||||
| 4 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 1 | ▶ | use utf8; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 1 | ▶ | use Exporter; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 1 | ▶ | use Carp qw( croak ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | 1 | ▶ | use Log::Any qw($log); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | 1 | ▶ | use File::Slurp; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | |||||||||||
| 12 | 1 | ▶ | use AsposePdfCloud::ApiClient; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 13 | 1 | ▶ | use AsposePdfCloud::Configuration; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 14 | |||||||||||
| 15 | 1 | my $VERSION = '1.01'; | |||||||||
| 16 | |||||||||||
| 17 | sub new { | ||||||||||
| 18 | 0 | ▶ | my $class = shift; | ||||||||
|
Subroutine
new: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 19 | 0 | ▶ | my $default_api_client = $AsposePdfCloud::Configuration::api_client ? $AsposePdfCloud::Configuration::api_client : | ||||||||
|
Branch: 1 branch
| |||||||||||
| 20 | AsposePdfCloud::ApiClient->new; | ||||||||||
| 21 | 0 | my (%self) = ( | |||||||||
| 22 | 'api_client' => $default_api_client, | ||||||||||
| 23 | @_ | ||||||||||
| 24 | ); | ||||||||||
| 25 | |||||||||||
| 26 | #my $self = { | ||||||||||
| 27 | # #api_client => $options->{api_client} | ||||||||||
| 28 | # api_client => $default_api_client | ||||||||||
| 29 | #}; | ||||||||||
| 30 | |||||||||||
| 31 | 0 | bless \%self, $class; | |||||||||
| 32 | |||||||||||
| 33 | } | ||||||||||
| 34 | |||||||||||
| 35 | # | ||||||||||
| 36 | # PutConvertDocument | ||||||||||
| 37 | # | ||||||||||
| 38 | # Convert document from request content to format specified. | ||||||||||
| 39 | # | ||||||||||
| 40 | # @param String $format The format to convert. (optional) | ||||||||||
| 41 | # @param String $url (optional) | ||||||||||
| 42 | # @param String $outPath Path to save result (optional) | ||||||||||
| 43 | # @param File $file (required) | ||||||||||
| 44 | # @return ResponseMessage | ||||||||||
| 45 | # | ||||||||||
| 46 | sub PutConvertDocument { | ||||||||||
| 47 | 0 | ▶ | my ($self, %args) = @_; | ||||||||
|
Subroutine
PutConvertDocument: not called CC=8 SCAR=42.8
Pod
undocumented
| |||||||||||
| 48 | |||||||||||
| 49 | |||||||||||
| 50 | # parse inputs | ||||||||||
| 51 | 0 | my $_resource_path = '/pdf/convert/?appSid={appSid}&toFormat={toFormat}&url={url}&outPath={outPath}'; | |||||||||
| 52 | |||||||||||
| 53 | 0 | $_resource_path =~ s/\Q&\E/&/g; | |||||||||
| 54 | 0 | $_resource_path =~ s/\Q\/?\E/?/g; | |||||||||
| 55 | 0 | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | |||||||||
| 56 | 0 | $_resource_path =~ s/\Q{path}\E/{Path}/g; | |||||||||
| 57 | |||||||||||
| 58 | 0 | my $_method = 'PUT'; | |||||||||
| 59 | 0 | my $query_params = {}; | |||||||||
| 60 | 0 | my $header_params = {}; | |||||||||
| 61 | 0 | my $form_params = {}; | |||||||||
| 62 | |||||||||||
| 63 | # 'Accept' and 'Content-Type' header | ||||||||||
| 64 | 0 | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/octet-stream'); | |||||||||
| 65 | 0 | ▶ | if ($_header_accept) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 66 | 0 | $header_params->{'Accept'} = $_header_accept; | |||||||||
| 67 | } | ||||||||||
| 68 | 0 | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('multipart/form-data'); | |||||||||
| 69 | |||||||||||
| 70 | # query params | ||||||||||
| 71 | 0 | ▶ | if ( exists $args{'format'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 72 | 0 | $_resource_path =~ s/\Q{format}\E/$args{'format'}/g; | |||||||||
| 73 | }else{ | ||||||||||
| 74 | 0 | $_resource_path =~ s/[?&]format.*?(?=&|\?|$)//g; | |||||||||
| 75 | }# query params | ||||||||||
| 76 | 0 | ▶ | if ( exists $args{'url'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 77 | 0 | $_resource_path =~ s/\Q{url}\E/$args{'url'}/g; | |||||||||
| 78 | }else{ | ||||||||||
| 79 | 0 | $_resource_path =~ s/[?&]url.*?(?=&|\?|$)//g; | |||||||||
| 80 | }# query params | ||||||||||
| 81 | 0 | ▶ | if ( exists $args{'outPath'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 82 | 0 | $_resource_path =~ s/\Q{outPath}\E/$args{'outPath'}/g; | |||||||||
| 83 | }else{ | ||||||||||
| 84 | 0 | $_resource_path =~ s/[?&]outPath.*?(?=&|\?|$)//g; | |||||||||
| 85 | } | ||||||||||
| 86 | |||||||||||
| 87 | |||||||||||
| 88 | 0 | my $_body_data; | |||||||||
| 89 | # form params | ||||||||||
| 90 | 0 | ▶ | if ( exists $args{'file'} ) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 91 | |||||||||||
| 92 | 0 | $_body_data = read_file( $args{'file'} , binmode => ':raw' ); | |||||||||
| 93 | |||||||||||
| 94 | |||||||||||
| 95 | } | ||||||||||
| 96 | |||||||||||
| 97 | |||||||||||
| 98 | |||||||||||
| 99 | # authentication setting, if any | ||||||||||
| 100 | 0 | my $auth_settings = []; | |||||||||
| 101 | |||||||||||
| 102 | # make the API Call | ||||||||||
| 103 | 0 | my $response = $self->{api_client}->call_api($_resource_path, $_method, | |||||||||
| 104 | $query_params, $form_params, | ||||||||||
| 105 | $header_params, $_body_data, $auth_settings); | ||||||||||
| 106 | 0 | ▶ | if (!$response) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 107 | 0 | return; | |||||||||
| 108 | } | ||||||||||
| 109 | |||||||||||
| 110 | 0 | ▶ | if($AsposePdfCloud::Configuration::debug){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 111 | 0 | print "\nResponse Content: ".$response->content; | |||||||||
| 112 | } | ||||||||||
| 113 | |||||||||||
| 114 | 0 | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'ResponseMessage', $response->header('content-type')); | |||||||||
| 115 | 0 | return $_response_object; | |||||||||
| 116 | |||||||||||
| 117 | } | ||||||||||
| 118 | # | ||||||||||
| 119 | # GetDocument | ||||||||||
| 120 | # | ||||||||||
| 121 | # Read common document info. | ||||||||||
| 122 | # | ||||||||||
| 123 | # @param String $name The document name. (required) | ||||||||||
| 124 | # @param String $storage The document storage. (optional) | ||||||||||
| 125 | # @param String $folder The document folder. (optional) | ||||||||||
| 126 | # @return ResponseMessage | ||||||||||
| 127 | # | ||||||||||
| 128 | sub GetDocument { | ||||||||||
| 129 | 0 | ▶ | my ($self, %args) = @_; | ||||||||
|
Subroutine
GetDocument: not called CC=8 SCAR=42.8
Pod
undocumented
| |||||||||||
| 130 | |||||||||||
| 131 | |||||||||||
| 132 | # verify the required parameter 'name' is set | ||||||||||
| 133 | 0 | ▶ | unless (exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 134 | 0 | croak("Missing the required parameter 'name' when calling GetDocument"); | |||||||||
| 135 | } | ||||||||||
| 136 | |||||||||||
| 137 | |||||||||||
| 138 | # parse inputs | ||||||||||
| 139 | 0 | my $_resource_path = '/pdf/{name}/?appSid={appSid}&storage={storage}&folder={folder}'; | |||||||||
| 140 | |||||||||||
| 141 | 0 | $_resource_path =~ s/\Q&\E/&/g; | |||||||||
| 142 | 0 | $_resource_path =~ s/\Q\/?\E/?/g; | |||||||||
| 143 | 0 | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | |||||||||
| 144 | 0 | $_resource_path =~ s/\Q{path}\E/{Path}/g; | |||||||||
| 145 | |||||||||||
| 146 | 0 | my $_method = 'GET'; | |||||||||
| 147 | 0 | my $query_params = {}; | |||||||||
| 148 | 0 | my $header_params = {}; | |||||||||
| 149 | 0 | my $form_params = {}; | |||||||||
| 150 | |||||||||||
| 151 | # 'Accept' and 'Content-Type' header | ||||||||||
| 152 | 0 | my $_header_accept = $self->{api_client}->select_header_accept('application/json'); | |||||||||
| 153 | 0 | ▶ | if ($_header_accept) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 154 | 0 | $header_params->{'Accept'} = $_header_accept; | |||||||||
| 155 | } | ||||||||||
| 156 | 0 | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | |||||||||
| 157 | |||||||||||
| 158 | # query params | ||||||||||
| 159 | 0 | ▶ | if ( exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 160 | 0 | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | |||||||||
| 161 | }else{ | ||||||||||
| 162 | 0 | $_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; | |||||||||
| 163 | }# query params | ||||||||||
| 164 | 0 | ▶ | if ( exists $args{'storage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 165 | 0 | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | |||||||||
| 166 | }else{ | ||||||||||
| 167 | 0 | $_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; | |||||||||
| 168 | }# query params | ||||||||||
| 169 | 0 | ▶ | if ( exists $args{'folder'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 170 | 0 | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | |||||||||
| 171 | }else{ | ||||||||||
| 172 | 0 | $_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; | |||||||||
| 173 | } | ||||||||||
| 174 | |||||||||||
| 175 | |||||||||||
| 176 | 0 | my $_body_data; | |||||||||
| 177 | |||||||||||
| 178 | |||||||||||
| 179 | |||||||||||
| 180 | |||||||||||
| 181 | # authentication setting, if any | ||||||||||
| 182 | 0 | my $auth_settings = []; | |||||||||
| 183 | |||||||||||
| 184 | # make the API Call | ||||||||||
| 185 | 0 | my $response = $self->{api_client}->call_api($_resource_path, $_method, | |||||||||
| 186 | $query_params, $form_params, | ||||||||||
| 187 | $header_params, $_body_data, $auth_settings); | ||||||||||
| 188 | 0 | ▶ | if (!$response) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 189 | 0 | return; | |||||||||
| 190 | } | ||||||||||
| 191 | |||||||||||
| 192 | 0 | ▶ | if($AsposePdfCloud::Configuration::debug){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 193 | 0 | print "\nResponse Content: ".$response->content; | |||||||||
| 194 | } | ||||||||||
| 195 | |||||||||||
| 196 | 0 | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'DocumentResponse', $response->header('content-type')); | |||||||||
| 197 | 0 | return $_response_object; | |||||||||
| 198 | |||||||||||
| 199 | } | ||||||||||
| 200 | # | ||||||||||
| 201 | # PutCreateDocument | ||||||||||
| 202 | # | ||||||||||
| 203 | # Create new document. | ||||||||||
| 204 | # | ||||||||||
| 205 | # @param String $name The new document name. (required) | ||||||||||
| 206 | # @param String $templateFile The template file server path if defined. (optional) | ||||||||||
| 207 | # @param String $dataFile The data file path (for xml template only). (optional) | ||||||||||
| 208 | # @param String $templateType The template type, can be xml or html. (optional) | ||||||||||
| 209 | # @param String $storage The document storage. (optional) | ||||||||||
| 210 | # @param String $folder The new document folder. (optional) | ||||||||||
| 211 | # @return DocumentResponse | ||||||||||
| 212 | # | ||||||||||
| 213 | sub PutCreateDocument { | ||||||||||
| 214 | 0 | ▶ | my ($self, %args) = @_; | ||||||||
|
Subroutine
PutCreateDocument: not called CC=11 SCAR=48.8
Pod
undocumented
| |||||||||||
| 215 | |||||||||||
| 216 | |||||||||||
| 217 | # verify the required parameter 'name' is set | ||||||||||
| 218 | 0 | ▶ | unless (exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 219 | 0 | croak("Missing the required parameter 'name' when calling PutCreateDocument"); | |||||||||
| 220 | } | ||||||||||
| 221 | |||||||||||
| 222 | |||||||||||
| 223 | # parse inputs | ||||||||||
| 224 | 0 | my $_resource_path = '/pdf/{name}/?appSid={appSid}&templateFile={templateFile}&dataFile={dataFile}&templateType={templateType}&storage={storage}&folder={folder}'; | |||||||||
| 225 | |||||||||||
| 226 | 0 | $_resource_path =~ s/\Q&\E/&/g; | |||||||||
| 227 | 0 | $_resource_path =~ s/\Q\/?\E/?/g; | |||||||||
| 228 | 0 | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | |||||||||
| 229 | 0 | $_resource_path =~ s/\Q{path}\E/{Path}/g; | |||||||||
| 230 | |||||||||||
| 231 | 0 | my $_method = 'PUT'; | |||||||||
| 232 | 0 | my $query_params = {}; | |||||||||
| 233 | 0 | my $header_params = {}; | |||||||||
| 234 | 0 | my $form_params = {}; | |||||||||
| 235 | |||||||||||
| 236 | # 'Accept' and 'Content-Type' header | ||||||||||
| 237 | 0 | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | |||||||||
| 238 | 0 | ▶ | if ($_header_accept) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 239 | 0 | $header_params->{'Accept'} = $_header_accept; | |||||||||
| 240 | } | ||||||||||
| 241 | 0 | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | |||||||||
| 242 | |||||||||||
| 243 | # query params | ||||||||||
| 244 | 0 | ▶ | if ( exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 245 | 0 | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | |||||||||
| 246 | }else{ | ||||||||||
| 247 | 0 | $_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; | |||||||||
| 248 | }# query params | ||||||||||
| 249 | 0 | ▶ | if ( exists $args{'templateFile'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 250 | 0 | $_resource_path =~ s/\Q{templateFile}\E/$args{'templateFile'}/g; | |||||||||
| 251 | }else{ | ||||||||||
| 252 | 0 | $_resource_path =~ s/[?&]templateFile.*?(?=&|\?|$)//g; | |||||||||
| 253 | }# query params | ||||||||||
| 254 | 0 | ▶ | if ( exists $args{'dataFile'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 255 | 0 | $_resource_path =~ s/\Q{dataFile}\E/$args{'dataFile'}/g; | |||||||||
| 256 | }else{ | ||||||||||
| 257 | 0 | $_resource_path =~ s/[?&]dataFile.*?(?=&|\?|$)//g; | |||||||||
| 258 | }# query params | ||||||||||
| 259 | 0 | ▶ | if ( exists $args{'templateType'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 260 | 0 | $_resource_path =~ s/\Q{templateType}\E/$args{'templateType'}/g; | |||||||||
| 261 | }else{ | ||||||||||
| 262 | 0 | $_resource_path =~ s/[?&]templateType.*?(?=&|\?|$)//g; | |||||||||
| 263 | }# query params | ||||||||||
| 264 | 0 | ▶ | if ( exists $args{'storage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 265 | 0 | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | |||||||||
| 266 | }else{ | ||||||||||
| 267 | 0 | $_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; | |||||||||
| 268 | }# query params | ||||||||||
| 269 | 0 | ▶ | if ( exists $args{'folder'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 270 | 0 | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | |||||||||
| 271 | }else{ | ||||||||||
| 272 | 0 | $_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; | |||||||||
| 273 | } | ||||||||||
| 274 | |||||||||||
| 275 | |||||||||||
| 276 | 0 | my $_body_data; | |||||||||
| 277 | |||||||||||
| 278 | |||||||||||
| 279 | |||||||||||
| 280 | |||||||||||
| 281 | # authentication setting, if any | ||||||||||
| 282 | 0 | my $auth_settings = []; | |||||||||
| 283 | |||||||||||
| 284 | # make the API Call | ||||||||||
| 285 | 0 | my $response = $self->{api_client}->call_api($_resource_path, $_method, | |||||||||
| 286 | $query_params, $form_params, | ||||||||||
| 287 | $header_params, $_body_data, $auth_settings); | ||||||||||
| 288 | 0 | ▶ | if (!$response) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 289 | 0 | return; | |||||||||
| 290 | } | ||||||||||
| 291 | |||||||||||
| 292 | 0 | ▶ | if($AsposePdfCloud::Configuration::debug){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 293 | 0 | print "\nResponse Content: ".$response->content; | |||||||||
| 294 | } | ||||||||||
| 295 | |||||||||||
| 296 | 0 | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'DocumentResponse', $response->header('content-type')); | |||||||||
| 297 | 0 | return $_response_object; | |||||||||
| 298 | |||||||||||
| 299 | } | ||||||||||
| 300 | # | ||||||||||
| 301 | # GetDocumentWithFormat | ||||||||||
| 302 | # | ||||||||||
| 303 | # Read common document info or convert to some format if the format specified. | ||||||||||
| 304 | # | ||||||||||
| 305 | # @param String $name The document name. (required) | ||||||||||
| 306 | # @param String $format The format to convert. (required) | ||||||||||
| 307 | # @param String $storage The document storage. (optional) | ||||||||||
| 308 | # @param String $folder The document folder. (optional) | ||||||||||
| 309 | # @param String $outPath Path to save result (optional) | ||||||||||
| 310 | # @return ResponseMessage | ||||||||||
| 311 | # | ||||||||||
| 312 | sub GetDocumentWithFormat { | ||||||||||
| 313 | 0 | ▶ | my ($self, %args) = @_; | ||||||||
|
Subroutine
GetDocumentWithFormat: not called CC=11 SCAR=48.8
Pod
undocumented
| |||||||||||
| 314 | |||||||||||
| 315 | |||||||||||
| 316 | # verify the required parameter 'name' is set | ||||||||||
| 317 | 0 | ▶ | unless (exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 318 | 0 | croak("Missing the required parameter 'name' when calling GetDocumentWithFormat"); | |||||||||
| 319 | } | ||||||||||
| 320 | |||||||||||
| 321 | # verify the required parameter 'format' is set | ||||||||||
| 322 | 0 | ▶ | unless (exists $args{'format'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 323 | 0 | croak("Missing the required parameter 'format' when calling GetDocumentWithFormat"); | |||||||||
| 324 | } | ||||||||||
| 325 | |||||||||||
| 326 | |||||||||||
| 327 | # parse inputs | ||||||||||
| 328 | 0 | my $_resource_path = '/pdf/{name}/?appSid={appSid}&toFormat={toFormat}&storage={storage}&folder={folder}&outPath={outPath}'; | |||||||||
| 329 | |||||||||||
| 330 | 0 | $_resource_path =~ s/\Q&\E/&/g; | |||||||||
| 331 | 0 | $_resource_path =~ s/\Q\/?\E/?/g; | |||||||||
| 332 | 0 | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | |||||||||
| 333 | 0 | $_resource_path =~ s/\Q{path}\E/{Path}/g; | |||||||||
| 334 | |||||||||||
| 335 | 0 | my $_method = 'GET'; | |||||||||
| 336 | 0 | my $query_params = {}; | |||||||||
| 337 | 0 | my $header_params = {}; | |||||||||
| 338 | 0 | my $form_params = {}; | |||||||||
| 339 | |||||||||||
| 340 | # 'Accept' and 'Content-Type' header | ||||||||||
| 341 | 0 | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/octet-stream'); | |||||||||
| 342 | 0 | ▶ | if ($_header_accept) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 343 | 0 | $header_params->{'Accept'} = $_header_accept; | |||||||||
| 344 | } | ||||||||||
| 345 | 0 | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | |||||||||
| 346 | |||||||||||
| 347 | # query params | ||||||||||
| 348 | 0 | ▶ | if ( exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 349 | 0 | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | |||||||||
| 350 | }else{ | ||||||||||
| 351 | 0 | $_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; | |||||||||
| 352 | }# query params | ||||||||||
| 353 | 0 | ▶ | if ( exists $args{'format'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 354 | 0 | $_resource_path =~ s/\Q{format}\E/$args{'format'}/g; | |||||||||
| 355 | }else{ | ||||||||||
| 356 | 0 | $_resource_path =~ s/[?&]format.*?(?=&|\?|$)//g; | |||||||||
| 357 | }# query params | ||||||||||
| 358 | 0 | ▶ | if ( exists $args{'storage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 359 | 0 | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | |||||||||
| 360 | }else{ | ||||||||||
| 361 | 0 | $_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; | |||||||||
| 362 | }# query params | ||||||||||
| 363 | 0 | ▶ | if ( exists $args{'folder'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 364 | 0 | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | |||||||||
| 365 | }else{ | ||||||||||
| 366 | 0 | $_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; | |||||||||
| 367 | }# query params | ||||||||||
| 368 | 0 | ▶ | if ( exists $args{'outPath'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 369 | 0 | $_resource_path =~ s/\Q{outPath}\E/$args{'outPath'}/g; | |||||||||
| 370 | }else{ | ||||||||||
| 371 | 0 | $_resource_path =~ s/[?&]outPath.*?(?=&|\?|$)//g; | |||||||||
| 372 | } | ||||||||||
| 373 | |||||||||||
| 374 | |||||||||||
| 375 | 0 | my $_body_data; | |||||||||
| 376 | |||||||||||
| 377 | |||||||||||
| 378 | |||||||||||
| 379 | |||||||||||
| 380 | # authentication setting, if any | ||||||||||
| 381 | 0 | my $auth_settings = []; | |||||||||
| 382 | |||||||||||
| 383 | # make the API Call | ||||||||||
| 384 | 0 | my $response = $self->{api_client}->call_api($_resource_path, $_method, | |||||||||
| 385 | $query_params, $form_params, | ||||||||||
| 386 | $header_params, $_body_data, $auth_settings); | ||||||||||
| 387 | 0 | ▶ | if (!$response) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 388 | 0 | return; | |||||||||
| 389 | } | ||||||||||
| 390 | |||||||||||
| 391 | 0 | ▶ | if($AsposePdfCloud::Configuration::debug){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 392 | 0 | print "\nResponse Content: ".$response->content; | |||||||||
| 393 | } | ||||||||||
| 394 | |||||||||||
| 395 | 0 | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'ResponseMessage', $response->header('content-type')); | |||||||||
| 396 | 0 | return $_response_object; | |||||||||
| 397 | |||||||||||
| 398 | } | ||||||||||
| 399 | # | ||||||||||
| 400 | # PutDocumentSaveAsTiff | ||||||||||
| 401 | # | ||||||||||
| 402 | # Save document as Tiff image. | ||||||||||
| 403 | # | ||||||||||
| 404 | # @param String $name The document name. (required) | ||||||||||
| 405 | # @param String $resultFile The resulting file. (optional) | ||||||||||
| 406 | # @param String $brightness The image brightness. (optional) | ||||||||||
| 407 | # @param String $compression Tiff compression. Possible values are: LZW, CCITT4, CCITT3, RLE, None. (optional) | ||||||||||
| 408 | # @param String $colorDepth Image color depth. Possible valuse are: Default, Format8bpp, Format4bpp, Format1bpp. (optional) | ||||||||||
| 409 | # @param String $leftMargin Left image margin. (optional) | ||||||||||
| 410 | # @param String $rightMargin Right image margin. (optional) | ||||||||||
| 411 | # @param String $topMargin Top image margin. (optional) | ||||||||||
| 412 | # @param String $bottomMargin Bottom image margin. (optional) | ||||||||||
| 413 | # @param String $orientation Image orientation. Possible values are: None, Landscape, Portait. (optional) | ||||||||||
| 414 | # @param Boolean $skipBlankPages Skip blank pages flag. (optional) | ||||||||||
| 415 | # @param String $width Image width. (optional) | ||||||||||
| 416 | # @param String $height Image height. (optional) | ||||||||||
| 417 | # @param String $xResolution Horizontal resolution. (optional) | ||||||||||
| 418 | # @param String $yResolution Vertical resolution. (optional) | ||||||||||
| 419 | # @param String $pageIndex Start page to export. (optional) | ||||||||||
| 420 | # @param String $pageCount Number of pages to export. (optional) | ||||||||||
| 421 | # @param String $storage The document storage. (optional) | ||||||||||
| 422 | # @param String $folder The document folder. (optional) | ||||||||||
| 423 | # @param TiffExportOptions $body with tiff export options. (required) | ||||||||||
| 424 | # @return SaaSposeResponse | ||||||||||
| 425 | # | ||||||||||
| 426 | sub PutDocumentSaveAsTiff { | ||||||||||
| 427 | 0 | ▶ | my ($self, %args) = @_; | ||||||||
|
Subroutine
PutDocumentSaveAsTiff: not called CC=26 SCAR=65.5
Pod
undocumented
| |||||||||||
| 428 | |||||||||||
| 429 | |||||||||||
| 430 | # verify the required parameter 'name' is set | ||||||||||
| 431 | 0 | ▶ | unless (exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 432 | 0 | croak("Missing the required parameter 'name' when calling PutDocumentSaveAsTiff"); | |||||||||
| 433 | } | ||||||||||
| 434 | |||||||||||
| 435 | # verify the required parameter 'body' is set | ||||||||||
| 436 | 0 | ▶ | unless (exists $args{'body'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 437 | 0 | croak("Missing the required parameter 'body' when calling PutDocumentSaveAsTiff"); | |||||||||
| 438 | } | ||||||||||
| 439 | |||||||||||
| 440 | |||||||||||
| 441 | # parse inputs | ||||||||||
| 442 | 0 | my $_resource_path = '/pdf/{name}/SaveAs/tiff/?appSid={appSid}&resultFile={resultFile}&brightness={brightness}&compression={compression}&colorDepth={colorDepth}&leftMargin={leftMargin}&rightMargin={rightMargin}&topMargin={topMargin}&bottomMargin={bottomMargin}&orientation={orientation}&skipBlankPages={skipBlankPages}&width={width}&height={height}&xResolution={xResolution}&yResolution={yResolution}&pageIndex={pageIndex}&pageCount={pageCount}&storage={storage}&folder={folder}'; | |||||||||
| 443 | |||||||||||
| 444 | 0 | $_resource_path =~ s/\Q&\E/&/g; | |||||||||
| 445 | 0 | $_resource_path =~ s/\Q\/?\E/?/g; | |||||||||
| 446 | 0 | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | |||||||||
| 447 | 0 | $_resource_path =~ s/\Q{path}\E/{Path}/g; | |||||||||
| 448 | |||||||||||
| 449 | 0 | my $_method = 'PUT'; | |||||||||
| 450 | 0 | my $query_params = {}; | |||||||||
| 451 | 0 | my $header_params = {}; | |||||||||
| 452 | 0 | my $form_params = {}; | |||||||||
| 453 | |||||||||||
| 454 | # 'Accept' and 'Content-Type' header | ||||||||||
| 455 | 0 | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | |||||||||
| 456 | 0 | ▶ | if ($_header_accept) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 457 | 0 | $header_params->{'Accept'} = $_header_accept; | |||||||||
| 458 | } | ||||||||||
| 459 | 0 | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | |||||||||
| 460 | |||||||||||
| 461 | # query params | ||||||||||
| 462 | 0 | ▶ | if ( exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 463 | 0 | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | |||||||||
| 464 | }else{ | ||||||||||
| 465 | 0 | $_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; | |||||||||
| 466 | }# query params | ||||||||||
| 467 | 0 | ▶ | if ( exists $args{'resultFile'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 468 | 0 | $_resource_path =~ s/\Q{resultFile}\E/$args{'resultFile'}/g; | |||||||||
| 469 | }else{ | ||||||||||
| 470 | 0 | $_resource_path =~ s/[?&]resultFile.*?(?=&|\?|$)//g; | |||||||||
| 471 | }# query params | ||||||||||
| 472 | 0 | ▶ | if ( exists $args{'brightness'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 473 | 0 | $_resource_path =~ s/\Q{brightness}\E/$args{'brightness'}/g; | |||||||||
| 474 | }else{ | ||||||||||
| 475 | 0 | $_resource_path =~ s/[?&]brightness.*?(?=&|\?|$)//g; | |||||||||
| 476 | }# query params | ||||||||||
| 477 | 0 | ▶ | if ( exists $args{'compression'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 478 | 0 | $_resource_path =~ s/\Q{compression}\E/$args{'compression'}/g; | |||||||||
| 479 | }else{ | ||||||||||
| 480 | 0 | $_resource_path =~ s/[?&]compression.*?(?=&|\?|$)//g; | |||||||||
| 481 | }# query params | ||||||||||
| 482 | 0 | ▶ | if ( exists $args{'colorDepth'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 483 | 0 | $_resource_path =~ s/\Q{colorDepth}\E/$args{'colorDepth'}/g; | |||||||||
| 484 | }else{ | ||||||||||
| 485 | 0 | $_resource_path =~ s/[?&]colorDepth.*?(?=&|\?|$)//g; | |||||||||
| 486 | }# query params | ||||||||||
| 487 | 0 | ▶ | if ( exists $args{'leftMargin'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 488 | 0 | $_resource_path =~ s/\Q{leftMargin}\E/$args{'leftMargin'}/g; | |||||||||
| 489 | }else{ | ||||||||||
| 490 | 0 | $_resource_path =~ s/[?&]leftMargin.*?(?=&|\?|$)//g; | |||||||||
| 491 | }# query params | ||||||||||
| 492 | 0 | ▶ | if ( exists $args{'rightMargin'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 493 | 0 | $_resource_path =~ s/\Q{rightMargin}\E/$args{'rightMargin'}/g; | |||||||||
| 494 | }else{ | ||||||||||
| 495 | 0 | $_resource_path =~ s/[?&]rightMargin.*?(?=&|\?|$)//g; | |||||||||
| 496 | }# query params | ||||||||||
| 497 | 0 | ▶ | if ( exists $args{'topMargin'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 498 | 0 | $_resource_path =~ s/\Q{topMargin}\E/$args{'topMargin'}/g; | |||||||||
| 499 | }else{ | ||||||||||
| 500 | 0 | $_resource_path =~ s/[?&]topMargin.*?(?=&|\?|$)//g; | |||||||||
| 501 | }# query params | ||||||||||
| 502 | 0 | ▶ | if ( exists $args{'bottomMargin'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 503 | 0 | $_resource_path =~ s/\Q{bottomMargin}\E/$args{'bottomMargin'}/g; | |||||||||
| 504 | }else{ | ||||||||||
| 505 | 0 | $_resource_path =~ s/[?&]bottomMargin.*?(?=&|\?|$)//g; | |||||||||
| 506 | }# query params | ||||||||||
| 507 | 0 | ▶ | if ( exists $args{'orientation'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 508 | 0 | $_resource_path =~ s/\Q{orientation}\E/$args{'orientation'}/g; | |||||||||
| 509 | }else{ | ||||||||||
| 510 | 0 | $_resource_path =~ s/[?&]orientation.*?(?=&|\?|$)//g; | |||||||||
| 511 | }# query params | ||||||||||
| 512 | 0 | ▶ | if ( exists $args{'skipBlankPages'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 513 | 0 | $_resource_path =~ s/\Q{skipBlankPages}\E/$args{'skipBlankPages'}/g; | |||||||||
| 514 | }else{ | ||||||||||
| 515 | 0 | $_resource_path =~ s/[?&]skipBlankPages.*?(?=&|\?|$)//g; | |||||||||
| 516 | }# query params | ||||||||||
| 517 | 0 | ▶ | if ( exists $args{'width'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 518 | 0 | $_resource_path =~ s/\Q{width}\E/$args{'width'}/g; | |||||||||
| 519 | }else{ | ||||||||||
| 520 | 0 | $_resource_path =~ s/[?&]width.*?(?=&|\?|$)//g; | |||||||||
| 521 | }# query params | ||||||||||
| 522 | 0 | ▶ | if ( exists $args{'height'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 523 | 0 | $_resource_path =~ s/\Q{height}\E/$args{'height'}/g; | |||||||||
| 524 | }else{ | ||||||||||
| 525 | 0 | $_resource_path =~ s/[?&]height.*?(?=&|\?|$)//g; | |||||||||
| 526 | }# query params | ||||||||||
| 527 | 0 | ▶ | if ( exists $args{'xResolution'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 528 | 0 | $_resource_path =~ s/\Q{xResolution}\E/$args{'xResolution'}/g; | |||||||||
| 529 | }else{ | ||||||||||
| 530 | 0 | $_resource_path =~ s/[?&]xResolution.*?(?=&|\?|$)//g; | |||||||||
| 531 | }# query params | ||||||||||
| 532 | 0 | ▶ | if ( exists $args{'yResolution'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 533 | 0 | $_resource_path =~ s/\Q{yResolution}\E/$args{'yResolution'}/g; | |||||||||
| 534 | }else{ | ||||||||||
| 535 | 0 | $_resource_path =~ s/[?&]yResolution.*?(?=&|\?|$)//g; | |||||||||
| 536 | }# query params | ||||||||||
| 537 | 0 | ▶ | if ( exists $args{'pageIndex'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 538 | 0 | $_resource_path =~ s/\Q{pageIndex}\E/$args{'pageIndex'}/g; | |||||||||
| 539 | }else{ | ||||||||||
| 540 | 0 | $_resource_path =~ s/[?&]pageIndex.*?(?=&|\?|$)//g; | |||||||||
| 541 | }# query params | ||||||||||
| 542 | 0 | ▶ | if ( exists $args{'pageCount'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 543 | 0 | $_resource_path =~ s/\Q{pageCount}\E/$args{'pageCount'}/g; | |||||||||
| 544 | }else{ | ||||||||||
| 545 | 0 | $_resource_path =~ s/[?&]pageCount.*?(?=&|\?|$)//g; | |||||||||
| 546 | }# query params | ||||||||||
| 547 | 0 | ▶ | if ( exists $args{'storage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 548 | 0 | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | |||||||||
| 549 | }else{ | ||||||||||
| 550 | 0 | $_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; | |||||||||
| 551 | }# query params | ||||||||||
| 552 | 0 | ▶ | if ( exists $args{'folder'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 553 | 0 | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | |||||||||
| 554 | }else{ | ||||||||||
| 555 | 0 | $_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; | |||||||||
| 556 | } | ||||||||||
| 557 | |||||||||||
| 558 | |||||||||||
| 559 | 0 | my $_body_data; | |||||||||
| 560 | |||||||||||
| 561 | |||||||||||
| 562 | # body params | ||||||||||
| 563 | 0 | ▶ | if ( exists $args{'body'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 564 | 0 | $_body_data = $args{'body'}; | |||||||||
| 565 | } | ||||||||||
| 566 | |||||||||||
| 567 | # authentication setting, if any | ||||||||||
| 568 | 0 | my $auth_settings = []; | |||||||||
| 569 | |||||||||||
| 570 | # make the API Call | ||||||||||
| 571 | 0 | my $response = $self->{api_client}->call_api($_resource_path, $_method, | |||||||||
| 572 | $query_params, $form_params, | ||||||||||
| 573 | $header_params, $_body_data, $auth_settings); | ||||||||||
| 574 | 0 | ▶ | if (!$response) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 575 | 0 | return; | |||||||||
| 576 | } | ||||||||||
| 577 | |||||||||||
| 578 | 0 | ▶ | if($AsposePdfCloud::Configuration::debug){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 579 | 0 | print "\nResponse Content: ".$response->content; | |||||||||
| 580 | } | ||||||||||
| 581 | |||||||||||
| 582 | 0 | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SaaSposeResponse', $response->header('content-type')); | |||||||||
| 583 | 0 | return $_response_object; | |||||||||
| 584 | |||||||||||
| 585 | } | ||||||||||
| 586 | # | ||||||||||
| 587 | # PostAppendDocument | ||||||||||
| 588 | # | ||||||||||
| 589 | # Append document to existing one. | ||||||||||
| 590 | # | ||||||||||
| 591 | # @param String $name The original document name. (required) | ||||||||||
| 592 | # @param String $appendFile Append file server path. (optional) | ||||||||||
| 593 | # @param String $startPage Appending start page. (optional) | ||||||||||
| 594 | # @param String $endPage Appending end page. (optional) | ||||||||||
| 595 | # @param String $storage The documents storage. (optional) | ||||||||||
| 596 | # @param String $folder The original document folder. (optional) | ||||||||||
| 597 | # @param AppendDocument $body with the append document data. (required) | ||||||||||
| 598 | # @return DocumentResponse | ||||||||||
| 599 | # | ||||||||||
| 600 | sub PostAppendDocument { | ||||||||||
| 601 | 0 | ▶ | my ($self, %args) = @_; | ||||||||
|
Subroutine
PostAppendDocument: not called CC=13 SCAR=52.0
Pod
undocumented
| |||||||||||
| 602 | |||||||||||
| 603 | |||||||||||
| 604 | # verify the required parameter 'name' is set | ||||||||||
| 605 | 0 | ▶ | unless (exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 606 | 0 | croak("Missing the required parameter 'name' when calling PostAppendDocument"); | |||||||||
| 607 | } | ||||||||||
| 608 | |||||||||||
| 609 | # verify the required parameter 'body' is set | ||||||||||
| 610 | 0 | ▶ | unless (exists $args{'body'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 611 | 0 | croak("Missing the required parameter 'body' when calling PostAppendDocument"); | |||||||||
| 612 | } | ||||||||||
| 613 | |||||||||||
| 614 | |||||||||||
| 615 | # parse inputs | ||||||||||
| 616 | 0 | my $_resource_path = '/pdf/{name}/appendDocument/?appSid={appSid}&appendFile={appendFile}&startPage={startPage}&endPage={endPage}&storage={storage}&folder={folder}'; | |||||||||
| 617 | |||||||||||
| 618 | 0 | $_resource_path =~ s/\Q&\E/&/g; | |||||||||
| 619 | 0 | $_resource_path =~ s/\Q\/?\E/?/g; | |||||||||
| 620 | 0 | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | |||||||||
| 621 | 0 | $_resource_path =~ s/\Q{path}\E/{Path}/g; | |||||||||
| 622 | |||||||||||
| 623 | 0 | my $_method = 'POST'; | |||||||||
| 624 | 0 | my $query_params = {}; | |||||||||
| 625 | 0 | my $header_params = {}; | |||||||||
| 626 | 0 | my $form_params = {}; | |||||||||
| 627 | |||||||||||
| 628 | # 'Accept' and 'Content-Type' header | ||||||||||
| 629 | 0 | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | |||||||||
| 630 | 0 | ▶ | if ($_header_accept) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 631 | 0 | $header_params->{'Accept'} = $_header_accept; | |||||||||
| 632 | } | ||||||||||
| 633 | 0 | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | |||||||||
| 634 | |||||||||||
| 635 | # query params | ||||||||||
| 636 | 0 | ▶ | if ( exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 637 | 0 | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | |||||||||
| 638 | }else{ | ||||||||||
| 639 | 0 | $_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; | |||||||||
| 640 | }# query params | ||||||||||
| 641 | 0 | ▶ | if ( exists $args{'appendFile'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 642 | 0 | $_resource_path =~ s/\Q{appendFile}\E/$args{'appendFile'}/g; | |||||||||
| 643 | }else{ | ||||||||||
| 644 | 0 | $_resource_path =~ s/[?&]appendFile.*?(?=&|\?|$)//g; | |||||||||
| 645 | }# query params | ||||||||||
| 646 | 0 | ▶ | if ( exists $args{'startPage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 647 | 0 | $_resource_path =~ s/\Q{startPage}\E/$args{'startPage'}/g; | |||||||||
| 648 | }else{ | ||||||||||
| 649 | 0 | $_resource_path =~ s/[?&]startPage.*?(?=&|\?|$)//g; | |||||||||
| 650 | }# query params | ||||||||||
| 651 | 0 | ▶ | if ( exists $args{'endPage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 652 | 0 | $_resource_path =~ s/\Q{endPage}\E/$args{'endPage'}/g; | |||||||||
| 653 | }else{ | ||||||||||
| 654 | 0 | $_resource_path =~ s/[?&]endPage.*?(?=&|\?|$)//g; | |||||||||
| 655 | }# query params | ||||||||||
| 656 | 0 | ▶ | if ( exists $args{'storage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 657 | 0 | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | |||||||||
| 658 | }else{ | ||||||||||
| 659 | 0 | $_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; | |||||||||
| 660 | }# query params | ||||||||||
| 661 | 0 | ▶ | if ( exists $args{'folder'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 662 | 0 | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | |||||||||
| 663 | }else{ | ||||||||||
| 664 | 0 | $_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; | |||||||||
| 665 | } | ||||||||||
| 666 | |||||||||||
| 667 | |||||||||||
| 668 | 0 | my $_body_data; | |||||||||
| 669 | |||||||||||
| 670 | |||||||||||
| 671 | # body params | ||||||||||
| 672 | 0 | ▶ | if ( exists $args{'body'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 673 | 0 | $_body_data = $args{'body'}; | |||||||||
| 674 | } | ||||||||||
| 675 | |||||||||||
| 676 | # authentication setting, if any | ||||||||||
| 677 | 0 | my $auth_settings = []; | |||||||||
| 678 | |||||||||||
| 679 | # make the API Call | ||||||||||
| 680 | 0 | my $response = $self->{api_client}->call_api($_resource_path, $_method, | |||||||||
| 681 | $query_params, $form_params, | ||||||||||
| 682 | $header_params, $_body_data, $auth_settings); | ||||||||||
| 683 | 0 | ▶ | if (!$response) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 684 | 0 | return; | |||||||||
| 685 | } | ||||||||||
| 686 | |||||||||||
| 687 | 0 | ▶ | if($AsposePdfCloud::Configuration::debug){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 688 | 0 | print "\nResponse Content: ".$response->content; | |||||||||
| 689 | } | ||||||||||
| 690 | |||||||||||
| 691 | 0 | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'DocumentResponse', $response->header('content-type')); | |||||||||
| 692 | 0 | return $_response_object; | |||||||||
| 693 | |||||||||||
| 694 | } | ||||||||||
| 695 | # | ||||||||||
| 696 | # GetDocumentAttachments | ||||||||||
| 697 | # | ||||||||||
| 698 | # Read document attachments info. | ||||||||||
| 699 | # | ||||||||||
| 700 | # @param String $name The document name. (required) | ||||||||||
| 701 | # @param String $storage The document storage. (optional) | ||||||||||
| 702 | # @param String $folder The document folder. (optional) | ||||||||||
| 703 | # @return AttachmentsResponse | ||||||||||
| 704 | # | ||||||||||
| 705 | sub GetDocumentAttachments { | ||||||||||
| 706 | 0 | ▶ | my ($self, %args) = @_; | ||||||||
|
Subroutine
GetDocumentAttachments: not called CC=8 SCAR=42.8
Pod
undocumented
| |||||||||||
| 707 | |||||||||||
| 708 | |||||||||||
| 709 | # verify the required parameter 'name' is set | ||||||||||
| 710 | 0 | ▶ | unless (exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 711 | 0 | croak("Missing the required parameter 'name' when calling GetDocumentAttachments"); | |||||||||
| 712 | } | ||||||||||
| 713 | |||||||||||
| 714 | |||||||||||
| 715 | # parse inputs | ||||||||||
| 716 | 0 | my $_resource_path = '/pdf/{name}/attachments/?appSid={appSid}&storage={storage}&folder={folder}'; | |||||||||
| 717 | |||||||||||
| 718 | 0 | $_resource_path =~ s/\Q&\E/&/g; | |||||||||
| 719 | 0 | $_resource_path =~ s/\Q\/?\E/?/g; | |||||||||
| 720 | 0 | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | |||||||||
| 721 | 0 | $_resource_path =~ s/\Q{path}\E/{Path}/g; | |||||||||
| 722 | |||||||||||
| 723 | 0 | my $_method = 'GET'; | |||||||||
| 724 | 0 | my $query_params = {}; | |||||||||
| 725 | 0 | my $header_params = {}; | |||||||||
| 726 | 0 | my $form_params = {}; | |||||||||
| 727 | |||||||||||
| 728 | # 'Accept' and 'Content-Type' header | ||||||||||
| 729 | 0 | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | |||||||||
| 730 | 0 | ▶ | if ($_header_accept) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 731 | 0 | $header_params->{'Accept'} = $_header_accept; | |||||||||
| 732 | } | ||||||||||
| 733 | 0 | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | |||||||||
| 734 | |||||||||||
| 735 | # query params | ||||||||||
| 736 | 0 | ▶ | if ( exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 737 | 0 | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | |||||||||
| 738 | }else{ | ||||||||||
| 739 | 0 | $_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; | |||||||||
| 740 | }# query params | ||||||||||
| 741 | 0 | ▶ | if ( exists $args{'storage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 742 | 0 | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | |||||||||
| 743 | }else{ | ||||||||||
| 744 | 0 | $_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; | |||||||||
| 745 | }# query params | ||||||||||
| 746 | 0 | ▶ | if ( exists $args{'folder'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 747 | 0 | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | |||||||||
| 748 | }else{ | ||||||||||
| 749 | 0 | $_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; | |||||||||
| 750 | } | ||||||||||
| 751 | |||||||||||
| 752 | |||||||||||
| 753 | 0 | my $_body_data; | |||||||||
| 754 | |||||||||||
| 755 | |||||||||||
| 756 | |||||||||||
| 757 | |||||||||||
| 758 | # authentication setting, if any | ||||||||||
| 759 | 0 | my $auth_settings = []; | |||||||||
| 760 | |||||||||||
| 761 | # make the API Call | ||||||||||
| 762 | 0 | my $response = $self->{api_client}->call_api($_resource_path, $_method, | |||||||||
| 763 | $query_params, $form_params, | ||||||||||
| 764 | $header_params, $_body_data, $auth_settings); | ||||||||||
| 765 | 0 | ▶ | if (!$response) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 766 | 0 | return; | |||||||||
| 767 | } | ||||||||||
| 768 | |||||||||||
| 769 | 0 | ▶ | if($AsposePdfCloud::Configuration::debug){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 770 | 0 | print "\nResponse Content: ".$response->content; | |||||||||
| 771 | } | ||||||||||
| 772 | |||||||||||
| 773 | 0 | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'AttachmentsResponse', $response->header('content-type')); | |||||||||
| 774 | 0 | return $_response_object; | |||||||||
| 775 | |||||||||||
| 776 | } | ||||||||||
| 777 | # | ||||||||||
| 778 | # GetDocumentAttachmentByIndex | ||||||||||
| 779 | # | ||||||||||
| 780 | # Read document attachment info by its index. | ||||||||||
| 781 | # | ||||||||||
| 782 | # @param String $name The document name. (required) | ||||||||||
| 783 | # @param String $attachmentIndex The attachment index. (required) | ||||||||||
| 784 | # @param String $storage The document storage. (optional) | ||||||||||
| 785 | # @param String $folder The document folder. (optional) | ||||||||||
| 786 | # @return AttachmentResponse | ||||||||||
| 787 | # | ||||||||||
| 788 | sub GetDocumentAttachmentByIndex { | ||||||||||
| 789 | 0 | ▶ | my ($self, %args) = @_; | ||||||||
|
Subroutine
GetDocumentAttachmentByIndex: not called CC=10 SCAR=47.0
Pod
undocumented
| |||||||||||
| 790 | |||||||||||
| 791 | |||||||||||
| 792 | # verify the required parameter 'name' is set | ||||||||||
| 793 | 0 | ▶ | unless (exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 794 | 0 | croak("Missing the required parameter 'name' when calling GetDocumentAttachmentByIndex"); | |||||||||
| 795 | } | ||||||||||
| 796 | |||||||||||
| 797 | # verify the required parameter 'attachmentIndex' is set | ||||||||||
| 798 | 0 | ▶ | unless (exists $args{'attachmentIndex'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 799 | 0 | croak("Missing the required parameter 'attachmentIndex' when calling GetDocumentAttachmentByIndex"); | |||||||||
| 800 | } | ||||||||||
| 801 | |||||||||||
| 802 | |||||||||||
| 803 | # parse inputs | ||||||||||
| 804 | 0 | my $_resource_path = '/pdf/{name}/attachments/{attachmentIndex}/?appSid={appSid}&storage={storage}&folder={folder}'; | |||||||||
| 805 | |||||||||||
| 806 | 0 | $_resource_path =~ s/\Q&\E/&/g; | |||||||||
| 807 | 0 | $_resource_path =~ s/\Q\/?\E/?/g; | |||||||||
| 808 | 0 | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | |||||||||
| 809 | 0 | $_resource_path =~ s/\Q{path}\E/{Path}/g; | |||||||||
| 810 | |||||||||||
| 811 | 0 | my $_method = 'GET'; | |||||||||
| 812 | 0 | my $query_params = {}; | |||||||||
| 813 | 0 | my $header_params = {}; | |||||||||
| 814 | 0 | my $form_params = {}; | |||||||||
| 815 | |||||||||||
| 816 | # 'Accept' and 'Content-Type' header | ||||||||||
| 817 | 0 | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | |||||||||
| 818 | 0 | ▶ | if ($_header_accept) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 819 | 0 | $header_params->{'Accept'} = $_header_accept; | |||||||||
| 820 | } | ||||||||||
| 821 | 0 | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | |||||||||
| 822 | |||||||||||
| 823 | # query params | ||||||||||
| 824 | 0 | ▶ | if ( exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 825 | 0 | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | |||||||||
| 826 | }else{ | ||||||||||
| 827 | 0 | $_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; | |||||||||
| 828 | }# query params | ||||||||||
| 829 | 0 | ▶ | if ( exists $args{'attachmentIndex'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 830 | 0 | $_resource_path =~ s/\Q{attachmentIndex}\E/$args{'attachmentIndex'}/g; | |||||||||
| 831 | }else{ | ||||||||||
| 832 | 0 | $_resource_path =~ s/[?&]attachmentIndex.*?(?=&|\?|$)//g; | |||||||||
| 833 | }# query params | ||||||||||
| 834 | 0 | ▶ | if ( exists $args{'storage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 835 | 0 | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | |||||||||
| 836 | }else{ | ||||||||||
| 837 | 0 | $_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; | |||||||||
| 838 | }# query params | ||||||||||
| 839 | 0 | ▶ | if ( exists $args{'folder'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 840 | 0 | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | |||||||||
| 841 | }else{ | ||||||||||
| 842 | 0 | $_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; | |||||||||
| 843 | } | ||||||||||
| 844 | |||||||||||
| 845 | |||||||||||
| 846 | 0 | my $_body_data; | |||||||||
| 847 | |||||||||||
| 848 | |||||||||||
| 849 | |||||||||||
| 850 | |||||||||||
| 851 | # authentication setting, if any | ||||||||||
| 852 | 0 | my $auth_settings = []; | |||||||||
| 853 | |||||||||||
| 854 | # make the API Call | ||||||||||
| 855 | 0 | my $response = $self->{api_client}->call_api($_resource_path, $_method, | |||||||||
| 856 | $query_params, $form_params, | ||||||||||
| 857 | $header_params, $_body_data, $auth_settings); | ||||||||||
| 858 | 0 | ▶ | if (!$response) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 859 | 0 | return; | |||||||||
| 860 | } | ||||||||||
| 861 | |||||||||||
| 862 | 0 | ▶ | if($AsposePdfCloud::Configuration::debug){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 863 | 0 | print "\nResponse Content: ".$response->content; | |||||||||
| 864 | } | ||||||||||
| 865 | |||||||||||
| 866 | 0 | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'AttachmentResponse', $response->header('content-type')); | |||||||||
| 867 | 0 | return $_response_object; | |||||||||
| 868 | |||||||||||
| 869 | } | ||||||||||
| 870 | # | ||||||||||
| 871 | # GetDownloadDocumentAttachmentByIndex | ||||||||||
| 872 | # | ||||||||||
| 873 | # Download document attachment content by its index. | ||||||||||
| 874 | # | ||||||||||
| 875 | # @param String $name The document name. (required) | ||||||||||
| 876 | # @param String $attachmentIndex The attachment index. (required) | ||||||||||
| 877 | # @param String $storage The document storage. (optional) | ||||||||||
| 878 | # @param String $folder The document folder. (optional) | ||||||||||
| 879 | # @return ResponseMessage | ||||||||||
| 880 | # | ||||||||||
| 881 | sub GetDownloadDocumentAttachmentByIndex { | ||||||||||
| 882 | 0 | ▶ | my ($self, %args) = @_; | ||||||||
|
Subroutine
GetDownloadDocumentAttachmentByIndex: not called CC=10 SCAR=47.0
Pod
undocumented
| |||||||||||
| 883 | |||||||||||
| 884 | |||||||||||
| 885 | # verify the required parameter 'name' is set | ||||||||||
| 886 | 0 | ▶ | unless (exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 887 | 0 | croak("Missing the required parameter 'name' when calling GetDownloadDocumentAttachmentByIndex"); | |||||||||
| 888 | } | ||||||||||
| 889 | |||||||||||
| 890 | # verify the required parameter 'attachmentIndex' is set | ||||||||||
| 891 | 0 | ▶ | unless (exists $args{'attachmentIndex'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 892 | 0 | croak("Missing the required parameter 'attachmentIndex' when calling GetDownloadDocumentAttachmentByIndex"); | |||||||||
| 893 | } | ||||||||||
| 894 | |||||||||||
| 895 | |||||||||||
| 896 | # parse inputs | ||||||||||
| 897 | 0 | my $_resource_path = '/pdf/{name}/attachments/{attachmentIndex}/download/?appSid={appSid}&storage={storage}&folder={folder}'; | |||||||||
| 898 | |||||||||||
| 899 | 0 | $_resource_path =~ s/\Q&\E/&/g; | |||||||||
| 900 | 0 | $_resource_path =~ s/\Q\/?\E/?/g; | |||||||||
| 901 | 0 | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | |||||||||
| 902 | 0 | $_resource_path =~ s/\Q{path}\E/{Path}/g; | |||||||||
| 903 | |||||||||||
| 904 | 0 | my $_method = 'GET'; | |||||||||
| 905 | 0 | my $query_params = {}; | |||||||||
| 906 | 0 | my $header_params = {}; | |||||||||
| 907 | 0 | my $form_params = {}; | |||||||||
| 908 | |||||||||||
| 909 | # 'Accept' and 'Content-Type' header | ||||||||||
| 910 | 0 | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/octet-stream'); | |||||||||
| 911 | 0 | ▶ | if ($_header_accept) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 912 | 0 | $header_params->{'Accept'} = $_header_accept; | |||||||||
| 913 | } | ||||||||||
| 914 | 0 | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | |||||||||
| 915 | |||||||||||
| 916 | # query params | ||||||||||
| 917 | 0 | ▶ | if ( exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 918 | 0 | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | |||||||||
| 919 | }else{ | ||||||||||
| 920 | 0 | $_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; | |||||||||
| 921 | }# query params | ||||||||||
| 922 | 0 | ▶ | if ( exists $args{'attachmentIndex'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 923 | 0 | $_resource_path =~ s/\Q{attachmentIndex}\E/$args{'attachmentIndex'}/g; | |||||||||
| 924 | }else{ | ||||||||||
| 925 | 0 | $_resource_path =~ s/[?&]attachmentIndex.*?(?=&|\?|$)//g; | |||||||||
| 926 | }# query params | ||||||||||
| 927 | 0 | ▶ | if ( exists $args{'storage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 928 | 0 | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | |||||||||
| 929 | }else{ | ||||||||||
| 930 | 0 | $_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; | |||||||||
| 931 | }# query params | ||||||||||
| 932 | 0 | ▶ | if ( exists $args{'folder'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 933 | 0 | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | |||||||||
| 934 | }else{ | ||||||||||
| 935 | 0 | $_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; | |||||||||
| 936 | } | ||||||||||
| 937 | |||||||||||
| 938 | |||||||||||
| 939 | 0 | my $_body_data; | |||||||||
| 940 | |||||||||||
| 941 | |||||||||||
| 942 | |||||||||||
| 943 | |||||||||||
| 944 | # authentication setting, if any | ||||||||||
| 945 | 0 | my $auth_settings = []; | |||||||||
| 946 | |||||||||||
| 947 | # make the API Call | ||||||||||
| 948 | 0 | my $response = $self->{api_client}->call_api($_resource_path, $_method, | |||||||||
| 949 | $query_params, $form_params, | ||||||||||
| 950 | $header_params, $_body_data, $auth_settings); | ||||||||||
| 951 | 0 | ▶ | if (!$response) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 952 | 0 | return; | |||||||||
| 953 | } | ||||||||||
| 954 | |||||||||||
| 955 | 0 | ▶ | if($AsposePdfCloud::Configuration::debug){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 956 | 0 | print "\nResponse Content: ".$response->content; | |||||||||
| 957 | } | ||||||||||
| 958 | |||||||||||
| 959 | 0 | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'ResponseMessage', $response->header('content-type')); | |||||||||
| 960 | 0 | return $_response_object; | |||||||||
| 961 | |||||||||||
| 962 | } | ||||||||||
| 963 | # | ||||||||||
| 964 | # GetDocumentBookmarks | ||||||||||
| 965 | # | ||||||||||
| 966 | # Read document bookmarks. | ||||||||||
| 967 | # | ||||||||||
| 968 | # @param String $name The document name. (required) | ||||||||||
| 969 | # @param String $storage The document storage. (optional) | ||||||||||
| 970 | # @param String $folder The document folder. (optional) | ||||||||||
| 971 | # @return BookmarksResponse | ||||||||||
| 972 | # | ||||||||||
| 973 | sub GetDocumentBookmarks { | ||||||||||
| 974 | 0 | ▶ | my ($self, %args) = @_; | ||||||||
|
Subroutine
GetDocumentBookmarks: not called CC=8 SCAR=42.8
Pod
undocumented
| |||||||||||
| 975 | |||||||||||
| 976 | |||||||||||
| 977 | # verify the required parameter 'name' is set | ||||||||||
| 978 | 0 | ▶ | unless (exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 979 | 0 | croak("Missing the required parameter 'name' when calling GetDocumentBookmarks"); | |||||||||
| 980 | } | ||||||||||
| 981 | |||||||||||
| 982 | |||||||||||
| 983 | # parse inputs | ||||||||||
| 984 | 0 | my $_resource_path = '/pdf/{name}/bookmarks/?appSid={appSid}&storage={storage}&folder={folder}'; | |||||||||
| 985 | |||||||||||
| 986 | 0 | $_resource_path =~ s/\Q&\E/&/g; | |||||||||
| 987 | 0 | $_resource_path =~ s/\Q\/?\E/?/g; | |||||||||
| 988 | 0 | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | |||||||||
| 989 | 0 | $_resource_path =~ s/\Q{path}\E/{Path}/g; | |||||||||
| 990 | |||||||||||
| 991 | 0 | my $_method = 'GET'; | |||||||||
| 992 | 0 | my $query_params = {}; | |||||||||
| 993 | 0 | my $header_params = {}; | |||||||||
| 994 | 0 | my $form_params = {}; | |||||||||
| 995 | |||||||||||
| 996 | # 'Accept' and 'Content-Type' header | ||||||||||
| 997 | 0 | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | |||||||||
| 998 | 0 | ▶ | if ($_header_accept) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 999 | 0 | $header_params->{'Accept'} = $_header_accept; | |||||||||
| 1000 | } | ||||||||||
| 1001 | 0 | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | |||||||||
| 1002 | |||||||||||
| 1003 | # query params | ||||||||||
| 1004 | 0 | ▶ | if ( exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1005 | 0 | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | |||||||||
| 1006 | }else{ | ||||||||||
| 1007 | 0 | $_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; | |||||||||
| 1008 | }# query params | ||||||||||
| 1009 | 0 | ▶ | if ( exists $args{'storage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1010 | 0 | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | |||||||||
| 1011 | }else{ | ||||||||||
| 1012 | 0 | $_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; | |||||||||
| 1013 | }# query params | ||||||||||
| 1014 | 0 | ▶ | if ( exists $args{'folder'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1015 | 0 | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | |||||||||
| 1016 | }else{ | ||||||||||
| 1017 | 0 | $_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; | |||||||||
| 1018 | } | ||||||||||
| 1019 | |||||||||||
| 1020 | |||||||||||
| 1021 | 0 | my $_body_data; | |||||||||
| 1022 | |||||||||||
| 1023 | |||||||||||
| 1024 | |||||||||||
| 1025 | |||||||||||
| 1026 | # authentication setting, if any | ||||||||||
| 1027 | 0 | my $auth_settings = []; | |||||||||
| 1028 | |||||||||||
| 1029 | # make the API Call | ||||||||||
| 1030 | 0 | my $response = $self->{api_client}->call_api($_resource_path, $_method, | |||||||||
| 1031 | $query_params, $form_params, | ||||||||||
| 1032 | $header_params, $_body_data, $auth_settings); | ||||||||||
| 1033 | 0 | ▶ | if (!$response) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1034 | 0 | return; | |||||||||
| 1035 | } | ||||||||||
| 1036 | |||||||||||
| 1037 | 0 | ▶ | if($AsposePdfCloud::Configuration::debug){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1038 | 0 | print "\nResponse Content: ".$response->content; | |||||||||
| 1039 | } | ||||||||||
| 1040 | |||||||||||
| 1041 | 0 | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'BookmarksResponse', $response->header('content-type')); | |||||||||
| 1042 | 0 | return $_response_object; | |||||||||
| 1043 | |||||||||||
| 1044 | } | ||||||||||
| 1045 | # | ||||||||||
| 1046 | # GetDocumentBookmarksChildren | ||||||||||
| 1047 | # | ||||||||||
| 1048 | # Read document bookmark/bookmarks (including children). | ||||||||||
| 1049 | # | ||||||||||
| 1050 | # @param String $name The document name. (required) | ||||||||||
| 1051 | # @param String $bookmarkPath The bookmark path. (optional) | ||||||||||
| 1052 | # @param String $storage The document storage. (optional) | ||||||||||
| 1053 | # @param String $folder The document folder. (optional) | ||||||||||
| 1054 | # @return BookmarkResponse | ||||||||||
| 1055 | # | ||||||||||
| 1056 | sub GetDocumentBookmarksChildren { | ||||||||||
| 1057 | 0 | ▶ | my ($self, %args) = @_; | ||||||||
|
Subroutine
GetDocumentBookmarksChildren: not called CC=9 SCAR=45.0
Pod
undocumented
| |||||||||||
| 1058 | |||||||||||
| 1059 | |||||||||||
| 1060 | # verify the required parameter 'name' is set | ||||||||||
| 1061 | 0 | ▶ | unless (exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1062 | 0 | croak("Missing the required parameter 'name' when calling GetDocumentBookmarksChildren"); | |||||||||
| 1063 | } | ||||||||||
| 1064 | |||||||||||
| 1065 | |||||||||||
| 1066 | # parse inputs | ||||||||||
| 1067 | 0 | my $_resource_path = '/pdf/{name}/bookmarks/{bookmarkPath}/?appSid={appSid}&storage={storage}&folder={folder}'; | |||||||||
| 1068 | |||||||||||
| 1069 | 0 | $_resource_path =~ s/\Q&\E/&/g; | |||||||||
| 1070 | 0 | $_resource_path =~ s/\Q\/?\E/?/g; | |||||||||
| 1071 | 0 | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | |||||||||
| 1072 | 0 | $_resource_path =~ s/\Q{path}\E/{Path}/g; | |||||||||
| 1073 | |||||||||||
| 1074 | 0 | my $_method = 'GET'; | |||||||||
| 1075 | 0 | my $query_params = {}; | |||||||||
| 1076 | 0 | my $header_params = {}; | |||||||||
| 1077 | 0 | my $form_params = {}; | |||||||||
| 1078 | |||||||||||
| 1079 | # 'Accept' and 'Content-Type' header | ||||||||||
| 1080 | 0 | my $_header_accept = $self->{api_client}->select_header_accept('application/json'); | |||||||||
| 1081 | 0 | ▶ | if ($_header_accept) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1082 | 0 | $header_params->{'Accept'} = $_header_accept; | |||||||||
| 1083 | } | ||||||||||
| 1084 | 0 | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | |||||||||
| 1085 | |||||||||||
| 1086 | # query params | ||||||||||
| 1087 | 0 | ▶ | if ( exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1088 | 0 | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | |||||||||
| 1089 | }else{ | ||||||||||
| 1090 | 0 | $_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; | |||||||||
| 1091 | }# query params | ||||||||||
| 1092 | 0 | ▶ | if ( exists $args{'bookmarkPath'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1093 | 0 | $_resource_path =~ s/\Q{bookmarkPath}\E/$args{'bookmarkPath'}/g; | |||||||||
| 1094 | }else{ | ||||||||||
| 1095 | 0 | $_resource_path =~ s/[?&]bookmarkPath.*?(?=&|\?|$)//g; | |||||||||
| 1096 | }# query params | ||||||||||
| 1097 | 0 | ▶ | if ( exists $args{'storage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1098 | 0 | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | |||||||||
| 1099 | }else{ | ||||||||||
| 1100 | 0 | $_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; | |||||||||
| 1101 | }# query params | ||||||||||
| 1102 | 0 | ▶ | if ( exists $args{'folder'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1103 | 0 | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | |||||||||
| 1104 | }else{ | ||||||||||
| 1105 | 0 | $_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; | |||||||||
| 1106 | } | ||||||||||
| 1107 | |||||||||||
| 1108 | |||||||||||
| 1109 | 0 | my $_body_data; | |||||||||
| 1110 | |||||||||||
| 1111 | |||||||||||
| 1112 | |||||||||||
| 1113 | |||||||||||
| 1114 | # authentication setting, if any | ||||||||||
| 1115 | 0 | my $auth_settings = []; | |||||||||
| 1116 | |||||||||||
| 1117 | # make the API Call | ||||||||||
| 1118 | 0 | my $response = $self->{api_client}->call_api($_resource_path, $_method, | |||||||||
| 1119 | $query_params, $form_params, | ||||||||||
| 1120 | $header_params, $_body_data, $auth_settings); | ||||||||||
| 1121 | 0 | ▶ | if (!$response) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1122 | 0 | return; | |||||||||
| 1123 | } | ||||||||||
| 1124 | |||||||||||
| 1125 | 0 | ▶ | if($AsposePdfCloud::Configuration::debug){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1126 | 0 | print "\nResponse Content: ".$response->content; | |||||||||
| 1127 | } | ||||||||||
| 1128 | |||||||||||
| 1129 | 0 | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'BookmarkResponse', $response->header('content-type')); | |||||||||
| 1130 | 0 | return $_response_object; | |||||||||
| 1131 | |||||||||||
| 1132 | } | ||||||||||
| 1133 | # | ||||||||||
| 1134 | # GetDocumentProperties | ||||||||||
| 1135 | # | ||||||||||
| 1136 | # Read document properties. | ||||||||||
| 1137 | # | ||||||||||
| 1138 | # @param String $name (required) | ||||||||||
| 1139 | # @param String $storage (optional) | ||||||||||
| 1140 | # @param String $folder (optional) | ||||||||||
| 1141 | # @return DocumentPropertiesResponse | ||||||||||
| 1142 | # | ||||||||||
| 1143 | sub GetDocumentProperties { | ||||||||||
| 1144 | 0 | ▶ | my ($self, %args) = @_; | ||||||||
|
Subroutine
GetDocumentProperties: not called CC=8 SCAR=42.8
Pod
undocumented
| |||||||||||
| 1145 | |||||||||||
| 1146 | |||||||||||
| 1147 | # verify the required parameter 'name' is set | ||||||||||
| 1148 | 0 | ▶ | unless (exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1149 | 0 | croak("Missing the required parameter 'name' when calling GetDocumentProperties"); | |||||||||
| 1150 | } | ||||||||||
| 1151 | |||||||||||
| 1152 | |||||||||||
| 1153 | # parse inputs | ||||||||||
| 1154 | 0 | my $_resource_path = '/pdf/{name}/documentproperties/?appSid={appSid}&storage={storage}&folder={folder}'; | |||||||||
| 1155 | |||||||||||
| 1156 | 0 | $_resource_path =~ s/\Q&\E/&/g; | |||||||||
| 1157 | 0 | $_resource_path =~ s/\Q\/?\E/?/g; | |||||||||
| 1158 | 0 | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | |||||||||
| 1159 | 0 | $_resource_path =~ s/\Q{path}\E/{Path}/g; | |||||||||
| 1160 | |||||||||||
| 1161 | 0 | my $_method = 'GET'; | |||||||||
| 1162 | 0 | my $query_params = {}; | |||||||||
| 1163 | 0 | my $header_params = {}; | |||||||||
| 1164 | 0 | my $form_params = {}; | |||||||||
| 1165 | |||||||||||
| 1166 | # 'Accept' and 'Content-Type' header | ||||||||||
| 1167 | 0 | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | |||||||||
| 1168 | 0 | ▶ | if ($_header_accept) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1169 | 0 | $header_params->{'Accept'} = $_header_accept; | |||||||||
| 1170 | } | ||||||||||
| 1171 | 0 | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | |||||||||
| 1172 | |||||||||||
| 1173 | # query params | ||||||||||
| 1174 | 0 | ▶ | if ( exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1175 | 0 | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | |||||||||
| 1176 | }else{ | ||||||||||
| 1177 | 0 | $_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; | |||||||||
| 1178 | }# query params | ||||||||||
| 1179 | 0 | ▶ | if ( exists $args{'storage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1180 | 0 | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | |||||||||
| 1181 | }else{ | ||||||||||
| 1182 | 0 | $_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; | |||||||||
| 1183 | }# query params | ||||||||||
| 1184 | 0 | ▶ | if ( exists $args{'folder'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1185 | 0 | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | |||||||||
| 1186 | }else{ | ||||||||||
| 1187 | 0 | $_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; | |||||||||
| 1188 | } | ||||||||||
| 1189 | |||||||||||
| 1190 | |||||||||||
| 1191 | 0 | my $_body_data; | |||||||||
| 1192 | |||||||||||
| 1193 | |||||||||||
| 1194 | |||||||||||
| 1195 | |||||||||||
| 1196 | # authentication setting, if any | ||||||||||
| 1197 | 0 | my $auth_settings = []; | |||||||||
| 1198 | |||||||||||
| 1199 | # make the API Call | ||||||||||
| 1200 | 0 | my $response = $self->{api_client}->call_api($_resource_path, $_method, | |||||||||
| 1201 | $query_params, $form_params, | ||||||||||
| 1202 | $header_params, $_body_data, $auth_settings); | ||||||||||
| 1203 | 0 | ▶ | if (!$response) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1204 | 0 | return; | |||||||||
| 1205 | } | ||||||||||
| 1206 | |||||||||||
| 1207 | 0 | ▶ | if($AsposePdfCloud::Configuration::debug){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1208 | 0 | print "\nResponse Content: ".$response->content; | |||||||||
| 1209 | } | ||||||||||
| 1210 | |||||||||||
| 1211 | 0 | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'DocumentPropertiesResponse', $response->header('content-type')); | |||||||||
| 1212 | 0 | return $_response_object; | |||||||||
| 1213 | |||||||||||
| 1214 | } | ||||||||||
| 1215 | # | ||||||||||
| 1216 | # DeleteProperties | ||||||||||
| 1217 | # | ||||||||||
| 1218 | # Delete document properties. | ||||||||||
| 1219 | # | ||||||||||
| 1220 | # @param String $name (required) | ||||||||||
| 1221 | # @param String $storage (optional) | ||||||||||
| 1222 | # @param String $folder (optional) | ||||||||||
| 1223 | # @return SaaSposeResponse | ||||||||||
| 1224 | # | ||||||||||
| 1225 | sub DeleteProperties { | ||||||||||
| 1226 | 0 | ▶ | my ($self, %args) = @_; | ||||||||
|
Subroutine
DeleteProperties: not called CC=8 SCAR=42.8
Pod
undocumented
| |||||||||||
| 1227 | |||||||||||
| 1228 | |||||||||||
| 1229 | # verify the required parameter 'name' is set | ||||||||||
| 1230 | 0 | ▶ | unless (exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1231 | 0 | croak("Missing the required parameter 'name' when calling DeleteProperties"); | |||||||||
| 1232 | } | ||||||||||
| 1233 | |||||||||||
| 1234 | |||||||||||
| 1235 | # parse inputs | ||||||||||
| 1236 | 0 | my $_resource_path = '/pdf/{name}/documentproperties/?appSid={appSid}&storage={storage}&folder={folder}'; | |||||||||
| 1237 | |||||||||||
| 1238 | 0 | $_resource_path =~ s/\Q&\E/&/g; | |||||||||
| 1239 | 0 | $_resource_path =~ s/\Q\/?\E/?/g; | |||||||||
| 1240 | 0 | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | |||||||||
| 1241 | 0 | $_resource_path =~ s/\Q{path}\E/{Path}/g; | |||||||||
| 1242 | |||||||||||
| 1243 | 0 | my $_method = 'DELETE'; | |||||||||
| 1244 | 0 | my $query_params = {}; | |||||||||
| 1245 | 0 | my $header_params = {}; | |||||||||
| 1246 | 0 | my $form_params = {}; | |||||||||
| 1247 | |||||||||||
| 1248 | # 'Accept' and 'Content-Type' header | ||||||||||
| 1249 | 0 | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | |||||||||
| 1250 | 0 | ▶ | if ($_header_accept) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1251 | 0 | $header_params->{'Accept'} = $_header_accept; | |||||||||
| 1252 | } | ||||||||||
| 1253 | 0 | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | |||||||||
| 1254 | |||||||||||
| 1255 | # query params | ||||||||||
| 1256 | 0 | ▶ | if ( exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1257 | 0 | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | |||||||||
| 1258 | }else{ | ||||||||||
| 1259 | 0 | $_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; | |||||||||
| 1260 | }# query params | ||||||||||
| 1261 | 0 | ▶ | if ( exists $args{'storage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1262 | 0 | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | |||||||||
| 1263 | }else{ | ||||||||||
| 1264 | 0 | $_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; | |||||||||
| 1265 | }# query params | ||||||||||
| 1266 | 0 | ▶ | if ( exists $args{'folder'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1267 | 0 | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | |||||||||
| 1268 | }else{ | ||||||||||
| 1269 | 0 | $_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; | |||||||||
| 1270 | } | ||||||||||
| 1271 | |||||||||||
| 1272 | |||||||||||
| 1273 | 0 | my $_body_data; | |||||||||
| 1274 | |||||||||||
| 1275 | |||||||||||
| 1276 | |||||||||||
| 1277 | |||||||||||
| 1278 | # authentication setting, if any | ||||||||||
| 1279 | 0 | my $auth_settings = []; | |||||||||
| 1280 | |||||||||||
| 1281 | # make the API Call | ||||||||||
| 1282 | 0 | my $response = $self->{api_client}->call_api($_resource_path, $_method, | |||||||||
| 1283 | $query_params, $form_params, | ||||||||||
| 1284 | $header_params, $_body_data, $auth_settings); | ||||||||||
| 1285 | 0 | ▶ | if (!$response) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1286 | 0 | return; | |||||||||
| 1287 | } | ||||||||||
| 1288 | |||||||||||
| 1289 | 0 | ▶ | if($AsposePdfCloud::Configuration::debug){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1290 | 0 | print "\nResponse Content: ".$response->content; | |||||||||
| 1291 | } | ||||||||||
| 1292 | |||||||||||
| 1293 | 0 | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SaaSposeResponse', $response->header('content-type')); | |||||||||
| 1294 | 0 | return $_response_object; | |||||||||
| 1295 | |||||||||||
| 1296 | } | ||||||||||
| 1297 | # | ||||||||||
| 1298 | # GetDocumentProperty | ||||||||||
| 1299 | # | ||||||||||
| 1300 | # Read document property by name. | ||||||||||
| 1301 | # | ||||||||||
| 1302 | # @param String $name (required) | ||||||||||
| 1303 | # @param String $propertyName (required) | ||||||||||
| 1304 | # @param String $storage (optional) | ||||||||||
| 1305 | # @param String $folder (optional) | ||||||||||
| 1306 | # @return DocumentPropertyResponse | ||||||||||
| 1307 | # | ||||||||||
| 1308 | sub GetDocumentProperty { | ||||||||||
| 1309 | 0 | ▶ | my ($self, %args) = @_; | ||||||||
|
Subroutine
GetDocumentProperty: not called CC=10 SCAR=47.0
Pod
undocumented
| |||||||||||
| 1310 | |||||||||||
| 1311 | |||||||||||
| 1312 | # verify the required parameter 'name' is set | ||||||||||
| 1313 | 0 | ▶ | unless (exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1314 | 0 | croak("Missing the required parameter 'name' when calling GetDocumentProperty"); | |||||||||
| 1315 | } | ||||||||||
| 1316 | |||||||||||
| 1317 | # verify the required parameter 'propertyName' is set | ||||||||||
| 1318 | 0 | ▶ | unless (exists $args{'propertyName'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1319 | 0 | croak("Missing the required parameter 'propertyName' when calling GetDocumentProperty"); | |||||||||
| 1320 | } | ||||||||||
| 1321 | |||||||||||
| 1322 | |||||||||||
| 1323 | # parse inputs | ||||||||||
| 1324 | 0 | my $_resource_path = '/pdf/{name}/documentproperties/{propertyName}/?appSid={appSid}&storage={storage}&folder={folder}'; | |||||||||
| 1325 | |||||||||||
| 1326 | 0 | $_resource_path =~ s/\Q&\E/&/g; | |||||||||
| 1327 | 0 | $_resource_path =~ s/\Q\/?\E/?/g; | |||||||||
| 1328 | 0 | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | |||||||||
| 1329 | 0 | $_resource_path =~ s/\Q{path}\E/{Path}/g; | |||||||||
| 1330 | |||||||||||
| 1331 | 0 | my $_method = 'GET'; | |||||||||
| 1332 | 0 | my $query_params = {}; | |||||||||
| 1333 | 0 | my $header_params = {}; | |||||||||
| 1334 | 0 | my $form_params = {}; | |||||||||
| 1335 | |||||||||||
| 1336 | # 'Accept' and 'Content-Type' header | ||||||||||
| 1337 | 0 | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | |||||||||
| 1338 | 0 | ▶ | if ($_header_accept) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1339 | 0 | $header_params->{'Accept'} = $_header_accept; | |||||||||
| 1340 | } | ||||||||||
| 1341 | 0 | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | |||||||||
| 1342 | |||||||||||
| 1343 | # query params | ||||||||||
| 1344 | 0 | ▶ | if ( exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1345 | 0 | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | |||||||||
| 1346 | }else{ | ||||||||||
| 1347 | 0 | $_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; | |||||||||
| 1348 | }# query params | ||||||||||
| 1349 | 0 | ▶ | if ( exists $args{'propertyName'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1350 | 0 | $_resource_path =~ s/\Q{propertyName}\E/$args{'propertyName'}/g; | |||||||||
| 1351 | }else{ | ||||||||||
| 1352 | 0 | $_resource_path =~ s/[?&]propertyName.*?(?=&|\?|$)//g; | |||||||||
| 1353 | }# query params | ||||||||||
| 1354 | 0 | ▶ | if ( exists $args{'storage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1355 | 0 | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | |||||||||
| 1356 | }else{ | ||||||||||
| 1357 | 0 | $_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; | |||||||||
| 1358 | }# query params | ||||||||||
| 1359 | 0 | ▶ | if ( exists $args{'folder'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1360 | 0 | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | |||||||||
| 1361 | }else{ | ||||||||||
| 1362 | 0 | $_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; | |||||||||
| 1363 | } | ||||||||||
| 1364 | |||||||||||
| 1365 | |||||||||||
| 1366 | 0 | my $_body_data; | |||||||||
| 1367 | |||||||||||
| 1368 | |||||||||||
| 1369 | |||||||||||
| 1370 | |||||||||||
| 1371 | # authentication setting, if any | ||||||||||
| 1372 | 0 | my $auth_settings = []; | |||||||||
| 1373 | |||||||||||
| 1374 | # make the API Call | ||||||||||
| 1375 | 0 | my $response = $self->{api_client}->call_api($_resource_path, $_method, | |||||||||
| 1376 | $query_params, $form_params, | ||||||||||
| 1377 | $header_params, $_body_data, $auth_settings); | ||||||||||
| 1378 | 0 | ▶ | if (!$response) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1379 | 0 | return; | |||||||||
| 1380 | } | ||||||||||
| 1381 | |||||||||||
| 1382 | 0 | ▶ | if($AsposePdfCloud::Configuration::debug){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1383 | 0 | print "\nResponse Content: ".$response->content; | |||||||||
| 1384 | } | ||||||||||
| 1385 | |||||||||||
| 1386 | 0 | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'DocumentPropertyResponse', $response->header('content-type')); | |||||||||
| 1387 | 0 | return $_response_object; | |||||||||
| 1388 | |||||||||||
| 1389 | } | ||||||||||
| 1390 | # | ||||||||||
| 1391 | # PutSetProperty | ||||||||||
| 1392 | # | ||||||||||
| 1393 | # Add/update document property. | ||||||||||
| 1394 | # | ||||||||||
| 1395 | # @param String $name (required) | ||||||||||
| 1396 | # @param String $propertyName (required) | ||||||||||
| 1397 | # @param String $storage (optional) | ||||||||||
| 1398 | # @param String $folder (optional) | ||||||||||
| 1399 | # @param DocumentProperty $body (required) | ||||||||||
| 1400 | # @return DocumentPropertyResponse | ||||||||||
| 1401 | # | ||||||||||
| 1402 | sub PutSetProperty { | ||||||||||
| 1403 | 0 | ▶ | my ($self, %args) = @_; | ||||||||
|
Subroutine
PutSetProperty: not called CC=12 SCAR=50.5
Pod
undocumented
| |||||||||||
| 1404 | |||||||||||
| 1405 | |||||||||||
| 1406 | # verify the required parameter 'name' is set | ||||||||||
| 1407 | 0 | ▶ | unless (exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1408 | 0 | croak("Missing the required parameter 'name' when calling PutSetProperty"); | |||||||||
| 1409 | } | ||||||||||
| 1410 | |||||||||||
| 1411 | # verify the required parameter 'propertyName' is set | ||||||||||
| 1412 | 0 | ▶ | unless (exists $args{'propertyName'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1413 | 0 | croak("Missing the required parameter 'propertyName' when calling PutSetProperty"); | |||||||||
| 1414 | } | ||||||||||
| 1415 | |||||||||||
| 1416 | # verify the required parameter 'body' is set | ||||||||||
| 1417 | 0 | ▶ | unless (exists $args{'body'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1418 | 0 | croak("Missing the required parameter 'body' when calling PutSetProperty"); | |||||||||
| 1419 | } | ||||||||||
| 1420 | |||||||||||
| 1421 | |||||||||||
| 1422 | # parse inputs | ||||||||||
| 1423 | 0 | my $_resource_path = '/pdf/{name}/documentproperties/{propertyName}/?appSid={appSid}&storage={storage}&folder={folder}'; | |||||||||
| 1424 | |||||||||||
| 1425 | 0 | $_resource_path =~ s/\Q&\E/&/g; | |||||||||
| 1426 | 0 | $_resource_path =~ s/\Q\/?\E/?/g; | |||||||||
| 1427 | 0 | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | |||||||||
| 1428 | 0 | $_resource_path =~ s/\Q{path}\E/{Path}/g; | |||||||||
| 1429 | |||||||||||
| 1430 | 0 | my $_method = 'PUT'; | |||||||||
| 1431 | 0 | my $query_params = {}; | |||||||||
| 1432 | 0 | my $header_params = {}; | |||||||||
| 1433 | 0 | my $form_params = {}; | |||||||||
| 1434 | |||||||||||
| 1435 | # 'Accept' and 'Content-Type' header | ||||||||||
| 1436 | 0 | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | |||||||||
| 1437 | 0 | ▶ | if ($_header_accept) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1438 | 0 | $header_params->{'Accept'} = $_header_accept; | |||||||||
| 1439 | } | ||||||||||
| 1440 | 0 | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | |||||||||
| 1441 | |||||||||||
| 1442 | # query params | ||||||||||
| 1443 | 0 | ▶ | if ( exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1444 | 0 | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | |||||||||
| 1445 | }else{ | ||||||||||
| 1446 | 0 | $_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; | |||||||||
| 1447 | }# query params | ||||||||||
| 1448 | 0 | ▶ | if ( exists $args{'propertyName'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1449 | 0 | $_resource_path =~ s/\Q{propertyName}\E/$args{'propertyName'}/g; | |||||||||
| 1450 | }else{ | ||||||||||
| 1451 | 0 | $_resource_path =~ s/[?&]propertyName.*?(?=&|\?|$)//g; | |||||||||
| 1452 | }# query params | ||||||||||
| 1453 | 0 | ▶ | if ( exists $args{'storage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1454 | 0 | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | |||||||||
| 1455 | }else{ | ||||||||||
| 1456 | 0 | $_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; | |||||||||
| 1457 | }# query params | ||||||||||
| 1458 | 0 | ▶ | if ( exists $args{'folder'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1459 | 0 | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | |||||||||
| 1460 | }else{ | ||||||||||
| 1461 | 0 | $_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; | |||||||||
| 1462 | } | ||||||||||
| 1463 | |||||||||||
| 1464 | |||||||||||
| 1465 | 0 | my $_body_data; | |||||||||
| 1466 | |||||||||||
| 1467 | |||||||||||
| 1468 | # body params | ||||||||||
| 1469 | 0 | ▶ | if ( exists $args{'body'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1470 | 0 | $_body_data = $args{'body'}; | |||||||||
| 1471 | } | ||||||||||
| 1472 | |||||||||||
| 1473 | # authentication setting, if any | ||||||||||
| 1474 | 0 | my $auth_settings = []; | |||||||||
| 1475 | |||||||||||
| 1476 | # make the API Call | ||||||||||
| 1477 | 0 | my $response = $self->{api_client}->call_api($_resource_path, $_method, | |||||||||
| 1478 | $query_params, $form_params, | ||||||||||
| 1479 | $header_params, $_body_data, $auth_settings); | ||||||||||
| 1480 | 0 | ▶ | if (!$response) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1481 | 0 | return; | |||||||||
| 1482 | } | ||||||||||
| 1483 | |||||||||||
| 1484 | 0 | ▶ | if($AsposePdfCloud::Configuration::debug){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1485 | 0 | print "\nResponse Content: ".$response->content; | |||||||||
| 1486 | } | ||||||||||
| 1487 | |||||||||||
| 1488 | 0 | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'DocumentPropertyResponse', $response->header('content-type')); | |||||||||
| 1489 | 0 | return $_response_object; | |||||||||
| 1490 | |||||||||||
| 1491 | } | ||||||||||
| 1492 | # | ||||||||||
| 1493 | # DeleteProperty | ||||||||||
| 1494 | # | ||||||||||
| 1495 | # Delete document property. | ||||||||||
| 1496 | # | ||||||||||
| 1497 | # @param String $name (required) | ||||||||||
| 1498 | # @param String $propertyName (required) | ||||||||||
| 1499 | # @param String $storage (optional) | ||||||||||
| 1500 | # @param String $folder (optional) | ||||||||||
| 1501 | # @return SaaSposeResponse | ||||||||||
| 1502 | # | ||||||||||
| 1503 | sub DeleteProperty { | ||||||||||
| 1504 | 0 | ▶ | my ($self, %args) = @_; | ||||||||
|
Subroutine
DeleteProperty: not called CC=10 SCAR=47.0
Pod
undocumented
| |||||||||||
| 1505 | |||||||||||
| 1506 | |||||||||||
| 1507 | # verify the required parameter 'name' is set | ||||||||||
| 1508 | 0 | ▶ | unless (exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1509 | 0 | croak("Missing the required parameter 'name' when calling DeleteProperty"); | |||||||||
| 1510 | } | ||||||||||
| 1511 | |||||||||||
| 1512 | # verify the required parameter 'propertyName' is set | ||||||||||
| 1513 | 0 | ▶ | unless (exists $args{'propertyName'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1514 | 0 | croak("Missing the required parameter 'propertyName' when calling DeleteProperty"); | |||||||||
| 1515 | } | ||||||||||
| 1516 | |||||||||||
| 1517 | |||||||||||
| 1518 | # parse inputs | ||||||||||
| 1519 | 0 | my $_resource_path = '/pdf/{name}/documentproperties/{propertyName}/?appSid={appSid}&storage={storage}&folder={folder}'; | |||||||||
| 1520 | |||||||||||
| 1521 | 0 | $_resource_path =~ s/\Q&\E/&/g; | |||||||||
| 1522 | 0 | $_resource_path =~ s/\Q\/?\E/?/g; | |||||||||
| 1523 | 0 | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | |||||||||
| 1524 | 0 | $_resource_path =~ s/\Q{path}\E/{Path}/g; | |||||||||
| 1525 | |||||||||||
| 1526 | 0 | my $_method = 'DELETE'; | |||||||||
| 1527 | 0 | my $query_params = {}; | |||||||||
| 1528 | 0 | my $header_params = {}; | |||||||||
| 1529 | 0 | my $form_params = {}; | |||||||||
| 1530 | |||||||||||
| 1531 | # 'Accept' and 'Content-Type' header | ||||||||||
| 1532 | 0 | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | |||||||||
| 1533 | 0 | ▶ | if ($_header_accept) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1534 | 0 | $header_params->{'Accept'} = $_header_accept; | |||||||||
| 1535 | } | ||||||||||
| 1536 | 0 | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | |||||||||
| 1537 | |||||||||||
| 1538 | # query params | ||||||||||
| 1539 | 0 | ▶ | if ( exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1540 | 0 | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | |||||||||
| 1541 | }else{ | ||||||||||
| 1542 | 0 | $_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; | |||||||||
| 1543 | }# query params | ||||||||||
| 1544 | 0 | ▶ | if ( exists $args{'propertyName'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1545 | 0 | $_resource_path =~ s/\Q{propertyName}\E/$args{'propertyName'}/g; | |||||||||
| 1546 | }else{ | ||||||||||
| 1547 | 0 | $_resource_path =~ s/[?&]propertyName.*?(?=&|\?|$)//g; | |||||||||
| 1548 | }# query params | ||||||||||
| 1549 | 0 | ▶ | if ( exists $args{'storage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1550 | 0 | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | |||||||||
| 1551 | }else{ | ||||||||||
| 1552 | 0 | $_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; | |||||||||
| 1553 | }# query params | ||||||||||
| 1554 | 0 | ▶ | if ( exists $args{'folder'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1555 | 0 | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | |||||||||
| 1556 | }else{ | ||||||||||
| 1557 | 0 | $_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; | |||||||||
| 1558 | } | ||||||||||
| 1559 | |||||||||||
| 1560 | |||||||||||
| 1561 | 0 | my $_body_data; | |||||||||
| 1562 | |||||||||||
| 1563 | |||||||||||
| 1564 | |||||||||||
| 1565 | |||||||||||
| 1566 | # authentication setting, if any | ||||||||||
| 1567 | 0 | my $auth_settings = []; | |||||||||
| 1568 | |||||||||||
| 1569 | # make the API Call | ||||||||||
| 1570 | 0 | my $response = $self->{api_client}->call_api($_resource_path, $_method, | |||||||||
| 1571 | $query_params, $form_params, | ||||||||||
| 1572 | $header_params, $_body_data, $auth_settings); | ||||||||||
| 1573 | 0 | ▶ | if (!$response) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1574 | 0 | return; | |||||||||
| 1575 | } | ||||||||||
| 1576 | |||||||||||
| 1577 | 0 | ▶ | if($AsposePdfCloud::Configuration::debug){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1578 | 0 | print "\nResponse Content: ".$response->content; | |||||||||
| 1579 | } | ||||||||||
| 1580 | |||||||||||
| 1581 | 0 | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SaaSposeResponse', $response->header('content-type')); | |||||||||
| 1582 | 0 | return $_response_object; | |||||||||
| 1583 | |||||||||||
| 1584 | } | ||||||||||
| 1585 | # | ||||||||||
| 1586 | # PostCreateField | ||||||||||
| 1587 | # | ||||||||||
| 1588 | # Create field. | ||||||||||
| 1589 | # | ||||||||||
| 1590 | # @param String $name The document name. (required) | ||||||||||
| 1591 | # @param String $page Document page number. (required) | ||||||||||
| 1592 | # @param String $storage The document storage. (optional) | ||||||||||
| 1593 | # @param String $folder The document folder. (optional) | ||||||||||
| 1594 | # @param Field $body with the field data. (required) | ||||||||||
| 1595 | # @return SaaSposeResponse | ||||||||||
| 1596 | # | ||||||||||
| 1597 | sub PostCreateField { | ||||||||||
| 1598 | 0 | ▶ | my ($self, %args) = @_; | ||||||||
|
Subroutine
PostCreateField: not called CC=12 SCAR=50.5
Pod
undocumented
| |||||||||||
| 1599 | |||||||||||
| 1600 | |||||||||||
| 1601 | # verify the required parameter 'name' is set | ||||||||||
| 1602 | 0 | ▶ | unless (exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1603 | 0 | croak("Missing the required parameter 'name' when calling PostCreateField"); | |||||||||
| 1604 | } | ||||||||||
| 1605 | |||||||||||
| 1606 | # verify the required parameter 'page' is set | ||||||||||
| 1607 | 0 | ▶ | unless (exists $args{'page'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1608 | 0 | croak("Missing the required parameter 'page' when calling PostCreateField"); | |||||||||
| 1609 | } | ||||||||||
| 1610 | |||||||||||
| 1611 | # verify the required parameter 'body' is set | ||||||||||
| 1612 | 0 | ▶ | unless (exists $args{'body'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1613 | 0 | croak("Missing the required parameter 'body' when calling PostCreateField"); | |||||||||
| 1614 | } | ||||||||||
| 1615 | |||||||||||
| 1616 | |||||||||||
| 1617 | # parse inputs | ||||||||||
| 1618 | 0 | my $_resource_path = '/pdf/{name}/fields/?appSid={appSid}&page={page}&storage={storage}&folder={folder}'; | |||||||||
| 1619 | |||||||||||
| 1620 | 0 | $_resource_path =~ s/\Q&\E/&/g; | |||||||||
| 1621 | 0 | $_resource_path =~ s/\Q\/?\E/?/g; | |||||||||
| 1622 | 0 | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | |||||||||
| 1623 | 0 | $_resource_path =~ s/\Q{path}\E/{Path}/g; | |||||||||
| 1624 | |||||||||||
| 1625 | 0 | my $_method = 'POST'; | |||||||||
| 1626 | 0 | my $query_params = {}; | |||||||||
| 1627 | 0 | my $header_params = {}; | |||||||||
| 1628 | 0 | my $form_params = {}; | |||||||||
| 1629 | |||||||||||
| 1630 | # 'Accept' and 'Content-Type' header | ||||||||||
| 1631 | 0 | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | |||||||||
| 1632 | 0 | ▶ | if ($_header_accept) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1633 | 0 | $header_params->{'Accept'} = $_header_accept; | |||||||||
| 1634 | } | ||||||||||
| 1635 | 0 | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | |||||||||
| 1636 | |||||||||||
| 1637 | # query params | ||||||||||
| 1638 | 0 | ▶ | if ( exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1639 | 0 | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | |||||||||
| 1640 | }else{ | ||||||||||
| 1641 | 0 | $_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; | |||||||||
| 1642 | }# query params | ||||||||||
| 1643 | 0 | ▶ | if ( exists $args{'page'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1644 | 0 | $_resource_path =~ s/\Q{page}\E/$args{'page'}/g; | |||||||||
| 1645 | }else{ | ||||||||||
| 1646 | 0 | $_resource_path =~ s/[?&]page.*?(?=&|\?|$)//g; | |||||||||
| 1647 | }# query params | ||||||||||
| 1648 | 0 | ▶ | if ( exists $args{'storage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1649 | 0 | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | |||||||||
| 1650 | }else{ | ||||||||||
| 1651 | 0 | $_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; | |||||||||
| 1652 | }# query params | ||||||||||
| 1653 | 0 | ▶ | if ( exists $args{'folder'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1654 | 0 | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | |||||||||
| 1655 | }else{ | ||||||||||
| 1656 | 0 | $_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; | |||||||||
| 1657 | } | ||||||||||
| 1658 | |||||||||||
| 1659 | |||||||||||
| 1660 | 0 | my $_body_data; | |||||||||
| 1661 | |||||||||||
| 1662 | |||||||||||
| 1663 | # body params | ||||||||||
| 1664 | 0 | ▶ | if ( exists $args{'body'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1665 | 0 | $_body_data = $args{'body'}; | |||||||||
| 1666 | } | ||||||||||
| 1667 | |||||||||||
| 1668 | # authentication setting, if any | ||||||||||
| 1669 | 0 | my $auth_settings = []; | |||||||||
| 1670 | |||||||||||
| 1671 | # make the API Call | ||||||||||
| 1672 | 0 | my $response = $self->{api_client}->call_api($_resource_path, $_method, | |||||||||
| 1673 | $query_params, $form_params, | ||||||||||
| 1674 | $header_params, $_body_data, $auth_settings); | ||||||||||
| 1675 | 0 | ▶ | if (!$response) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1676 | 0 | return; | |||||||||
| 1677 | } | ||||||||||
| 1678 | |||||||||||
| 1679 | 0 | ▶ | if($AsposePdfCloud::Configuration::debug){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1680 | 0 | print "\nResponse Content: ".$response->content; | |||||||||
| 1681 | } | ||||||||||
| 1682 | |||||||||||
| 1683 | 0 | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SaaSposeResponse', $response->header('content-type')); | |||||||||
| 1684 | 0 | return $_response_object; | |||||||||
| 1685 | |||||||||||
| 1686 | } | ||||||||||
| 1687 | # | ||||||||||
| 1688 | # GetFields | ||||||||||
| 1689 | # | ||||||||||
| 1690 | # Get document fields. | ||||||||||
| 1691 | # | ||||||||||
| 1692 | # @param String $name The document name. (required) | ||||||||||
| 1693 | # @param String $storage The document storage. (optional) | ||||||||||
| 1694 | # @param String $folder The document folder. (optional) | ||||||||||
| 1695 | # @return FieldsResponse | ||||||||||
| 1696 | # | ||||||||||
| 1697 | sub GetFields { | ||||||||||
| 1698 | 0 | ▶ | my ($self, %args) = @_; | ||||||||
|
Subroutine
GetFields: not called CC=8 SCAR=42.8
Pod
undocumented
| |||||||||||
| 1699 | |||||||||||
| 1700 | |||||||||||
| 1701 | # verify the required parameter 'name' is set | ||||||||||
| 1702 | 0 | ▶ | unless (exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1703 | 0 | croak("Missing the required parameter 'name' when calling GetFields"); | |||||||||
| 1704 | } | ||||||||||
| 1705 | |||||||||||
| 1706 | |||||||||||
| 1707 | # parse inputs | ||||||||||
| 1708 | 0 | my $_resource_path = '/pdf/{name}/fields/?appSid={appSid}&storage={storage}&folder={folder}'; | |||||||||
| 1709 | |||||||||||
| 1710 | 0 | $_resource_path =~ s/\Q&\E/&/g; | |||||||||
| 1711 | 0 | $_resource_path =~ s/\Q\/?\E/?/g; | |||||||||
| 1712 | 0 | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | |||||||||
| 1713 | 0 | $_resource_path =~ s/\Q{path}\E/{Path}/g; | |||||||||
| 1714 | |||||||||||
| 1715 | 0 | my $_method = 'GET'; | |||||||||
| 1716 | 0 | my $query_params = {}; | |||||||||
| 1717 | 0 | my $header_params = {}; | |||||||||
| 1718 | 0 | my $form_params = {}; | |||||||||
| 1719 | |||||||||||
| 1720 | # 'Accept' and 'Content-Type' header | ||||||||||
| 1721 | 0 | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | |||||||||
| 1722 | 0 | ▶ | if ($_header_accept) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1723 | 0 | $header_params->{'Accept'} = $_header_accept; | |||||||||
| 1724 | } | ||||||||||
| 1725 | 0 | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | |||||||||
| 1726 | |||||||||||
| 1727 | # query params | ||||||||||
| 1728 | 0 | ▶ | if ( exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1729 | 0 | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | |||||||||
| 1730 | }else{ | ||||||||||
| 1731 | 0 | $_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; | |||||||||
| 1732 | }# query params | ||||||||||
| 1733 | 0 | ▶ | if ( exists $args{'storage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1734 | 0 | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | |||||||||
| 1735 | }else{ | ||||||||||
| 1736 | 0 | $_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; | |||||||||
| 1737 | }# query params | ||||||||||
| 1738 | 0 | ▶ | if ( exists $args{'folder'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1739 | 0 | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | |||||||||
| 1740 | }else{ | ||||||||||
| 1741 | 0 | $_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; | |||||||||
| 1742 | } | ||||||||||
| 1743 | |||||||||||
| 1744 | |||||||||||
| 1745 | 0 | my $_body_data; | |||||||||
| 1746 | |||||||||||
| 1747 | |||||||||||
| 1748 | |||||||||||
| 1749 | |||||||||||
| 1750 | # authentication setting, if any | ||||||||||
| 1751 | 0 | my $auth_settings = []; | |||||||||
| 1752 | |||||||||||
| 1753 | # make the API Call | ||||||||||
| 1754 | 0 | my $response = $self->{api_client}->call_api($_resource_path, $_method, | |||||||||
| 1755 | $query_params, $form_params, | ||||||||||
| 1756 | $header_params, $_body_data, $auth_settings); | ||||||||||
| 1757 | 0 | ▶ | if (!$response) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1758 | 0 | return; | |||||||||
| 1759 | } | ||||||||||
| 1760 | |||||||||||
| 1761 | 0 | ▶ | if($AsposePdfCloud::Configuration::debug){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1762 | 0 | print "\nResponse Content: ".$response->content; | |||||||||
| 1763 | } | ||||||||||
| 1764 | |||||||||||
| 1765 | 0 | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'FieldsResponse', $response->header('content-type')); | |||||||||
| 1766 | 0 | return $_response_object; | |||||||||
| 1767 | |||||||||||
| 1768 | } | ||||||||||
| 1769 | # | ||||||||||
| 1770 | # PutUpdateFields | ||||||||||
| 1771 | # | ||||||||||
| 1772 | # Update fields. | ||||||||||
| 1773 | # | ||||||||||
| 1774 | # @param String $name The document name. (required) | ||||||||||
| 1775 | # @param String $storage The document storage. (optional) | ||||||||||
| 1776 | # @param String $folder The document folder. (optional) | ||||||||||
| 1777 | # @param Fields $body with the fields data. (required) | ||||||||||
| 1778 | # @return FieldsResponse | ||||||||||
| 1779 | # | ||||||||||
| 1780 | sub PutUpdateFields { | ||||||||||
| 1781 | 0 | ▶ | my ($self, %args) = @_; | ||||||||
|
Subroutine
PutUpdateFields: not called CC=10 SCAR=47.0
Pod
undocumented
| |||||||||||
| 1782 | |||||||||||
| 1783 | |||||||||||
| 1784 | # verify the required parameter 'name' is set | ||||||||||
| 1785 | 0 | ▶ | unless (exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1786 | 0 | croak("Missing the required parameter 'name' when calling PutUpdateFields"); | |||||||||
| 1787 | } | ||||||||||
| 1788 | |||||||||||
| 1789 | # verify the required parameter 'body' is set | ||||||||||
| 1790 | 0 | ▶ | unless (exists $args{'body'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1791 | 0 | croak("Missing the required parameter 'body' when calling PutUpdateFields"); | |||||||||
| 1792 | } | ||||||||||
| 1793 | |||||||||||
| 1794 | |||||||||||
| 1795 | # parse inputs | ||||||||||
| 1796 | 0 | my $_resource_path = '/pdf/{name}/fields/?appSid={appSid}&storage={storage}&folder={folder}'; | |||||||||
| 1797 | |||||||||||
| 1798 | 0 | $_resource_path =~ s/\Q&\E/&/g; | |||||||||
| 1799 | 0 | $_resource_path =~ s/\Q\/?\E/?/g; | |||||||||
| 1800 | 0 | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | |||||||||
| 1801 | 0 | $_resource_path =~ s/\Q{path}\E/{Path}/g; | |||||||||
| 1802 | |||||||||||
| 1803 | 0 | my $_method = 'PUT'; | |||||||||
| 1804 | 0 | my $query_params = {}; | |||||||||
| 1805 | 0 | my $header_params = {}; | |||||||||
| 1806 | 0 | my $form_params = {}; | |||||||||
| 1807 | |||||||||||
| 1808 | # 'Accept' and 'Content-Type' header | ||||||||||
| 1809 | 0 | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | |||||||||
| 1810 | 0 | ▶ | if ($_header_accept) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1811 | 0 | $header_params->{'Accept'} = $_header_accept; | |||||||||
| 1812 | } | ||||||||||
| 1813 | 0 | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | |||||||||
| 1814 | |||||||||||
| 1815 | # query params | ||||||||||
| 1816 | 0 | ▶ | if ( exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1817 | 0 | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | |||||||||
| 1818 | }else{ | ||||||||||
| 1819 | 0 | $_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; | |||||||||
| 1820 | }# query params | ||||||||||
| 1821 | 0 | ▶ | if ( exists $args{'storage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1822 | 0 | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | |||||||||
| 1823 | }else{ | ||||||||||
| 1824 | 0 | $_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; | |||||||||
| 1825 | }# query params | ||||||||||
| 1826 | 0 | ▶ | if ( exists $args{'folder'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1827 | 0 | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | |||||||||
| 1828 | }else{ | ||||||||||
| 1829 | 0 | $_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; | |||||||||
| 1830 | } | ||||||||||
| 1831 | |||||||||||
| 1832 | |||||||||||
| 1833 | 0 | my $_body_data; | |||||||||
| 1834 | |||||||||||
| 1835 | |||||||||||
| 1836 | # body params | ||||||||||
| 1837 | 0 | ▶ | if ( exists $args{'body'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1838 | 0 | $_body_data = $args{'body'}; | |||||||||
| 1839 | } | ||||||||||
| 1840 | |||||||||||
| 1841 | # authentication setting, if any | ||||||||||
| 1842 | 0 | my $auth_settings = []; | |||||||||
| 1843 | |||||||||||
| 1844 | # make the API Call | ||||||||||
| 1845 | 0 | my $response = $self->{api_client}->call_api($_resource_path, $_method, | |||||||||
| 1846 | $query_params, $form_params, | ||||||||||
| 1847 | $header_params, $_body_data, $auth_settings); | ||||||||||
| 1848 | 0 | ▶ | if (!$response) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1849 | 0 | return; | |||||||||
| 1850 | } | ||||||||||
| 1851 | |||||||||||
| 1852 | 0 | ▶ | if($AsposePdfCloud::Configuration::debug){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1853 | 0 | print "\nResponse Content: ".$response->content; | |||||||||
| 1854 | } | ||||||||||
| 1855 | |||||||||||
| 1856 | 0 | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'FieldsResponse', $response->header('content-type')); | |||||||||
| 1857 | 0 | return $_response_object; | |||||||||
| 1858 | |||||||||||
| 1859 | } | ||||||||||
| 1860 | # | ||||||||||
| 1861 | # GetField | ||||||||||
| 1862 | # | ||||||||||
| 1863 | # Get document field by name. | ||||||||||
| 1864 | # | ||||||||||
| 1865 | # @param String $name The document name. (required) | ||||||||||
| 1866 | # @param String $fieldName The field name/ (required) | ||||||||||
| 1867 | # @param String $storage The document storage. (optional) | ||||||||||
| 1868 | # @param String $folder The document folder. (optional) | ||||||||||
| 1869 | # @return FieldResponse | ||||||||||
| 1870 | # | ||||||||||
| 1871 | sub GetField { | ||||||||||
| 1872 | 0 | ▶ | my ($self, %args) = @_; | ||||||||
|
Subroutine
GetField: not called CC=10 SCAR=47.0
Pod
undocumented
| |||||||||||
| 1873 | |||||||||||
| 1874 | |||||||||||
| 1875 | # verify the required parameter 'name' is set | ||||||||||
| 1876 | 0 | ▶ | unless (exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1877 | 0 | croak("Missing the required parameter 'name' when calling GetField"); | |||||||||
| 1878 | } | ||||||||||
| 1879 | |||||||||||
| 1880 | # verify the required parameter 'fieldName' is set | ||||||||||
| 1881 | 0 | ▶ | unless (exists $args{'fieldName'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1882 | 0 | croak("Missing the required parameter 'fieldName' when calling GetField"); | |||||||||
| 1883 | } | ||||||||||
| 1884 | |||||||||||
| 1885 | |||||||||||
| 1886 | # parse inputs | ||||||||||
| 1887 | 0 | my $_resource_path = '/pdf/{name}/fields/{fieldName}/?appSid={appSid}&storage={storage}&folder={folder}'; | |||||||||
| 1888 | |||||||||||
| 1889 | 0 | $_resource_path =~ s/\Q&\E/&/g; | |||||||||
| 1890 | 0 | $_resource_path =~ s/\Q\/?\E/?/g; | |||||||||
| 1891 | 0 | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | |||||||||
| 1892 | 0 | $_resource_path =~ s/\Q{path}\E/{Path}/g; | |||||||||
| 1893 | |||||||||||
| 1894 | 0 | my $_method = 'GET'; | |||||||||
| 1895 | 0 | my $query_params = {}; | |||||||||
| 1896 | 0 | my $header_params = {}; | |||||||||
| 1897 | 0 | my $form_params = {}; | |||||||||
| 1898 | |||||||||||
| 1899 | # 'Accept' and 'Content-Type' header | ||||||||||
| 1900 | 0 | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | |||||||||
| 1901 | 0 | ▶ | if ($_header_accept) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1902 | 0 | $header_params->{'Accept'} = $_header_accept; | |||||||||
| 1903 | } | ||||||||||
| 1904 | 0 | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | |||||||||
| 1905 | |||||||||||
| 1906 | # query params | ||||||||||
| 1907 | 0 | ▶ | if ( exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1908 | 0 | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | |||||||||
| 1909 | }else{ | ||||||||||
| 1910 | 0 | $_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; | |||||||||
| 1911 | }# query params | ||||||||||
| 1912 | 0 | ▶ | if ( exists $args{'fieldName'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1913 | 0 | $_resource_path =~ s/\Q{fieldName}\E/$args{'fieldName'}/g; | |||||||||
| 1914 | }else{ | ||||||||||
| 1915 | 0 | $_resource_path =~ s/[?&]fieldName.*?(?=&|\?|$)//g; | |||||||||
| 1916 | }# query params | ||||||||||
| 1917 | 0 | ▶ | if ( exists $args{'storage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1918 | 0 | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | |||||||||
| 1919 | }else{ | ||||||||||
| 1920 | 0 | $_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; | |||||||||
| 1921 | }# query params | ||||||||||
| 1922 | 0 | ▶ | if ( exists $args{'folder'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1923 | 0 | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | |||||||||
| 1924 | }else{ | ||||||||||
| 1925 | 0 | $_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; | |||||||||
| 1926 | } | ||||||||||
| 1927 | |||||||||||
| 1928 | |||||||||||
| 1929 | 0 | my $_body_data; | |||||||||
| 1930 | |||||||||||
| 1931 | |||||||||||
| 1932 | |||||||||||
| 1933 | |||||||||||
| 1934 | # authentication setting, if any | ||||||||||
| 1935 | 0 | my $auth_settings = []; | |||||||||
| 1936 | |||||||||||
| 1937 | # make the API Call | ||||||||||
| 1938 | 0 | my $response = $self->{api_client}->call_api($_resource_path, $_method, | |||||||||
| 1939 | $query_params, $form_params, | ||||||||||
| 1940 | $header_params, $_body_data, $auth_settings); | ||||||||||
| 1941 | 0 | ▶ | if (!$response) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1942 | 0 | return; | |||||||||
| 1943 | } | ||||||||||
| 1944 | |||||||||||
| 1945 | 0 | ▶ | if($AsposePdfCloud::Configuration::debug){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1946 | 0 | print "\nResponse Content: ".$response->content; | |||||||||
| 1947 | } | ||||||||||
| 1948 | |||||||||||
| 1949 | 0 | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'FieldResponse', $response->header('content-type')); | |||||||||
| 1950 | 0 | return $_response_object; | |||||||||
| 1951 | |||||||||||
| 1952 | } | ||||||||||
| 1953 | # | ||||||||||
| 1954 | # PutUpdateField | ||||||||||
| 1955 | # | ||||||||||
| 1956 | # Update field. | ||||||||||
| 1957 | # | ||||||||||
| 1958 | # @param String $name The document name. (required) | ||||||||||
| 1959 | # @param String $storage The document storage. (optional) | ||||||||||
| 1960 | # @param String $folder The document folder. (optional) | ||||||||||
| 1961 | # @param String $fieldName (required) | ||||||||||
| 1962 | # @param Field $body with the field data. (required) | ||||||||||
| 1963 | # @return FieldResponse | ||||||||||
| 1964 | # | ||||||||||
| 1965 | sub PutUpdateField { | ||||||||||
| 1966 | 0 | ▶ | my ($self, %args) = @_; | ||||||||
|
Subroutine
PutUpdateField: not called CC=12 SCAR=50.5
Pod
undocumented
| |||||||||||
| 1967 | |||||||||||
| 1968 | |||||||||||
| 1969 | # verify the required parameter 'name' is set | ||||||||||
| 1970 | 0 | ▶ | unless (exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1971 | 0 | croak("Missing the required parameter 'name' when calling PutUpdateField"); | |||||||||
| 1972 | } | ||||||||||
| 1973 | |||||||||||
| 1974 | # verify the required parameter 'fieldName' is set | ||||||||||
| 1975 | 0 | ▶ | unless (exists $args{'fieldName'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1976 | 0 | croak("Missing the required parameter 'fieldName' when calling PutUpdateField"); | |||||||||
| 1977 | } | ||||||||||
| 1978 | |||||||||||
| 1979 | # verify the required parameter 'body' is set | ||||||||||
| 1980 | 0 | ▶ | unless (exists $args{'body'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 1981 | 0 | croak("Missing the required parameter 'body' when calling PutUpdateField"); | |||||||||
| 1982 | } | ||||||||||
| 1983 | |||||||||||
| 1984 | |||||||||||
| 1985 | # parse inputs | ||||||||||
| 1986 | 0 | my $_resource_path = '/pdf/{name}/fields/{fieldName}/?appSid={appSid}&storage={storage}&folder={folder}'; | |||||||||
| 1987 | |||||||||||
| 1988 | 0 | $_resource_path =~ s/\Q&\E/&/g; | |||||||||
| 1989 | 0 | $_resource_path =~ s/\Q\/?\E/?/g; | |||||||||
| 1990 | 0 | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | |||||||||
| 1991 | 0 | $_resource_path =~ s/\Q{path}\E/{Path}/g; | |||||||||
| 1992 | |||||||||||
| 1993 | 0 | my $_method = 'PUT'; | |||||||||
| 1994 | 0 | my $query_params = {}; | |||||||||
| 1995 | 0 | my $header_params = {}; | |||||||||
| 1996 | 0 | my $form_params = {}; | |||||||||
| 1997 | |||||||||||
| 1998 | # 'Accept' and 'Content-Type' header | ||||||||||
| 1999 | 0 | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | |||||||||
| 2000 | 0 | ▶ | if ($_header_accept) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2001 | 0 | $header_params->{'Accept'} = $_header_accept; | |||||||||
| 2002 | } | ||||||||||
| 2003 | 0 | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | |||||||||
| 2004 | |||||||||||
| 2005 | # query params | ||||||||||
| 2006 | 0 | ▶ | if ( exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2007 | 0 | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | |||||||||
| 2008 | }else{ | ||||||||||
| 2009 | 0 | $_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; | |||||||||
| 2010 | }# query params | ||||||||||
| 2011 | 0 | ▶ | if ( exists $args{'storage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2012 | 0 | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | |||||||||
| 2013 | }else{ | ||||||||||
| 2014 | 0 | $_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; | |||||||||
| 2015 | }# query params | ||||||||||
| 2016 | 0 | ▶ | if ( exists $args{'folder'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2017 | 0 | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | |||||||||
| 2018 | }else{ | ||||||||||
| 2019 | 0 | $_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; | |||||||||
| 2020 | }# query params | ||||||||||
| 2021 | 0 | ▶ | if ( exists $args{'fieldName'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2022 | 0 | $_resource_path =~ s/\Q{fieldName}\E/$args{'fieldName'}/g; | |||||||||
| 2023 | }else{ | ||||||||||
| 2024 | 0 | $_resource_path =~ s/[?&]fieldName.*?(?=&|\?|$)//g; | |||||||||
| 2025 | } | ||||||||||
| 2026 | |||||||||||
| 2027 | |||||||||||
| 2028 | 0 | my $_body_data; | |||||||||
| 2029 | |||||||||||
| 2030 | |||||||||||
| 2031 | # body params | ||||||||||
| 2032 | 0 | ▶ | if ( exists $args{'body'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2033 | 0 | $_body_data = $args{'body'}; | |||||||||
| 2034 | } | ||||||||||
| 2035 | |||||||||||
| 2036 | # authentication setting, if any | ||||||||||
| 2037 | 0 | my $auth_settings = []; | |||||||||
| 2038 | |||||||||||
| 2039 | # make the API Call | ||||||||||
| 2040 | 0 | my $response = $self->{api_client}->call_api($_resource_path, $_method, | |||||||||
| 2041 | $query_params, $form_params, | ||||||||||
| 2042 | $header_params, $_body_data, $auth_settings); | ||||||||||
| 2043 | 0 | ▶ | if (!$response) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2044 | 0 | return; | |||||||||
| 2045 | } | ||||||||||
| 2046 | |||||||||||
| 2047 | 0 | ▶ | if($AsposePdfCloud::Configuration::debug){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2048 | 0 | print "\nResponse Content: ".$response->content; | |||||||||
| 2049 | } | ||||||||||
| 2050 | |||||||||||
| 2051 | 0 | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'FieldResponse', $response->header('content-type')); | |||||||||
| 2052 | 0 | return $_response_object; | |||||||||
| 2053 | |||||||||||
| 2054 | } | ||||||||||
| 2055 | # | ||||||||||
| 2056 | # PutMergeDocuments | ||||||||||
| 2057 | # | ||||||||||
| 2058 | # Merge a list of documents. | ||||||||||
| 2059 | # | ||||||||||
| 2060 | # @param String $name Resulting documen name. (required) | ||||||||||
| 2061 | # @param String $storage Resulting document storage. (optional) | ||||||||||
| 2062 | # @param String $folder Resulting document folder. (optional) | ||||||||||
| 2063 | # @param MergeDocuments $body with a list of documents. (required) | ||||||||||
| 2064 | # @return DocumentResponse | ||||||||||
| 2065 | # | ||||||||||
| 2066 | sub PutMergeDocuments { | ||||||||||
| 2067 | 0 | ▶ | my ($self, %args) = @_; | ||||||||
|
Subroutine
PutMergeDocuments: not called CC=10 SCAR=47.0
Pod
undocumented
| |||||||||||
| 2068 | |||||||||||
| 2069 | |||||||||||
| 2070 | # verify the required parameter 'name' is set | ||||||||||
| 2071 | 0 | ▶ | unless (exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2072 | 0 | croak("Missing the required parameter 'name' when calling PutMergeDocuments"); | |||||||||
| 2073 | } | ||||||||||
| 2074 | |||||||||||
| 2075 | # verify the required parameter 'body' is set | ||||||||||
| 2076 | 0 | ▶ | unless (exists $args{'body'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2077 | 0 | croak("Missing the required parameter 'body' when calling PutMergeDocuments"); | |||||||||
| 2078 | } | ||||||||||
| 2079 | |||||||||||
| 2080 | |||||||||||
| 2081 | # parse inputs | ||||||||||
| 2082 | 0 | my $_resource_path = '/pdf/{name}/merge/?appSid={appSid}&storage={storage}&folder={folder}'; | |||||||||
| 2083 | |||||||||||
| 2084 | 0 | $_resource_path =~ s/\Q&\E/&/g; | |||||||||
| 2085 | 0 | $_resource_path =~ s/\Q\/?\E/?/g; | |||||||||
| 2086 | 0 | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | |||||||||
| 2087 | 0 | $_resource_path =~ s/\Q{path}\E/{Path}/g; | |||||||||
| 2088 | |||||||||||
| 2089 | 0 | my $_method = 'PUT'; | |||||||||
| 2090 | 0 | my $query_params = {}; | |||||||||
| 2091 | 0 | my $header_params = {}; | |||||||||
| 2092 | 0 | my $form_params = {}; | |||||||||
| 2093 | |||||||||||
| 2094 | # 'Accept' and 'Content-Type' header | ||||||||||
| 2095 | 0 | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | |||||||||
| 2096 | 0 | ▶ | if ($_header_accept) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2097 | 0 | $header_params->{'Accept'} = $_header_accept; | |||||||||
| 2098 | } | ||||||||||
| 2099 | 0 | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | |||||||||
| 2100 | |||||||||||
| 2101 | # query params | ||||||||||
| 2102 | 0 | ▶ | if ( exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2103 | 0 | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | |||||||||
| 2104 | }else{ | ||||||||||
| 2105 | 0 | $_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; | |||||||||
| 2106 | }# query params | ||||||||||
| 2107 | 0 | ▶ | if ( exists $args{'storage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2108 | 0 | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | |||||||||
| 2109 | }else{ | ||||||||||
| 2110 | 0 | $_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; | |||||||||
| 2111 | }# query params | ||||||||||
| 2112 | 0 | ▶ | if ( exists $args{'folder'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2113 | 0 | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | |||||||||
| 2114 | }else{ | ||||||||||
| 2115 | 0 | $_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; | |||||||||
| 2116 | } | ||||||||||
| 2117 | |||||||||||
| 2118 | |||||||||||
| 2119 | 0 | my $_body_data; | |||||||||
| 2120 | |||||||||||
| 2121 | |||||||||||
| 2122 | # body params | ||||||||||
| 2123 | 0 | ▶ | if ( exists $args{'body'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2124 | 0 | $_body_data = $args{'body'}; | |||||||||
| 2125 | } | ||||||||||
| 2126 | |||||||||||
| 2127 | # authentication setting, if any | ||||||||||
| 2128 | 0 | my $auth_settings = []; | |||||||||
| 2129 | |||||||||||
| 2130 | # make the API Call | ||||||||||
| 2131 | 0 | my $response = $self->{api_client}->call_api($_resource_path, $_method, | |||||||||
| 2132 | $query_params, $form_params, | ||||||||||
| 2133 | $header_params, $_body_data, $auth_settings); | ||||||||||
| 2134 | 0 | ▶ | if (!$response) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2135 | 0 | return; | |||||||||
| 2136 | } | ||||||||||
| 2137 | |||||||||||
| 2138 | 0 | ▶ | if($AsposePdfCloud::Configuration::debug){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2139 | 0 | print "\nResponse Content: ".$response->content; | |||||||||
| 2140 | } | ||||||||||
| 2141 | |||||||||||
| 2142 | 0 | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'DocumentResponse', $response->header('content-type')); | |||||||||
| 2143 | 0 | return $_response_object; | |||||||||
| 2144 | |||||||||||
| 2145 | } | ||||||||||
| 2146 | # | ||||||||||
| 2147 | # GetPages | ||||||||||
| 2148 | # | ||||||||||
| 2149 | # Read document pages info. | ||||||||||
| 2150 | # | ||||||||||
| 2151 | # @param String $name The document name. (required) | ||||||||||
| 2152 | # @param String $storage The document storage. (optional) | ||||||||||
| 2153 | # @param String $folder The document folder. (optional) | ||||||||||
| 2154 | # @return DocumentPagesResponse | ||||||||||
| 2155 | # | ||||||||||
| 2156 | sub GetPages { | ||||||||||
| 2157 | 0 | ▶ | my ($self, %args) = @_; | ||||||||
|
Subroutine
GetPages: not called CC=8 SCAR=42.8
Pod
undocumented
| |||||||||||
| 2158 | |||||||||||
| 2159 | |||||||||||
| 2160 | # verify the required parameter 'name' is set | ||||||||||
| 2161 | 0 | ▶ | unless (exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2162 | 0 | croak("Missing the required parameter 'name' when calling GetPages"); | |||||||||
| 2163 | } | ||||||||||
| 2164 | |||||||||||
| 2165 | |||||||||||
| 2166 | # parse inputs | ||||||||||
| 2167 | 0 | my $_resource_path = '/pdf/{name}/pages/?appSid={appSid}&storage={storage}&folder={folder}'; | |||||||||
| 2168 | |||||||||||
| 2169 | 0 | $_resource_path =~ s/\Q&\E/&/g; | |||||||||
| 2170 | 0 | $_resource_path =~ s/\Q\/?\E/?/g; | |||||||||
| 2171 | 0 | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | |||||||||
| 2172 | 0 | $_resource_path =~ s/\Q{path}\E/{Path}/g; | |||||||||
| 2173 | |||||||||||
| 2174 | 0 | my $_method = 'GET'; | |||||||||
| 2175 | 0 | my $query_params = {}; | |||||||||
| 2176 | 0 | my $header_params = {}; | |||||||||
| 2177 | 0 | my $form_params = {}; | |||||||||
| 2178 | |||||||||||
| 2179 | # 'Accept' and 'Content-Type' header | ||||||||||
| 2180 | 0 | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | |||||||||
| 2181 | 0 | ▶ | if ($_header_accept) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2182 | 0 | $header_params->{'Accept'} = $_header_accept; | |||||||||
| 2183 | } | ||||||||||
| 2184 | 0 | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | |||||||||
| 2185 | |||||||||||
| 2186 | # query params | ||||||||||
| 2187 | 0 | ▶ | if ( exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2188 | 0 | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | |||||||||
| 2189 | }else{ | ||||||||||
| 2190 | 0 | $_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; | |||||||||
| 2191 | }# query params | ||||||||||
| 2192 | 0 | ▶ | if ( exists $args{'storage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2193 | 0 | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | |||||||||
| 2194 | }else{ | ||||||||||
| 2195 | 0 | $_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; | |||||||||
| 2196 | }# query params | ||||||||||
| 2197 | 0 | ▶ | if ( exists $args{'folder'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2198 | 0 | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | |||||||||
| 2199 | }else{ | ||||||||||
| 2200 | 0 | $_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; | |||||||||
| 2201 | } | ||||||||||
| 2202 | |||||||||||
| 2203 | |||||||||||
| 2204 | 0 | my $_body_data; | |||||||||
| 2205 | |||||||||||
| 2206 | |||||||||||
| 2207 | |||||||||||
| 2208 | |||||||||||
| 2209 | # authentication setting, if any | ||||||||||
| 2210 | 0 | my $auth_settings = []; | |||||||||
| 2211 | |||||||||||
| 2212 | # make the API Call | ||||||||||
| 2213 | 0 | my $response = $self->{api_client}->call_api($_resource_path, $_method, | |||||||||
| 2214 | $query_params, $form_params, | ||||||||||
| 2215 | $header_params, $_body_data, $auth_settings); | ||||||||||
| 2216 | 0 | ▶ | if (!$response) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2217 | 0 | return; | |||||||||
| 2218 | } | ||||||||||
| 2219 | |||||||||||
| 2220 | 0 | ▶ | if($AsposePdfCloud::Configuration::debug){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2221 | 0 | print "\nResponse Content: ".$response->content; | |||||||||
| 2222 | } | ||||||||||
| 2223 | |||||||||||
| 2224 | 0 | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'DocumentPagesResponse', $response->header('content-type')); | |||||||||
| 2225 | 0 | return $_response_object; | |||||||||
| 2226 | |||||||||||
| 2227 | } | ||||||||||
| 2228 | # | ||||||||||
| 2229 | # PutAddNewPage | ||||||||||
| 2230 | # | ||||||||||
| 2231 | # Add new page to end of the document. | ||||||||||
| 2232 | # | ||||||||||
| 2233 | # @param String $name The document name. (required) | ||||||||||
| 2234 | # @param String $storage The document storage. (optional) | ||||||||||
| 2235 | # @param String $folder The document folder. (optional) | ||||||||||
| 2236 | # @return DocumentPagesResponse | ||||||||||
| 2237 | # | ||||||||||
| 2238 | sub PutAddNewPage { | ||||||||||
| 2239 | 0 | ▶ | my ($self, %args) = @_; | ||||||||
|
Subroutine
PutAddNewPage: not called CC=8 SCAR=42.8
Pod
undocumented
| |||||||||||
| 2240 | |||||||||||
| 2241 | |||||||||||
| 2242 | # verify the required parameter 'name' is set | ||||||||||
| 2243 | 0 | ▶ | unless (exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2244 | 0 | croak("Missing the required parameter 'name' when calling PutAddNewPage"); | |||||||||
| 2245 | } | ||||||||||
| 2246 | |||||||||||
| 2247 | |||||||||||
| 2248 | # parse inputs | ||||||||||
| 2249 | 0 | my $_resource_path = '/pdf/{name}/pages/?appSid={appSid}&storage={storage}&folder={folder}'; | |||||||||
| 2250 | |||||||||||
| 2251 | 0 | $_resource_path =~ s/\Q&\E/&/g; | |||||||||
| 2252 | 0 | $_resource_path =~ s/\Q\/?\E/?/g; | |||||||||
| 2253 | 0 | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | |||||||||
| 2254 | 0 | $_resource_path =~ s/\Q{path}\E/{Path}/g; | |||||||||
| 2255 | |||||||||||
| 2256 | 0 | my $_method = 'PUT'; | |||||||||
| 2257 | 0 | my $query_params = {}; | |||||||||
| 2258 | 0 | my $header_params = {}; | |||||||||
| 2259 | 0 | my $form_params = {}; | |||||||||
| 2260 | |||||||||||
| 2261 | # 'Accept' and 'Content-Type' header | ||||||||||
| 2262 | 0 | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | |||||||||
| 2263 | 0 | ▶ | if ($_header_accept) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2264 | 0 | $header_params->{'Accept'} = $_header_accept; | |||||||||
| 2265 | } | ||||||||||
| 2266 | 0 | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | |||||||||
| 2267 | |||||||||||
| 2268 | # query params | ||||||||||
| 2269 | 0 | ▶ | if ( exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2270 | 0 | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | |||||||||
| 2271 | }else{ | ||||||||||
| 2272 | 0 | $_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; | |||||||||
| 2273 | }# query params | ||||||||||
| 2274 | 0 | ▶ | if ( exists $args{'storage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2275 | 0 | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | |||||||||
| 2276 | }else{ | ||||||||||
| 2277 | 0 | $_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; | |||||||||
| 2278 | }# query params | ||||||||||
| 2279 | 0 | ▶ | if ( exists $args{'folder'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2280 | 0 | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | |||||||||
| 2281 | }else{ | ||||||||||
| 2282 | 0 | $_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; | |||||||||
| 2283 | } | ||||||||||
| 2284 | |||||||||||
| 2285 | |||||||||||
| 2286 | 0 | my $_body_data; | |||||||||
| 2287 | |||||||||||
| 2288 | |||||||||||
| 2289 | |||||||||||
| 2290 | |||||||||||
| 2291 | # authentication setting, if any | ||||||||||
| 2292 | 0 | my $auth_settings = []; | |||||||||
| 2293 | |||||||||||
| 2294 | # make the API Call | ||||||||||
| 2295 | 0 | my $response = $self->{api_client}->call_api($_resource_path, $_method, | |||||||||
| 2296 | $query_params, $form_params, | ||||||||||
| 2297 | $header_params, $_body_data, $auth_settings); | ||||||||||
| 2298 | 0 | ▶ | if (!$response) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2299 | 0 | return; | |||||||||
| 2300 | } | ||||||||||
| 2301 | |||||||||||
| 2302 | 0 | ▶ | if($AsposePdfCloud::Configuration::debug){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2303 | 0 | print "\nResponse Content: ".$response->content; | |||||||||
| 2304 | } | ||||||||||
| 2305 | |||||||||||
| 2306 | 0 | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'DocumentPagesResponse', $response->header('content-type')); | |||||||||
| 2307 | 0 | return $_response_object; | |||||||||
| 2308 | |||||||||||
| 2309 | } | ||||||||||
| 2310 | # | ||||||||||
| 2311 | # GetWordsPerPage | ||||||||||
| 2312 | # | ||||||||||
| 2313 | # Get number of words per document page. | ||||||||||
| 2314 | # | ||||||||||
| 2315 | # @param String $name The document name. (required) | ||||||||||
| 2316 | # @param String $storage The document storage. (optional) | ||||||||||
| 2317 | # @param String $folder The document folder. (optional) | ||||||||||
| 2318 | # @return WordCountResponse | ||||||||||
| 2319 | # | ||||||||||
| 2320 | sub GetWordsPerPage { | ||||||||||
| 2321 | 0 | ▶ | my ($self, %args) = @_; | ||||||||
|
Subroutine
GetWordsPerPage: not called CC=8 SCAR=42.8
Pod
undocumented
| |||||||||||
| 2322 | |||||||||||
| 2323 | |||||||||||
| 2324 | # verify the required parameter 'name' is set | ||||||||||
| 2325 | 0 | ▶ | unless (exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2326 | 0 | croak("Missing the required parameter 'name' when calling GetWordsPerPage"); | |||||||||
| 2327 | } | ||||||||||
| 2328 | |||||||||||
| 2329 | |||||||||||
| 2330 | # parse inputs | ||||||||||
| 2331 | 0 | my $_resource_path = '/pdf/{name}/pages/wordCount/?appSid={appSid}&storage={storage}&folder={folder}'; | |||||||||
| 2332 | |||||||||||
| 2333 | 0 | $_resource_path =~ s/\Q&\E/&/g; | |||||||||
| 2334 | 0 | $_resource_path =~ s/\Q\/?\E/?/g; | |||||||||
| 2335 | 0 | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | |||||||||
| 2336 | 0 | $_resource_path =~ s/\Q{path}\E/{Path}/g; | |||||||||
| 2337 | |||||||||||
| 2338 | 0 | my $_method = 'GET'; | |||||||||
| 2339 | 0 | my $query_params = {}; | |||||||||
| 2340 | 0 | my $header_params = {}; | |||||||||
| 2341 | 0 | my $form_params = {}; | |||||||||
| 2342 | |||||||||||
| 2343 | # 'Accept' and 'Content-Type' header | ||||||||||
| 2344 | 0 | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | |||||||||
| 2345 | 0 | ▶ | if ($_header_accept) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2346 | 0 | $header_params->{'Accept'} = $_header_accept; | |||||||||
| 2347 | } | ||||||||||
| 2348 | 0 | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | |||||||||
| 2349 | |||||||||||
| 2350 | # query params | ||||||||||
| 2351 | 0 | ▶ | if ( exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2352 | 0 | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | |||||||||
| 2353 | }else{ | ||||||||||
| 2354 | 0 | $_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; | |||||||||
| 2355 | }# query params | ||||||||||
| 2356 | 0 | ▶ | if ( exists $args{'storage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2357 | 0 | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | |||||||||
| 2358 | }else{ | ||||||||||
| 2359 | 0 | $_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; | |||||||||
| 2360 | }# query params | ||||||||||
| 2361 | 0 | ▶ | if ( exists $args{'folder'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2362 | 0 | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | |||||||||
| 2363 | }else{ | ||||||||||
| 2364 | 0 | $_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; | |||||||||
| 2365 | } | ||||||||||
| 2366 | |||||||||||
| 2367 | |||||||||||
| 2368 | 0 | my $_body_data; | |||||||||
| 2369 | |||||||||||
| 2370 | |||||||||||
| 2371 | |||||||||||
| 2372 | |||||||||||
| 2373 | # authentication setting, if any | ||||||||||
| 2374 | 0 | my $auth_settings = []; | |||||||||
| 2375 | |||||||||||
| 2376 | # make the API Call | ||||||||||
| 2377 | 0 | my $response = $self->{api_client}->call_api($_resource_path, $_method, | |||||||||
| 2378 | $query_params, $form_params, | ||||||||||
| 2379 | $header_params, $_body_data, $auth_settings); | ||||||||||
| 2380 | 0 | ▶ | if (!$response) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2381 | 0 | return; | |||||||||
| 2382 | } | ||||||||||
| 2383 | |||||||||||
| 2384 | 0 | ▶ | if($AsposePdfCloud::Configuration::debug){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2385 | 0 | print "\nResponse Content: ".$response->content; | |||||||||
| 2386 | } | ||||||||||
| 2387 | |||||||||||
| 2388 | 0 | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'WordCountResponse', $response->header('content-type')); | |||||||||
| 2389 | 0 | return $_response_object; | |||||||||
| 2390 | |||||||||||
| 2391 | } | ||||||||||
| 2392 | # | ||||||||||
| 2393 | # GetPage | ||||||||||
| 2394 | # | ||||||||||
| 2395 | # Read document page info. | ||||||||||
| 2396 | # | ||||||||||
| 2397 | # @param String $name The document name. (required) | ||||||||||
| 2398 | # @param String $pageNumber The page number. (required) | ||||||||||
| 2399 | # @param String $storage The document storage. (optional) | ||||||||||
| 2400 | # @param String $folder The document folder. (optional) | ||||||||||
| 2401 | # @return ResponseMessage | ||||||||||
| 2402 | # | ||||||||||
| 2403 | sub GetPage { | ||||||||||
| 2404 | 0 | ▶ | my ($self, %args) = @_; | ||||||||
|
Subroutine
GetPage: not called CC=10 SCAR=47.0
Pod
undocumented
| |||||||||||
| 2405 | |||||||||||
| 2406 | |||||||||||
| 2407 | # verify the required parameter 'name' is set | ||||||||||
| 2408 | 0 | ▶ | unless (exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2409 | 0 | croak("Missing the required parameter 'name' when calling GetPage"); | |||||||||
| 2410 | } | ||||||||||
| 2411 | |||||||||||
| 2412 | # verify the required parameter 'pageNumber' is set | ||||||||||
| 2413 | 0 | ▶ | unless (exists $args{'pageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2414 | 0 | croak("Missing the required parameter 'pageNumber' when calling GetPage"); | |||||||||
| 2415 | } | ||||||||||
| 2416 | |||||||||||
| 2417 | |||||||||||
| 2418 | # parse inputs | ||||||||||
| 2419 | 0 | my $_resource_path = '/pdf/{name}/pages/{pageNumber}/?appSid={appSid}&storage={storage}&folder={folder}'; | |||||||||
| 2420 | |||||||||||
| 2421 | 0 | $_resource_path =~ s/\Q&\E/&/g; | |||||||||
| 2422 | 0 | $_resource_path =~ s/\Q\/?\E/?/g; | |||||||||
| 2423 | 0 | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | |||||||||
| 2424 | 0 | $_resource_path =~ s/\Q{path}\E/{Path}/g; | |||||||||
| 2425 | |||||||||||
| 2426 | 0 | my $_method = 'GET'; | |||||||||
| 2427 | 0 | my $query_params = {}; | |||||||||
| 2428 | 0 | my $header_params = {}; | |||||||||
| 2429 | 0 | my $form_params = {}; | |||||||||
| 2430 | |||||||||||
| 2431 | # 'Accept' and 'Content-Type' header | ||||||||||
| 2432 | 0 | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/octet-stream'); | |||||||||
| 2433 | 0 | ▶ | if ($_header_accept) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2434 | 0 | $header_params->{'Accept'} = $_header_accept; | |||||||||
| 2435 | } | ||||||||||
| 2436 | 0 | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | |||||||||
| 2437 | |||||||||||
| 2438 | # query params | ||||||||||
| 2439 | 0 | ▶ | if ( exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2440 | 0 | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | |||||||||
| 2441 | }else{ | ||||||||||
| 2442 | 0 | $_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; | |||||||||
| 2443 | }# query params | ||||||||||
| 2444 | 0 | ▶ | if ( exists $args{'pageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2445 | 0 | $_resource_path =~ s/\Q{pageNumber}\E/$args{'pageNumber'}/g; | |||||||||
| 2446 | }else{ | ||||||||||
| 2447 | 0 | $_resource_path =~ s/[?&]pageNumber.*?(?=&|\?|$)//g; | |||||||||
| 2448 | }# query params | ||||||||||
| 2449 | 0 | ▶ | if ( exists $args{'storage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2450 | 0 | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | |||||||||
| 2451 | }else{ | ||||||||||
| 2452 | 0 | $_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; | |||||||||
| 2453 | }# query params | ||||||||||
| 2454 | 0 | ▶ | if ( exists $args{'folder'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2455 | 0 | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | |||||||||
| 2456 | }else{ | ||||||||||
| 2457 | 0 | $_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; | |||||||||
| 2458 | } | ||||||||||
| 2459 | |||||||||||
| 2460 | |||||||||||
| 2461 | 0 | my $_body_data; | |||||||||
| 2462 | |||||||||||
| 2463 | |||||||||||
| 2464 | |||||||||||
| 2465 | |||||||||||
| 2466 | # authentication setting, if any | ||||||||||
| 2467 | 0 | my $auth_settings = []; | |||||||||
| 2468 | |||||||||||
| 2469 | # make the API Call | ||||||||||
| 2470 | 0 | my $response = $self->{api_client}->call_api($_resource_path, $_method, | |||||||||
| 2471 | $query_params, $form_params, | ||||||||||
| 2472 | $header_params, $_body_data, $auth_settings); | ||||||||||
| 2473 | 0 | ▶ | if (!$response) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2474 | 0 | return; | |||||||||
| 2475 | } | ||||||||||
| 2476 | |||||||||||
| 2477 | 0 | ▶ | if($AsposePdfCloud::Configuration::debug){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2478 | 0 | print "\nResponse Content: ".$response->content; | |||||||||
| 2479 | } | ||||||||||
| 2480 | |||||||||||
| 2481 | 0 | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'ResponseMessage', $response->header('content-type')); | |||||||||
| 2482 | 0 | return $_response_object; | |||||||||
| 2483 | |||||||||||
| 2484 | } | ||||||||||
| 2485 | # | ||||||||||
| 2486 | # DeletePage | ||||||||||
| 2487 | # | ||||||||||
| 2488 | # Delete document page by its number. | ||||||||||
| 2489 | # | ||||||||||
| 2490 | # @param String $name The document name. (required) | ||||||||||
| 2491 | # @param String $pageNumber The page number. (required) | ||||||||||
| 2492 | # @param String $storage The document storage. (optional) | ||||||||||
| 2493 | # @param String $folder The document folder. (optional) | ||||||||||
| 2494 | # @return SaaSposeResponse | ||||||||||
| 2495 | # | ||||||||||
| 2496 | sub DeletePage { | ||||||||||
| 2497 | 0 | ▶ | my ($self, %args) = @_; | ||||||||
|
Subroutine
DeletePage: not called CC=10 SCAR=47.0
Pod
undocumented
| |||||||||||
| 2498 | |||||||||||
| 2499 | |||||||||||
| 2500 | # verify the required parameter 'name' is set | ||||||||||
| 2501 | 0 | ▶ | unless (exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2502 | 0 | croak("Missing the required parameter 'name' when calling DeletePage"); | |||||||||
| 2503 | } | ||||||||||
| 2504 | |||||||||||
| 2505 | # verify the required parameter 'pageNumber' is set | ||||||||||
| 2506 | 0 | ▶ | unless (exists $args{'pageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2507 | 0 | croak("Missing the required parameter 'pageNumber' when calling DeletePage"); | |||||||||
| 2508 | } | ||||||||||
| 2509 | |||||||||||
| 2510 | |||||||||||
| 2511 | # parse inputs | ||||||||||
| 2512 | 0 | my $_resource_path = '/pdf/{name}/pages/{pageNumber}/?appSid={appSid}&storage={storage}&folder={folder}'; | |||||||||
| 2513 | |||||||||||
| 2514 | 0 | $_resource_path =~ s/\Q&\E/&/g; | |||||||||
| 2515 | 0 | $_resource_path =~ s/\Q\/?\E/?/g; | |||||||||
| 2516 | 0 | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | |||||||||
| 2517 | 0 | $_resource_path =~ s/\Q{path}\E/{Path}/g; | |||||||||
| 2518 | |||||||||||
| 2519 | 0 | my $_method = 'DELETE'; | |||||||||
| 2520 | 0 | my $query_params = {}; | |||||||||
| 2521 | 0 | my $header_params = {}; | |||||||||
| 2522 | 0 | my $form_params = {}; | |||||||||
| 2523 | |||||||||||
| 2524 | # 'Accept' and 'Content-Type' header | ||||||||||
| 2525 | 0 | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | |||||||||
| 2526 | 0 | ▶ | if ($_header_accept) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2527 | 0 | $header_params->{'Accept'} = $_header_accept; | |||||||||
| 2528 | } | ||||||||||
| 2529 | 0 | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | |||||||||
| 2530 | |||||||||||
| 2531 | # query params | ||||||||||
| 2532 | 0 | ▶ | if ( exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2533 | 0 | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | |||||||||
| 2534 | }else{ | ||||||||||
| 2535 | 0 | $_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; | |||||||||
| 2536 | }# query params | ||||||||||
| 2537 | 0 | ▶ | if ( exists $args{'pageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2538 | 0 | $_resource_path =~ s/\Q{pageNumber}\E/$args{'pageNumber'}/g; | |||||||||
| 2539 | }else{ | ||||||||||
| 2540 | 0 | $_resource_path =~ s/[?&]pageNumber.*?(?=&|\?|$)//g; | |||||||||
| 2541 | }# query params | ||||||||||
| 2542 | 0 | ▶ | if ( exists $args{'storage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2543 | 0 | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | |||||||||
| 2544 | }else{ | ||||||||||
| 2545 | 0 | $_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; | |||||||||
| 2546 | }# query params | ||||||||||
| 2547 | 0 | ▶ | if ( exists $args{'folder'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2548 | 0 | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | |||||||||
| 2549 | }else{ | ||||||||||
| 2550 | 0 | $_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; | |||||||||
| 2551 | } | ||||||||||
| 2552 | |||||||||||
| 2553 | |||||||||||
| 2554 | 0 | my $_body_data; | |||||||||
| 2555 | |||||||||||
| 2556 | |||||||||||
| 2557 | |||||||||||
| 2558 | |||||||||||
| 2559 | # authentication setting, if any | ||||||||||
| 2560 | 0 | my $auth_settings = []; | |||||||||
| 2561 | |||||||||||
| 2562 | # make the API Call | ||||||||||
| 2563 | 0 | my $response = $self->{api_client}->call_api($_resource_path, $_method, | |||||||||
| 2564 | $query_params, $form_params, | ||||||||||
| 2565 | $header_params, $_body_data, $auth_settings); | ||||||||||
| 2566 | 0 | ▶ | if (!$response) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2567 | 0 | return; | |||||||||
| 2568 | } | ||||||||||
| 2569 | |||||||||||
| 2570 | 0 | ▶ | if($AsposePdfCloud::Configuration::debug){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2571 | 0 | print "\nResponse Content: ".$response->content; | |||||||||
| 2572 | } | ||||||||||
| 2573 | |||||||||||
| 2574 | 0 | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SaaSposeResponse', $response->header('content-type')); | |||||||||
| 2575 | 0 | return $_response_object; | |||||||||
| 2576 | |||||||||||
| 2577 | } | ||||||||||
| 2578 | # | ||||||||||
| 2579 | # GetPageWithFormat | ||||||||||
| 2580 | # | ||||||||||
| 2581 | # Convert document page to format specified. | ||||||||||
| 2582 | # | ||||||||||
| 2583 | # @param String $name The document name. (required) | ||||||||||
| 2584 | # @param String $pageNumber The page number. (required) | ||||||||||
| 2585 | # @param String $format The format to convert if specified. (required) | ||||||||||
| 2586 | # @param String $width The converted image width. (optional) | ||||||||||
| 2587 | # @param String $height The converted image height. (optional) | ||||||||||
| 2588 | # @param String $storage The document storage. (optional) | ||||||||||
| 2589 | # @param String $folder The document folder. (optional) | ||||||||||
| 2590 | # @return ResponseMessage | ||||||||||
| 2591 | # | ||||||||||
| 2592 | sub GetPageWithFormat { | ||||||||||
| 2593 | 0 | ▶ | my ($self, %args) = @_; | ||||||||
|
Subroutine
GetPageWithFormat: not called CC=14 SCAR=53.5
Pod
undocumented
| |||||||||||
| 2594 | |||||||||||
| 2595 | |||||||||||
| 2596 | # verify the required parameter 'name' is set | ||||||||||
| 2597 | 0 | ▶ | unless (exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2598 | 0 | croak("Missing the required parameter 'name' when calling GetPageWithFormat"); | |||||||||
| 2599 | } | ||||||||||
| 2600 | |||||||||||
| 2601 | # verify the required parameter 'pageNumber' is set | ||||||||||
| 2602 | 0 | ▶ | unless (exists $args{'pageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2603 | 0 | croak("Missing the required parameter 'pageNumber' when calling GetPageWithFormat"); | |||||||||
| 2604 | } | ||||||||||
| 2605 | |||||||||||
| 2606 | # verify the required parameter 'format' is set | ||||||||||
| 2607 | 0 | ▶ | unless (exists $args{'format'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2608 | 0 | croak("Missing the required parameter 'format' when calling GetPageWithFormat"); | |||||||||
| 2609 | } | ||||||||||
| 2610 | |||||||||||
| 2611 | |||||||||||
| 2612 | # parse inputs | ||||||||||
| 2613 | 0 | my $_resource_path = '/pdf/{name}/pages/{pageNumber}/?appSid={appSid}&toFormat={toFormat}&width={width}&height={height}&storage={storage}&folder={folder}'; | |||||||||
| 2614 | |||||||||||
| 2615 | 0 | $_resource_path =~ s/\Q&\E/&/g; | |||||||||
| 2616 | 0 | $_resource_path =~ s/\Q\/?\E/?/g; | |||||||||
| 2617 | 0 | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | |||||||||
| 2618 | 0 | $_resource_path =~ s/\Q{path}\E/{Path}/g; | |||||||||
| 2619 | |||||||||||
| 2620 | 0 | my $_method = 'GET'; | |||||||||
| 2621 | 0 | my $query_params = {}; | |||||||||
| 2622 | 0 | my $header_params = {}; | |||||||||
| 2623 | 0 | my $form_params = {}; | |||||||||
| 2624 | |||||||||||
| 2625 | # 'Accept' and 'Content-Type' header | ||||||||||
| 2626 | 0 | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/octet-stream'); | |||||||||
| 2627 | 0 | ▶ | if ($_header_accept) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2628 | 0 | $header_params->{'Accept'} = $_header_accept; | |||||||||
| 2629 | } | ||||||||||
| 2630 | 0 | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | |||||||||
| 2631 | |||||||||||
| 2632 | # query params | ||||||||||
| 2633 | 0 | ▶ | if ( exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2634 | 0 | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | |||||||||
| 2635 | }else{ | ||||||||||
| 2636 | 0 | $_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; | |||||||||
| 2637 | }# query params | ||||||||||
| 2638 | 0 | ▶ | if ( exists $args{'pageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2639 | 0 | $_resource_path =~ s/\Q{pageNumber}\E/$args{'pageNumber'}/g; | |||||||||
| 2640 | }else{ | ||||||||||
| 2641 | 0 | $_resource_path =~ s/[?&]pageNumber.*?(?=&|\?|$)//g; | |||||||||
| 2642 | }# query params | ||||||||||
| 2643 | 0 | ▶ | if ( exists $args{'format'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2644 | 0 | $_resource_path =~ s/\Q{format}\E/$args{'format'}/g; | |||||||||
| 2645 | }else{ | ||||||||||
| 2646 | 0 | $_resource_path =~ s/[?&]format.*?(?=&|\?|$)//g; | |||||||||
| 2647 | }# query params | ||||||||||
| 2648 | 0 | ▶ | if ( exists $args{'width'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2649 | 0 | $_resource_path =~ s/\Q{width}\E/$args{'width'}/g; | |||||||||
| 2650 | }else{ | ||||||||||
| 2651 | 0 | $_resource_path =~ s/[?&]width.*?(?=&|\?|$)//g; | |||||||||
| 2652 | }# query params | ||||||||||
| 2653 | 0 | ▶ | if ( exists $args{'height'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2654 | 0 | $_resource_path =~ s/\Q{height}\E/$args{'height'}/g; | |||||||||
| 2655 | }else{ | ||||||||||
| 2656 | 0 | $_resource_path =~ s/[?&]height.*?(?=&|\?|$)//g; | |||||||||
| 2657 | }# query params | ||||||||||
| 2658 | 0 | ▶ | if ( exists $args{'storage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2659 | 0 | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | |||||||||
| 2660 | }else{ | ||||||||||
| 2661 | 0 | $_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; | |||||||||
| 2662 | }# query params | ||||||||||
| 2663 | 0 | ▶ | if ( exists $args{'folder'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2664 | 0 | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | |||||||||
| 2665 | }else{ | ||||||||||
| 2666 | 0 | $_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; | |||||||||
| 2667 | } | ||||||||||
| 2668 | |||||||||||
| 2669 | |||||||||||
| 2670 | 0 | my $_body_data; | |||||||||
| 2671 | |||||||||||
| 2672 | |||||||||||
| 2673 | |||||||||||
| 2674 | |||||||||||
| 2675 | # authentication setting, if any | ||||||||||
| 2676 | 0 | my $auth_settings = []; | |||||||||
| 2677 | |||||||||||
| 2678 | # make the API Call | ||||||||||
| 2679 | 0 | my $response = $self->{api_client}->call_api($_resource_path, $_method, | |||||||||
| 2680 | $query_params, $form_params, | ||||||||||
| 2681 | $header_params, $_body_data, $auth_settings); | ||||||||||
| 2682 | 0 | ▶ | if (!$response) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2683 | 0 | return; | |||||||||
| 2684 | } | ||||||||||
| 2685 | |||||||||||
| 2686 | 0 | ▶ | if($AsposePdfCloud::Configuration::debug){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2687 | 0 | print "\nResponse Content: ".$response->content; | |||||||||
| 2688 | } | ||||||||||
| 2689 | |||||||||||
| 2690 | 0 | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'ResponseMessage', $response->header('content-type')); | |||||||||
| 2691 | 0 | return $_response_object; | |||||||||
| 2692 | |||||||||||
| 2693 | } | ||||||||||
| 2694 | # | ||||||||||
| 2695 | # GetPageAnnotations | ||||||||||
| 2696 | # | ||||||||||
| 2697 | # Read documant page annotations. | ||||||||||
| 2698 | # | ||||||||||
| 2699 | # @param String $name The document name. (required) | ||||||||||
| 2700 | # @param String $pageNumber The page number. (required) | ||||||||||
| 2701 | # @param String $storage The document storage. (optional) | ||||||||||
| 2702 | # @param String $folder The document folder. (optional) | ||||||||||
| 2703 | # @return AnnotationsResponse | ||||||||||
| 2704 | # | ||||||||||
| 2705 | sub GetPageAnnotations { | ||||||||||
| 2706 | 0 | ▶ | my ($self, %args) = @_; | ||||||||
|
Subroutine
GetPageAnnotations: not called CC=10 SCAR=47.0
Pod
undocumented
| |||||||||||
| 2707 | |||||||||||
| 2708 | |||||||||||
| 2709 | # verify the required parameter 'name' is set | ||||||||||
| 2710 | 0 | ▶ | unless (exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2711 | 0 | croak("Missing the required parameter 'name' when calling GetPageAnnotations"); | |||||||||
| 2712 | } | ||||||||||
| 2713 | |||||||||||
| 2714 | # verify the required parameter 'pageNumber' is set | ||||||||||
| 2715 | 0 | ▶ | unless (exists $args{'pageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2716 | 0 | croak("Missing the required parameter 'pageNumber' when calling GetPageAnnotations"); | |||||||||
| 2717 | } | ||||||||||
| 2718 | |||||||||||
| 2719 | |||||||||||
| 2720 | # parse inputs | ||||||||||
| 2721 | 0 | my $_resource_path = '/pdf/{name}/pages/{pageNumber}/annotations/?appSid={appSid}&storage={storage}&folder={folder}'; | |||||||||
| 2722 | |||||||||||
| 2723 | 0 | $_resource_path =~ s/\Q&\E/&/g; | |||||||||
| 2724 | 0 | $_resource_path =~ s/\Q\/?\E/?/g; | |||||||||
| 2725 | 0 | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | |||||||||
| 2726 | 0 | $_resource_path =~ s/\Q{path}\E/{Path}/g; | |||||||||
| 2727 | |||||||||||
| 2728 | 0 | my $_method = 'GET'; | |||||||||
| 2729 | 0 | my $query_params = {}; | |||||||||
| 2730 | 0 | my $header_params = {}; | |||||||||
| 2731 | 0 | my $form_params = {}; | |||||||||
| 2732 | |||||||||||
| 2733 | # 'Accept' and 'Content-Type' header | ||||||||||
| 2734 | 0 | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | |||||||||
| 2735 | 0 | ▶ | if ($_header_accept) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2736 | 0 | $header_params->{'Accept'} = $_header_accept; | |||||||||
| 2737 | } | ||||||||||
| 2738 | 0 | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | |||||||||
| 2739 | |||||||||||
| 2740 | # query params | ||||||||||
| 2741 | 0 | ▶ | if ( exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2742 | 0 | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | |||||||||
| 2743 | }else{ | ||||||||||
| 2744 | 0 | $_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; | |||||||||
| 2745 | }# query params | ||||||||||
| 2746 | 0 | ▶ | if ( exists $args{'pageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2747 | 0 | $_resource_path =~ s/\Q{pageNumber}\E/$args{'pageNumber'}/g; | |||||||||
| 2748 | }else{ | ||||||||||
| 2749 | 0 | $_resource_path =~ s/[?&]pageNumber.*?(?=&|\?|$)//g; | |||||||||
| 2750 | }# query params | ||||||||||
| 2751 | 0 | ▶ | if ( exists $args{'storage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2752 | 0 | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | |||||||||
| 2753 | }else{ | ||||||||||
| 2754 | 0 | $_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; | |||||||||
| 2755 | }# query params | ||||||||||
| 2756 | 0 | ▶ | if ( exists $args{'folder'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2757 | 0 | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | |||||||||
| 2758 | }else{ | ||||||||||
| 2759 | 0 | $_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; | |||||||||
| 2760 | } | ||||||||||
| 2761 | |||||||||||
| 2762 | |||||||||||
| 2763 | 0 | my $_body_data; | |||||||||
| 2764 | |||||||||||
| 2765 | |||||||||||
| 2766 | |||||||||||
| 2767 | |||||||||||
| 2768 | # authentication setting, if any | ||||||||||
| 2769 | 0 | my $auth_settings = []; | |||||||||
| 2770 | |||||||||||
| 2771 | # make the API Call | ||||||||||
| 2772 | 0 | my $response = $self->{api_client}->call_api($_resource_path, $_method, | |||||||||
| 2773 | $query_params, $form_params, | ||||||||||
| 2774 | $header_params, $_body_data, $auth_settings); | ||||||||||
| 2775 | 0 | ▶ | if (!$response) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2776 | 0 | return; | |||||||||
| 2777 | } | ||||||||||
| 2778 | |||||||||||
| 2779 | 0 | ▶ | if($AsposePdfCloud::Configuration::debug){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2780 | 0 | print "\nResponse Content: ".$response->content; | |||||||||
| 2781 | } | ||||||||||
| 2782 | |||||||||||
| 2783 | 0 | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'AnnotationsResponse', $response->header('content-type')); | |||||||||
| 2784 | 0 | return $_response_object; | |||||||||
| 2785 | |||||||||||
| 2786 | } | ||||||||||
| 2787 | # | ||||||||||
| 2788 | # GetPageAnnotation | ||||||||||
| 2789 | # | ||||||||||
| 2790 | # Read document page annotation by its number. | ||||||||||
| 2791 | # | ||||||||||
| 2792 | # @param String $name The document name. (required) | ||||||||||
| 2793 | # @param String $pageNumber The page number. (required) | ||||||||||
| 2794 | # @param String $annotationNumber The annotation number. (required) | ||||||||||
| 2795 | # @param String $storage The document storage. (optional) | ||||||||||
| 2796 | # @param String $folder The document folder. (optional) | ||||||||||
| 2797 | # @return AnnotationResponse | ||||||||||
| 2798 | # | ||||||||||
| 2799 | sub GetPageAnnotation { | ||||||||||
| 2800 | 0 | ▶ | my ($self, %args) = @_; | ||||||||
|
Subroutine
GetPageAnnotation: not called CC=12 SCAR=50.5
Pod
undocumented
| |||||||||||
| 2801 | |||||||||||
| 2802 | |||||||||||
| 2803 | # verify the required parameter 'name' is set | ||||||||||
| 2804 | 0 | ▶ | unless (exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2805 | 0 | croak("Missing the required parameter 'name' when calling GetPageAnnotation"); | |||||||||
| 2806 | } | ||||||||||
| 2807 | |||||||||||
| 2808 | # verify the required parameter 'pageNumber' is set | ||||||||||
| 2809 | 0 | ▶ | unless (exists $args{'pageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2810 | 0 | croak("Missing the required parameter 'pageNumber' when calling GetPageAnnotation"); | |||||||||
| 2811 | } | ||||||||||
| 2812 | |||||||||||
| 2813 | # verify the required parameter 'annotationNumber' is set | ||||||||||
| 2814 | 0 | ▶ | unless (exists $args{'annotationNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2815 | 0 | croak("Missing the required parameter 'annotationNumber' when calling GetPageAnnotation"); | |||||||||
| 2816 | } | ||||||||||
| 2817 | |||||||||||
| 2818 | |||||||||||
| 2819 | # parse inputs | ||||||||||
| 2820 | 0 | my $_resource_path = '/pdf/{name}/pages/{pageNumber}/annotations/{annotationNumber}/?appSid={appSid}&storage={storage}&folder={folder}'; | |||||||||
| 2821 | |||||||||||
| 2822 | 0 | $_resource_path =~ s/\Q&\E/&/g; | |||||||||
| 2823 | 0 | $_resource_path =~ s/\Q\/?\E/?/g; | |||||||||
| 2824 | 0 | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | |||||||||
| 2825 | 0 | $_resource_path =~ s/\Q{path}\E/{Path}/g; | |||||||||
| 2826 | |||||||||||
| 2827 | 0 | my $_method = 'GET'; | |||||||||
| 2828 | 0 | my $query_params = {}; | |||||||||
| 2829 | 0 | my $header_params = {}; | |||||||||
| 2830 | 0 | my $form_params = {}; | |||||||||
| 2831 | |||||||||||
| 2832 | # 'Accept' and 'Content-Type' header | ||||||||||
| 2833 | 0 | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | |||||||||
| 2834 | 0 | ▶ | if ($_header_accept) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2835 | 0 | $header_params->{'Accept'} = $_header_accept; | |||||||||
| 2836 | } | ||||||||||
| 2837 | 0 | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | |||||||||
| 2838 | |||||||||||
| 2839 | # query params | ||||||||||
| 2840 | 0 | ▶ | if ( exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2841 | 0 | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | |||||||||
| 2842 | }else{ | ||||||||||
| 2843 | 0 | $_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; | |||||||||
| 2844 | }# query params | ||||||||||
| 2845 | 0 | ▶ | if ( exists $args{'pageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2846 | 0 | $_resource_path =~ s/\Q{pageNumber}\E/$args{'pageNumber'}/g; | |||||||||
| 2847 | }else{ | ||||||||||
| 2848 | 0 | $_resource_path =~ s/[?&]pageNumber.*?(?=&|\?|$)//g; | |||||||||
| 2849 | }# query params | ||||||||||
| 2850 | 0 | ▶ | if ( exists $args{'annotationNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2851 | 0 | $_resource_path =~ s/\Q{annotationNumber}\E/$args{'annotationNumber'}/g; | |||||||||
| 2852 | }else{ | ||||||||||
| 2853 | 0 | $_resource_path =~ s/[?&]annotationNumber.*?(?=&|\?|$)//g; | |||||||||
| 2854 | }# query params | ||||||||||
| 2855 | 0 | ▶ | if ( exists $args{'storage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2856 | 0 | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | |||||||||
| 2857 | }else{ | ||||||||||
| 2858 | 0 | $_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; | |||||||||
| 2859 | }# query params | ||||||||||
| 2860 | 0 | ▶ | if ( exists $args{'folder'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2861 | 0 | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | |||||||||
| 2862 | }else{ | ||||||||||
| 2863 | 0 | $_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; | |||||||||
| 2864 | } | ||||||||||
| 2865 | |||||||||||
| 2866 | |||||||||||
| 2867 | 0 | my $_body_data; | |||||||||
| 2868 | |||||||||||
| 2869 | |||||||||||
| 2870 | |||||||||||
| 2871 | |||||||||||
| 2872 | # authentication setting, if any | ||||||||||
| 2873 | 0 | my $auth_settings = []; | |||||||||
| 2874 | |||||||||||
| 2875 | # make the API Call | ||||||||||
| 2876 | 0 | my $response = $self->{api_client}->call_api($_resource_path, $_method, | |||||||||
| 2877 | $query_params, $form_params, | ||||||||||
| 2878 | $header_params, $_body_data, $auth_settings); | ||||||||||
| 2879 | 0 | ▶ | if (!$response) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2880 | 0 | return; | |||||||||
| 2881 | } | ||||||||||
| 2882 | |||||||||||
| 2883 | 0 | ▶ | if($AsposePdfCloud::Configuration::debug){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2884 | 0 | print "\nResponse Content: ".$response->content; | |||||||||
| 2885 | } | ||||||||||
| 2886 | |||||||||||
| 2887 | 0 | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'AnnotationResponse', $response->header('content-type')); | |||||||||
| 2888 | 0 | return $_response_object; | |||||||||
| 2889 | |||||||||||
| 2890 | } | ||||||||||
| 2891 | # | ||||||||||
| 2892 | # GetFragments | ||||||||||
| 2893 | # | ||||||||||
| 2894 | # Read page fragments. | ||||||||||
| 2895 | # | ||||||||||
| 2896 | # @param String $name (required) | ||||||||||
| 2897 | # @param String $pageNumber (required) | ||||||||||
| 2898 | # @param String $withEmpty (optional) | ||||||||||
| 2899 | # @param String $storage (optional) | ||||||||||
| 2900 | # @param String $folder (optional) | ||||||||||
| 2901 | # @return TextItemsResponse | ||||||||||
| 2902 | # | ||||||||||
| 2903 | sub GetFragments { | ||||||||||
| 2904 | 0 | ▶ | my ($self, %args) = @_; | ||||||||
|
Subroutine
GetFragments: not called CC=11 SCAR=48.8
Pod
undocumented
| |||||||||||
| 2905 | |||||||||||
| 2906 | |||||||||||
| 2907 | # verify the required parameter 'name' is set | ||||||||||
| 2908 | 0 | ▶ | unless (exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2909 | 0 | croak("Missing the required parameter 'name' when calling GetFragments"); | |||||||||
| 2910 | } | ||||||||||
| 2911 | |||||||||||
| 2912 | # verify the required parameter 'pageNumber' is set | ||||||||||
| 2913 | 0 | ▶ | unless (exists $args{'pageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2914 | 0 | croak("Missing the required parameter 'pageNumber' when calling GetFragments"); | |||||||||
| 2915 | } | ||||||||||
| 2916 | |||||||||||
| 2917 | |||||||||||
| 2918 | # parse inputs | ||||||||||
| 2919 | 0 | my $_resource_path = '/pdf/{name}/pages/{pageNumber}/fragments/?appSid={appSid}&withEmpty={withEmpty}&storage={storage}&folder={folder}'; | |||||||||
| 2920 | |||||||||||
| 2921 | 0 | $_resource_path =~ s/\Q&\E/&/g; | |||||||||
| 2922 | 0 | $_resource_path =~ s/\Q\/?\E/?/g; | |||||||||
| 2923 | 0 | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | |||||||||
| 2924 | 0 | $_resource_path =~ s/\Q{path}\E/{Path}/g; | |||||||||
| 2925 | |||||||||||
| 2926 | 0 | my $_method = 'GET'; | |||||||||
| 2927 | 0 | my $query_params = {}; | |||||||||
| 2928 | 0 | my $header_params = {}; | |||||||||
| 2929 | 0 | my $form_params = {}; | |||||||||
| 2930 | |||||||||||
| 2931 | # 'Accept' and 'Content-Type' header | ||||||||||
| 2932 | 0 | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | |||||||||
| 2933 | 0 | ▶ | if ($_header_accept) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2934 | 0 | $header_params->{'Accept'} = $_header_accept; | |||||||||
| 2935 | } | ||||||||||
| 2936 | 0 | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | |||||||||
| 2937 | |||||||||||
| 2938 | # query params | ||||||||||
| 2939 | 0 | ▶ | if ( exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2940 | 0 | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | |||||||||
| 2941 | }else{ | ||||||||||
| 2942 | 0 | $_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; | |||||||||
| 2943 | }# query params | ||||||||||
| 2944 | 0 | ▶ | if ( exists $args{'pageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2945 | 0 | $_resource_path =~ s/\Q{pageNumber}\E/$args{'pageNumber'}/g; | |||||||||
| 2946 | }else{ | ||||||||||
| 2947 | 0 | $_resource_path =~ s/[?&]pageNumber.*?(?=&|\?|$)//g; | |||||||||
| 2948 | }# query params | ||||||||||
| 2949 | 0 | ▶ | if ( exists $args{'withEmpty'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2950 | 0 | $_resource_path =~ s/\Q{withEmpty}\E/$args{'withEmpty'}/g; | |||||||||
| 2951 | }else{ | ||||||||||
| 2952 | 0 | $_resource_path =~ s/[?&]withEmpty.*?(?=&|\?|$)//g; | |||||||||
| 2953 | }# query params | ||||||||||
| 2954 | 0 | ▶ | if ( exists $args{'storage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2955 | 0 | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | |||||||||
| 2956 | }else{ | ||||||||||
| 2957 | 0 | $_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; | |||||||||
| 2958 | }# query params | ||||||||||
| 2959 | 0 | ▶ | if ( exists $args{'folder'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2960 | 0 | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | |||||||||
| 2961 | }else{ | ||||||||||
| 2962 | 0 | $_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; | |||||||||
| 2963 | } | ||||||||||
| 2964 | |||||||||||
| 2965 | |||||||||||
| 2966 | 0 | my $_body_data; | |||||||||
| 2967 | |||||||||||
| 2968 | |||||||||||
| 2969 | |||||||||||
| 2970 | |||||||||||
| 2971 | # authentication setting, if any | ||||||||||
| 2972 | 0 | my $auth_settings = []; | |||||||||
| 2973 | |||||||||||
| 2974 | # make the API Call | ||||||||||
| 2975 | 0 | my $response = $self->{api_client}->call_api($_resource_path, $_method, | |||||||||
| 2976 | $query_params, $form_params, | ||||||||||
| 2977 | $header_params, $_body_data, $auth_settings); | ||||||||||
| 2978 | 0 | ▶ | if (!$response) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2979 | 0 | return; | |||||||||
| 2980 | } | ||||||||||
| 2981 | |||||||||||
| 2982 | 0 | ▶ | if($AsposePdfCloud::Configuration::debug){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 2983 | 0 | print "\nResponse Content: ".$response->content; | |||||||||
| 2984 | } | ||||||||||
| 2985 | |||||||||||
| 2986 | 0 | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'TextItemsResponse', $response->header('content-type')); | |||||||||
| 2987 | 0 | return $_response_object; | |||||||||
| 2988 | |||||||||||
| 2989 | } | ||||||||||
| 2990 | # | ||||||||||
| 2991 | # GetFragment | ||||||||||
| 2992 | # | ||||||||||
| 2993 | # Read page fragment. | ||||||||||
| 2994 | # | ||||||||||
| 2995 | # @param String $name (required) | ||||||||||
| 2996 | # @param String $pageNumber (required) | ||||||||||
| 2997 | # @param String $fragmentNumber (required) | ||||||||||
| 2998 | # @param String $withEmpty (optional) | ||||||||||
| 2999 | # @param String $storage (optional) | ||||||||||
| 3000 | # @param String $folder (optional) | ||||||||||
| 3001 | # @return TextItemsResponse | ||||||||||
| 3002 | # | ||||||||||
| 3003 | sub GetFragment { | ||||||||||
| 3004 | 0 | ▶ | my ($self, %args) = @_; | ||||||||
|
Subroutine
GetFragment: not called CC=13 SCAR=52.0
Pod
undocumented
| |||||||||||
| 3005 | |||||||||||
| 3006 | |||||||||||
| 3007 | # verify the required parameter 'name' is set | ||||||||||
| 3008 | 0 | ▶ | unless (exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3009 | 0 | croak("Missing the required parameter 'name' when calling GetFragment"); | |||||||||
| 3010 | } | ||||||||||
| 3011 | |||||||||||
| 3012 | # verify the required parameter 'pageNumber' is set | ||||||||||
| 3013 | 0 | ▶ | unless (exists $args{'pageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3014 | 0 | croak("Missing the required parameter 'pageNumber' when calling GetFragment"); | |||||||||
| 3015 | } | ||||||||||
| 3016 | |||||||||||
| 3017 | # verify the required parameter 'fragmentNumber' is set | ||||||||||
| 3018 | 0 | ▶ | unless (exists $args{'fragmentNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3019 | 0 | croak("Missing the required parameter 'fragmentNumber' when calling GetFragment"); | |||||||||
| 3020 | } | ||||||||||
| 3021 | |||||||||||
| 3022 | |||||||||||
| 3023 | # parse inputs | ||||||||||
| 3024 | 0 | my $_resource_path = '/pdf/{name}/pages/{pageNumber}/fragments/{fragmentNumber}/?appSid={appSid}&withEmpty={withEmpty}&storage={storage}&folder={folder}'; | |||||||||
| 3025 | |||||||||||
| 3026 | 0 | $_resource_path =~ s/\Q&\E/&/g; | |||||||||
| 3027 | 0 | $_resource_path =~ s/\Q\/?\E/?/g; | |||||||||
| 3028 | 0 | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | |||||||||
| 3029 | 0 | $_resource_path =~ s/\Q{path}\E/{Path}/g; | |||||||||
| 3030 | |||||||||||
| 3031 | 0 | my $_method = 'GET'; | |||||||||
| 3032 | 0 | my $query_params = {}; | |||||||||
| 3033 | 0 | my $header_params = {}; | |||||||||
| 3034 | 0 | my $form_params = {}; | |||||||||
| 3035 | |||||||||||
| 3036 | # 'Accept' and 'Content-Type' header | ||||||||||
| 3037 | 0 | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | |||||||||
| 3038 | 0 | ▶ | if ($_header_accept) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3039 | 0 | $header_params->{'Accept'} = $_header_accept; | |||||||||
| 3040 | } | ||||||||||
| 3041 | 0 | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | |||||||||
| 3042 | |||||||||||
| 3043 | # query params | ||||||||||
| 3044 | 0 | ▶ | if ( exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3045 | 0 | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | |||||||||
| 3046 | }else{ | ||||||||||
| 3047 | 0 | $_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; | |||||||||
| 3048 | }# query params | ||||||||||
| 3049 | 0 | ▶ | if ( exists $args{'pageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3050 | 0 | $_resource_path =~ s/\Q{pageNumber}\E/$args{'pageNumber'}/g; | |||||||||
| 3051 | }else{ | ||||||||||
| 3052 | 0 | $_resource_path =~ s/[?&]pageNumber.*?(?=&|\?|$)//g; | |||||||||
| 3053 | }# query params | ||||||||||
| 3054 | 0 | ▶ | if ( exists $args{'fragmentNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3055 | 0 | $_resource_path =~ s/\Q{fragmentNumber}\E/$args{'fragmentNumber'}/g; | |||||||||
| 3056 | }else{ | ||||||||||
| 3057 | 0 | $_resource_path =~ s/[?&]fragmentNumber.*?(?=&|\?|$)//g; | |||||||||
| 3058 | }# query params | ||||||||||
| 3059 | 0 | ▶ | if ( exists $args{'withEmpty'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3060 | 0 | $_resource_path =~ s/\Q{withEmpty}\E/$args{'withEmpty'}/g; | |||||||||
| 3061 | }else{ | ||||||||||
| 3062 | 0 | $_resource_path =~ s/[?&]withEmpty.*?(?=&|\?|$)//g; | |||||||||
| 3063 | }# query params | ||||||||||
| 3064 | 0 | ▶ | if ( exists $args{'storage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3065 | 0 | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | |||||||||
| 3066 | }else{ | ||||||||||
| 3067 | 0 | $_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; | |||||||||
| 3068 | }# query params | ||||||||||
| 3069 | 0 | ▶ | if ( exists $args{'folder'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3070 | 0 | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | |||||||||
| 3071 | }else{ | ||||||||||
| 3072 | 0 | $_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; | |||||||||
| 3073 | } | ||||||||||
| 3074 | |||||||||||
| 3075 | |||||||||||
| 3076 | 0 | my $_body_data; | |||||||||
| 3077 | |||||||||||
| 3078 | |||||||||||
| 3079 | |||||||||||
| 3080 | |||||||||||
| 3081 | # authentication setting, if any | ||||||||||
| 3082 | 0 | my $auth_settings = []; | |||||||||
| 3083 | |||||||||||
| 3084 | # make the API Call | ||||||||||
| 3085 | 0 | my $response = $self->{api_client}->call_api($_resource_path, $_method, | |||||||||
| 3086 | $query_params, $form_params, | ||||||||||
| 3087 | $header_params, $_body_data, $auth_settings); | ||||||||||
| 3088 | 0 | ▶ | if (!$response) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3089 | 0 | return; | |||||||||
| 3090 | } | ||||||||||
| 3091 | |||||||||||
| 3092 | 0 | ▶ | if($AsposePdfCloud::Configuration::debug){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3093 | 0 | print "\nResponse Content: ".$response->content; | |||||||||
| 3094 | } | ||||||||||
| 3095 | |||||||||||
| 3096 | 0 | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'TextItemsResponse', $response->header('content-type')); | |||||||||
| 3097 | 0 | return $_response_object; | |||||||||
| 3098 | |||||||||||
| 3099 | } | ||||||||||
| 3100 | # | ||||||||||
| 3101 | # GetSegments | ||||||||||
| 3102 | # | ||||||||||
| 3103 | # Read fragment segments. | ||||||||||
| 3104 | # | ||||||||||
| 3105 | # @param String $name (required) | ||||||||||
| 3106 | # @param String $pageNumber (required) | ||||||||||
| 3107 | # @param String $fragmentNumber (required) | ||||||||||
| 3108 | # @param String $withEmpty (optional) | ||||||||||
| 3109 | # @param String $storage (optional) | ||||||||||
| 3110 | # @param String $folder (optional) | ||||||||||
| 3111 | # @return TextItemsResponse | ||||||||||
| 3112 | # | ||||||||||
| 3113 | sub GetSegments { | ||||||||||
| 3114 | 0 | ▶ | my ($self, %args) = @_; | ||||||||
|
Subroutine
GetSegments: not called CC=13 SCAR=52.0
Pod
undocumented
| |||||||||||
| 3115 | |||||||||||
| 3116 | |||||||||||
| 3117 | # verify the required parameter 'name' is set | ||||||||||
| 3118 | 0 | ▶ | unless (exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3119 | 0 | croak("Missing the required parameter 'name' when calling GetSegments"); | |||||||||
| 3120 | } | ||||||||||
| 3121 | |||||||||||
| 3122 | # verify the required parameter 'pageNumber' is set | ||||||||||
| 3123 | 0 | ▶ | unless (exists $args{'pageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3124 | 0 | croak("Missing the required parameter 'pageNumber' when calling GetSegments"); | |||||||||
| 3125 | } | ||||||||||
| 3126 | |||||||||||
| 3127 | # verify the required parameter 'fragmentNumber' is set | ||||||||||
| 3128 | 0 | ▶ | unless (exists $args{'fragmentNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3129 | 0 | croak("Missing the required parameter 'fragmentNumber' when calling GetSegments"); | |||||||||
| 3130 | } | ||||||||||
| 3131 | |||||||||||
| 3132 | |||||||||||
| 3133 | # parse inputs | ||||||||||
| 3134 | 0 | my $_resource_path = '/pdf/{name}/pages/{pageNumber}/fragments/{fragmentNumber}/segments/?appSid={appSid}&withEmpty={withEmpty}&storage={storage}&folder={folder}'; | |||||||||
| 3135 | |||||||||||
| 3136 | 0 | $_resource_path =~ s/\Q&\E/&/g; | |||||||||
| 3137 | 0 | $_resource_path =~ s/\Q\/?\E/?/g; | |||||||||
| 3138 | 0 | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | |||||||||
| 3139 | 0 | $_resource_path =~ s/\Q{path}\E/{Path}/g; | |||||||||
| 3140 | |||||||||||
| 3141 | 0 | my $_method = 'GET'; | |||||||||
| 3142 | 0 | my $query_params = {}; | |||||||||
| 3143 | 0 | my $header_params = {}; | |||||||||
| 3144 | 0 | my $form_params = {}; | |||||||||
| 3145 | |||||||||||
| 3146 | # 'Accept' and 'Content-Type' header | ||||||||||
| 3147 | 0 | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | |||||||||
| 3148 | 0 | ▶ | if ($_header_accept) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3149 | 0 | $header_params->{'Accept'} = $_header_accept; | |||||||||
| 3150 | } | ||||||||||
| 3151 | 0 | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | |||||||||
| 3152 | |||||||||||
| 3153 | # query params | ||||||||||
| 3154 | 0 | ▶ | if ( exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3155 | 0 | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | |||||||||
| 3156 | }else{ | ||||||||||
| 3157 | 0 | $_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; | |||||||||
| 3158 | }# query params | ||||||||||
| 3159 | 0 | ▶ | if ( exists $args{'pageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3160 | 0 | $_resource_path =~ s/\Q{pageNumber}\E/$args{'pageNumber'}/g; | |||||||||
| 3161 | }else{ | ||||||||||
| 3162 | 0 | $_resource_path =~ s/[?&]pageNumber.*?(?=&|\?|$)//g; | |||||||||
| 3163 | }# query params | ||||||||||
| 3164 | 0 | ▶ | if ( exists $args{'fragmentNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3165 | 0 | $_resource_path =~ s/\Q{fragmentNumber}\E/$args{'fragmentNumber'}/g; | |||||||||
| 3166 | }else{ | ||||||||||
| 3167 | 0 | $_resource_path =~ s/[?&]fragmentNumber.*?(?=&|\?|$)//g; | |||||||||
| 3168 | }# query params | ||||||||||
| 3169 | 0 | ▶ | if ( exists $args{'withEmpty'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3170 | 0 | $_resource_path =~ s/\Q{withEmpty}\E/$args{'withEmpty'}/g; | |||||||||
| 3171 | }else{ | ||||||||||
| 3172 | 0 | $_resource_path =~ s/[?&]withEmpty.*?(?=&|\?|$)//g; | |||||||||
| 3173 | }# query params | ||||||||||
| 3174 | 0 | ▶ | if ( exists $args{'storage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3175 | 0 | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | |||||||||
| 3176 | }else{ | ||||||||||
| 3177 | 0 | $_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; | |||||||||
| 3178 | }# query params | ||||||||||
| 3179 | 0 | ▶ | if ( exists $args{'folder'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3180 | 0 | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | |||||||||
| 3181 | }else{ | ||||||||||
| 3182 | 0 | $_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; | |||||||||
| 3183 | } | ||||||||||
| 3184 | |||||||||||
| 3185 | |||||||||||
| 3186 | 0 | my $_body_data; | |||||||||
| 3187 | |||||||||||
| 3188 | |||||||||||
| 3189 | |||||||||||
| 3190 | |||||||||||
| 3191 | # authentication setting, if any | ||||||||||
| 3192 | 0 | my $auth_settings = []; | |||||||||
| 3193 | |||||||||||
| 3194 | # make the API Call | ||||||||||
| 3195 | 0 | my $response = $self->{api_client}->call_api($_resource_path, $_method, | |||||||||
| 3196 | $query_params, $form_params, | ||||||||||
| 3197 | $header_params, $_body_data, $auth_settings); | ||||||||||
| 3198 | 0 | ▶ | if (!$response) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3199 | 0 | return; | |||||||||
| 3200 | } | ||||||||||
| 3201 | |||||||||||
| 3202 | 0 | ▶ | if($AsposePdfCloud::Configuration::debug){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3203 | 0 | print "\nResponse Content: ".$response->content; | |||||||||
| 3204 | } | ||||||||||
| 3205 | |||||||||||
| 3206 | 0 | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'TextItemsResponse', $response->header('content-type')); | |||||||||
| 3207 | 0 | return $_response_object; | |||||||||
| 3208 | |||||||||||
| 3209 | } | ||||||||||
| 3210 | # | ||||||||||
| 3211 | # GetSegment | ||||||||||
| 3212 | # | ||||||||||
| 3213 | # Read segment. | ||||||||||
| 3214 | # | ||||||||||
| 3215 | # @param String $name (required) | ||||||||||
| 3216 | # @param String $pageNumber (required) | ||||||||||
| 3217 | # @param String $fragmentNumber (required) | ||||||||||
| 3218 | # @param String $segmentNumber (required) | ||||||||||
| 3219 | # @param String $storage (optional) | ||||||||||
| 3220 | # @param String $folder (optional) | ||||||||||
| 3221 | # @return TextItemResponse | ||||||||||
| 3222 | # | ||||||||||
| 3223 | sub GetSegment { | ||||||||||
| 3224 | 0 | ▶ | my ($self, %args) = @_; | ||||||||
|
Subroutine
GetSegment: not called CC=14 SCAR=53.5
Pod
undocumented
| |||||||||||
| 3225 | |||||||||||
| 3226 | |||||||||||
| 3227 | # verify the required parameter 'name' is set | ||||||||||
| 3228 | 0 | ▶ | unless (exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3229 | 0 | croak("Missing the required parameter 'name' when calling GetSegment"); | |||||||||
| 3230 | } | ||||||||||
| 3231 | |||||||||||
| 3232 | # verify the required parameter 'pageNumber' is set | ||||||||||
| 3233 | 0 | ▶ | unless (exists $args{'pageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3234 | 0 | croak("Missing the required parameter 'pageNumber' when calling GetSegment"); | |||||||||
| 3235 | } | ||||||||||
| 3236 | |||||||||||
| 3237 | # verify the required parameter 'fragmentNumber' is set | ||||||||||
| 3238 | 0 | ▶ | unless (exists $args{'fragmentNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3239 | 0 | croak("Missing the required parameter 'fragmentNumber' when calling GetSegment"); | |||||||||
| 3240 | } | ||||||||||
| 3241 | |||||||||||
| 3242 | # verify the required parameter 'segmentNumber' is set | ||||||||||
| 3243 | 0 | ▶ | unless (exists $args{'segmentNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3244 | 0 | croak("Missing the required parameter 'segmentNumber' when calling GetSegment"); | |||||||||
| 3245 | } | ||||||||||
| 3246 | |||||||||||
| 3247 | |||||||||||
| 3248 | # parse inputs | ||||||||||
| 3249 | 0 | my $_resource_path = '/pdf/{name}/pages/{pageNumber}/fragments/{fragmentNumber}/segments/{segmentNumber}/?appSid={appSid}&storage={storage}&folder={folder}'; | |||||||||
| 3250 | |||||||||||
| 3251 | 0 | $_resource_path =~ s/\Q&\E/&/g; | |||||||||
| 3252 | 0 | $_resource_path =~ s/\Q\/?\E/?/g; | |||||||||
| 3253 | 0 | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | |||||||||
| 3254 | 0 | $_resource_path =~ s/\Q{path}\E/{Path}/g; | |||||||||
| 3255 | |||||||||||
| 3256 | 0 | my $_method = 'GET'; | |||||||||
| 3257 | 0 | my $query_params = {}; | |||||||||
| 3258 | 0 | my $header_params = {}; | |||||||||
| 3259 | 0 | my $form_params = {}; | |||||||||
| 3260 | |||||||||||
| 3261 | # 'Accept' and 'Content-Type' header | ||||||||||
| 3262 | 0 | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | |||||||||
| 3263 | 0 | ▶ | if ($_header_accept) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3264 | 0 | $header_params->{'Accept'} = $_header_accept; | |||||||||
| 3265 | } | ||||||||||
| 3266 | 0 | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | |||||||||
| 3267 | |||||||||||
| 3268 | # query params | ||||||||||
| 3269 | 0 | ▶ | if ( exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3270 | 0 | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | |||||||||
| 3271 | }else{ | ||||||||||
| 3272 | 0 | $_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; | |||||||||
| 3273 | }# query params | ||||||||||
| 3274 | 0 | ▶ | if ( exists $args{'pageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3275 | 0 | $_resource_path =~ s/\Q{pageNumber}\E/$args{'pageNumber'}/g; | |||||||||
| 3276 | }else{ | ||||||||||
| 3277 | 0 | $_resource_path =~ s/[?&]pageNumber.*?(?=&|\?|$)//g; | |||||||||
| 3278 | }# query params | ||||||||||
| 3279 | 0 | ▶ | if ( exists $args{'fragmentNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3280 | 0 | $_resource_path =~ s/\Q{fragmentNumber}\E/$args{'fragmentNumber'}/g; | |||||||||
| 3281 | }else{ | ||||||||||
| 3282 | 0 | $_resource_path =~ s/[?&]fragmentNumber.*?(?=&|\?|$)//g; | |||||||||
| 3283 | }# query params | ||||||||||
| 3284 | 0 | ▶ | if ( exists $args{'segmentNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3285 | 0 | $_resource_path =~ s/\Q{segmentNumber}\E/$args{'segmentNumber'}/g; | |||||||||
| 3286 | }else{ | ||||||||||
| 3287 | 0 | $_resource_path =~ s/[?&]segmentNumber.*?(?=&|\?|$)//g; | |||||||||
| 3288 | }# query params | ||||||||||
| 3289 | 0 | ▶ | if ( exists $args{'storage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3290 | 0 | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | |||||||||
| 3291 | }else{ | ||||||||||
| 3292 | 0 | $_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; | |||||||||
| 3293 | }# query params | ||||||||||
| 3294 | 0 | ▶ | if ( exists $args{'folder'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3295 | 0 | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | |||||||||
| 3296 | }else{ | ||||||||||
| 3297 | 0 | $_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; | |||||||||
| 3298 | } | ||||||||||
| 3299 | |||||||||||
| 3300 | |||||||||||
| 3301 | 0 | my $_body_data; | |||||||||
| 3302 | |||||||||||
| 3303 | |||||||||||
| 3304 | |||||||||||
| 3305 | |||||||||||
| 3306 | # authentication setting, if any | ||||||||||
| 3307 | 0 | my $auth_settings = []; | |||||||||
| 3308 | |||||||||||
| 3309 | # make the API Call | ||||||||||
| 3310 | 0 | my $response = $self->{api_client}->call_api($_resource_path, $_method, | |||||||||
| 3311 | $query_params, $form_params, | ||||||||||
| 3312 | $header_params, $_body_data, $auth_settings); | ||||||||||
| 3313 | 0 | ▶ | if (!$response) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3314 | 0 | return; | |||||||||
| 3315 | } | ||||||||||
| 3316 | |||||||||||
| 3317 | 0 | ▶ | if($AsposePdfCloud::Configuration::debug){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3318 | 0 | print "\nResponse Content: ".$response->content; | |||||||||
| 3319 | } | ||||||||||
| 3320 | |||||||||||
| 3321 | 0 | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'TextItemResponse', $response->header('content-type')); | |||||||||
| 3322 | 0 | return $_response_object; | |||||||||
| 3323 | |||||||||||
| 3324 | } | ||||||||||
| 3325 | # | ||||||||||
| 3326 | # GetSegmentTextFormat | ||||||||||
| 3327 | # | ||||||||||
| 3328 | # Read segment text format. | ||||||||||
| 3329 | # | ||||||||||
| 3330 | # @param String $name (required) | ||||||||||
| 3331 | # @param String $pageNumber (required) | ||||||||||
| 3332 | # @param String $fragmentNumber (required) | ||||||||||
| 3333 | # @param String $segmentNumber (required) | ||||||||||
| 3334 | # @param String $storage (optional) | ||||||||||
| 3335 | # @param String $folder (optional) | ||||||||||
| 3336 | # @return TextFormatResponse | ||||||||||
| 3337 | # | ||||||||||
| 3338 | sub GetSegmentTextFormat { | ||||||||||
| 3339 | 0 | ▶ | my ($self, %args) = @_; | ||||||||
|
Subroutine
GetSegmentTextFormat: not called CC=14 SCAR=53.5
Pod
undocumented
| |||||||||||
| 3340 | |||||||||||
| 3341 | |||||||||||
| 3342 | # verify the required parameter 'name' is set | ||||||||||
| 3343 | 0 | ▶ | unless (exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3344 | 0 | croak("Missing the required parameter 'name' when calling GetSegmentTextFormat"); | |||||||||
| 3345 | } | ||||||||||
| 3346 | |||||||||||
| 3347 | # verify the required parameter 'pageNumber' is set | ||||||||||
| 3348 | 0 | ▶ | unless (exists $args{'pageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3349 | 0 | croak("Missing the required parameter 'pageNumber' when calling GetSegmentTextFormat"); | |||||||||
| 3350 | } | ||||||||||
| 3351 | |||||||||||
| 3352 | # verify the required parameter 'fragmentNumber' is set | ||||||||||
| 3353 | 0 | ▶ | unless (exists $args{'fragmentNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3354 | 0 | croak("Missing the required parameter 'fragmentNumber' when calling GetSegmentTextFormat"); | |||||||||
| 3355 | } | ||||||||||
| 3356 | |||||||||||
| 3357 | # verify the required parameter 'segmentNumber' is set | ||||||||||
| 3358 | 0 | ▶ | unless (exists $args{'segmentNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3359 | 0 | croak("Missing the required parameter 'segmentNumber' when calling GetSegmentTextFormat"); | |||||||||
| 3360 | } | ||||||||||
| 3361 | |||||||||||
| 3362 | |||||||||||
| 3363 | # parse inputs | ||||||||||
| 3364 | 0 | my $_resource_path = '/pdf/{name}/pages/{pageNumber}/fragments/{fragmentNumber}/segments/{segmentNumber}/textFormat/?appSid={appSid}&storage={storage}&folder={folder}'; | |||||||||
| 3365 | |||||||||||
| 3366 | 0 | $_resource_path =~ s/\Q&\E/&/g; | |||||||||
| 3367 | 0 | $_resource_path =~ s/\Q\/?\E/?/g; | |||||||||
| 3368 | 0 | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | |||||||||
| 3369 | 0 | $_resource_path =~ s/\Q{path}\E/{Path}/g; | |||||||||
| 3370 | |||||||||||
| 3371 | 0 | my $_method = 'GET'; | |||||||||
| 3372 | 0 | my $query_params = {}; | |||||||||
| 3373 | 0 | my $header_params = {}; | |||||||||
| 3374 | 0 | my $form_params = {}; | |||||||||
| 3375 | |||||||||||
| 3376 | # 'Accept' and 'Content-Type' header | ||||||||||
| 3377 | 0 | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | |||||||||
| 3378 | 0 | ▶ | if ($_header_accept) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3379 | 0 | $header_params->{'Accept'} = $_header_accept; | |||||||||
| 3380 | } | ||||||||||
| 3381 | 0 | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | |||||||||
| 3382 | |||||||||||
| 3383 | # query params | ||||||||||
| 3384 | 0 | ▶ | if ( exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3385 | 0 | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | |||||||||
| 3386 | }else{ | ||||||||||
| 3387 | 0 | $_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; | |||||||||
| 3388 | }# query params | ||||||||||
| 3389 | 0 | ▶ | if ( exists $args{'pageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3390 | 0 | $_resource_path =~ s/\Q{pageNumber}\E/$args{'pageNumber'}/g; | |||||||||
| 3391 | }else{ | ||||||||||
| 3392 | 0 | $_resource_path =~ s/[?&]pageNumber.*?(?=&|\?|$)//g; | |||||||||
| 3393 | }# query params | ||||||||||
| 3394 | 0 | ▶ | if ( exists $args{'fragmentNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3395 | 0 | $_resource_path =~ s/\Q{fragmentNumber}\E/$args{'fragmentNumber'}/g; | |||||||||
| 3396 | }else{ | ||||||||||
| 3397 | 0 | $_resource_path =~ s/[?&]fragmentNumber.*?(?=&|\?|$)//g; | |||||||||
| 3398 | }# query params | ||||||||||
| 3399 | 0 | ▶ | if ( exists $args{'segmentNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3400 | 0 | $_resource_path =~ s/\Q{segmentNumber}\E/$args{'segmentNumber'}/g; | |||||||||
| 3401 | }else{ | ||||||||||
| 3402 | 0 | $_resource_path =~ s/[?&]segmentNumber.*?(?=&|\?|$)//g; | |||||||||
| 3403 | }# query params | ||||||||||
| 3404 | 0 | ▶ | if ( exists $args{'storage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3405 | 0 | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | |||||||||
| 3406 | }else{ | ||||||||||
| 3407 | 0 | $_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; | |||||||||
| 3408 | }# query params | ||||||||||
| 3409 | 0 | ▶ | if ( exists $args{'folder'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3410 | 0 | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | |||||||||
| 3411 | }else{ | ||||||||||
| 3412 | 0 | $_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; | |||||||||
| 3413 | } | ||||||||||
| 3414 | |||||||||||
| 3415 | |||||||||||
| 3416 | 0 | my $_body_data; | |||||||||
| 3417 | |||||||||||
| 3418 | |||||||||||
| 3419 | |||||||||||
| 3420 | |||||||||||
| 3421 | # authentication setting, if any | ||||||||||
| 3422 | 0 | my $auth_settings = []; | |||||||||
| 3423 | |||||||||||
| 3424 | # make the API Call | ||||||||||
| 3425 | 0 | my $response = $self->{api_client}->call_api($_resource_path, $_method, | |||||||||
| 3426 | $query_params, $form_params, | ||||||||||
| 3427 | $header_params, $_body_data, $auth_settings); | ||||||||||
| 3428 | 0 | ▶ | if (!$response) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3429 | 0 | return; | |||||||||
| 3430 | } | ||||||||||
| 3431 | |||||||||||
| 3432 | 0 | ▶ | if($AsposePdfCloud::Configuration::debug){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3433 | 0 | print "\nResponse Content: ".$response->content; | |||||||||
| 3434 | } | ||||||||||
| 3435 | |||||||||||
| 3436 | 0 | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'TextFormatResponse', $response->header('content-type')); | |||||||||
| 3437 | 0 | return $_response_object; | |||||||||
| 3438 | |||||||||||
| 3439 | } | ||||||||||
| 3440 | # | ||||||||||
| 3441 | # GetFragmentTextFormat | ||||||||||
| 3442 | # | ||||||||||
| 3443 | # Read page fragment text format. | ||||||||||
| 3444 | # | ||||||||||
| 3445 | # @param String $name (required) | ||||||||||
| 3446 | # @param String $pageNumber (required) | ||||||||||
| 3447 | # @param String $fragmentNumber (required) | ||||||||||
| 3448 | # @param String $storage (optional) | ||||||||||
| 3449 | # @param String $folder (optional) | ||||||||||
| 3450 | # @return TextFormatResponse | ||||||||||
| 3451 | # | ||||||||||
| 3452 | sub GetFragmentTextFormat { | ||||||||||
| 3453 | 0 | ▶ | my ($self, %args) = @_; | ||||||||
|
Subroutine
GetFragmentTextFormat: not called CC=12 SCAR=50.5
Pod
undocumented
| |||||||||||
| 3454 | |||||||||||
| 3455 | |||||||||||
| 3456 | # verify the required parameter 'name' is set | ||||||||||
| 3457 | 0 | ▶ | unless (exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3458 | 0 | croak("Missing the required parameter 'name' when calling GetFragmentTextFormat"); | |||||||||
| 3459 | } | ||||||||||
| 3460 | |||||||||||
| 3461 | # verify the required parameter 'pageNumber' is set | ||||||||||
| 3462 | 0 | ▶ | unless (exists $args{'pageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3463 | 0 | croak("Missing the required parameter 'pageNumber' when calling GetFragmentTextFormat"); | |||||||||
| 3464 | } | ||||||||||
| 3465 | |||||||||||
| 3466 | # verify the required parameter 'fragmentNumber' is set | ||||||||||
| 3467 | 0 | ▶ | unless (exists $args{'fragmentNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3468 | 0 | croak("Missing the required parameter 'fragmentNumber' when calling GetFragmentTextFormat"); | |||||||||
| 3469 | } | ||||||||||
| 3470 | |||||||||||
| 3471 | |||||||||||
| 3472 | # parse inputs | ||||||||||
| 3473 | 0 | my $_resource_path = '/pdf/{name}/pages/{pageNumber}/fragments/{fragmentNumber}/textFormat/?appSid={appSid}&storage={storage}&folder={folder}'; | |||||||||
| 3474 | |||||||||||
| 3475 | 0 | $_resource_path =~ s/\Q&\E/&/g; | |||||||||
| 3476 | 0 | $_resource_path =~ s/\Q\/?\E/?/g; | |||||||||
| 3477 | 0 | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | |||||||||
| 3478 | 0 | $_resource_path =~ s/\Q{path}\E/{Path}/g; | |||||||||
| 3479 | |||||||||||
| 3480 | 0 | my $_method = 'GET'; | |||||||||
| 3481 | 0 | my $query_params = {}; | |||||||||
| 3482 | 0 | my $header_params = {}; | |||||||||
| 3483 | 0 | my $form_params = {}; | |||||||||
| 3484 | |||||||||||
| 3485 | # 'Accept' and 'Content-Type' header | ||||||||||
| 3486 | 0 | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | |||||||||
| 3487 | 0 | ▶ | if ($_header_accept) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3488 | 0 | $header_params->{'Accept'} = $_header_accept; | |||||||||
| 3489 | } | ||||||||||
| 3490 | 0 | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | |||||||||
| 3491 | |||||||||||
| 3492 | # query params | ||||||||||
| 3493 | 0 | ▶ | if ( exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3494 | 0 | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | |||||||||
| 3495 | }else{ | ||||||||||
| 3496 | 0 | $_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; | |||||||||
| 3497 | }# query params | ||||||||||
| 3498 | 0 | ▶ | if ( exists $args{'pageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3499 | 0 | $_resource_path =~ s/\Q{pageNumber}\E/$args{'pageNumber'}/g; | |||||||||
| 3500 | }else{ | ||||||||||
| 3501 | 0 | $_resource_path =~ s/[?&]pageNumber.*?(?=&|\?|$)//g; | |||||||||
| 3502 | }# query params | ||||||||||
| 3503 | 0 | ▶ | if ( exists $args{'fragmentNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3504 | 0 | $_resource_path =~ s/\Q{fragmentNumber}\E/$args{'fragmentNumber'}/g; | |||||||||
| 3505 | }else{ | ||||||||||
| 3506 | 0 | $_resource_path =~ s/[?&]fragmentNumber.*?(?=&|\?|$)//g; | |||||||||
| 3507 | }# query params | ||||||||||
| 3508 | 0 | ▶ | if ( exists $args{'storage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3509 | 0 | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | |||||||||
| 3510 | }else{ | ||||||||||
| 3511 | 0 | $_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; | |||||||||
| 3512 | }# query params | ||||||||||
| 3513 | 0 | ▶ | if ( exists $args{'folder'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3514 | 0 | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | |||||||||
| 3515 | }else{ | ||||||||||
| 3516 | 0 | $_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; | |||||||||
| 3517 | } | ||||||||||
| 3518 | |||||||||||
| 3519 | |||||||||||
| 3520 | 0 | my $_body_data; | |||||||||
| 3521 | |||||||||||
| 3522 | |||||||||||
| 3523 | |||||||||||
| 3524 | |||||||||||
| 3525 | # authentication setting, if any | ||||||||||
| 3526 | 0 | my $auth_settings = []; | |||||||||
| 3527 | |||||||||||
| 3528 | # make the API Call | ||||||||||
| 3529 | 0 | my $response = $self->{api_client}->call_api($_resource_path, $_method, | |||||||||
| 3530 | $query_params, $form_params, | ||||||||||
| 3531 | $header_params, $_body_data, $auth_settings); | ||||||||||
| 3532 | 0 | ▶ | if (!$response) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3533 | 0 | return; | |||||||||
| 3534 | } | ||||||||||
| 3535 | |||||||||||
| 3536 | 0 | ▶ | if($AsposePdfCloud::Configuration::debug){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3537 | 0 | print "\nResponse Content: ".$response->content; | |||||||||
| 3538 | } | ||||||||||
| 3539 | |||||||||||
| 3540 | 0 | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'TextFormatResponse', $response->header('content-type')); | |||||||||
| 3541 | 0 | return $_response_object; | |||||||||
| 3542 | |||||||||||
| 3543 | } | ||||||||||
| 3544 | # | ||||||||||
| 3545 | # GetImages | ||||||||||
| 3546 | # | ||||||||||
| 3547 | # Read document images. | ||||||||||
| 3548 | # | ||||||||||
| 3549 | # @param String $name The document name. (required) | ||||||||||
| 3550 | # @param String $pageNumber The page number. (required) | ||||||||||
| 3551 | # @param String $storage The document storage. (optional) | ||||||||||
| 3552 | # @param String $folder The document folder. (optional) | ||||||||||
| 3553 | # @return ImagesResponse | ||||||||||
| 3554 | # | ||||||||||
| 3555 | sub GetImages { | ||||||||||
| 3556 | 0 | ▶ | my ($self, %args) = @_; | ||||||||
|
Subroutine
GetImages: not called CC=10 SCAR=47.0
Pod
undocumented
| |||||||||||
| 3557 | |||||||||||
| 3558 | |||||||||||
| 3559 | # verify the required parameter 'name' is set | ||||||||||
| 3560 | 0 | ▶ | unless (exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3561 | 0 | croak("Missing the required parameter 'name' when calling GetImages"); | |||||||||
| 3562 | } | ||||||||||
| 3563 | |||||||||||
| 3564 | # verify the required parameter 'pageNumber' is set | ||||||||||
| 3565 | 0 | ▶ | unless (exists $args{'pageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3566 | 0 | croak("Missing the required parameter 'pageNumber' when calling GetImages"); | |||||||||
| 3567 | } | ||||||||||
| 3568 | |||||||||||
| 3569 | |||||||||||
| 3570 | # parse inputs | ||||||||||
| 3571 | 0 | my $_resource_path = '/pdf/{name}/pages/{pageNumber}/images/?appSid={appSid}&storage={storage}&folder={folder}'; | |||||||||
| 3572 | |||||||||||
| 3573 | 0 | $_resource_path =~ s/\Q&\E/&/g; | |||||||||
| 3574 | 0 | $_resource_path =~ s/\Q\/?\E/?/g; | |||||||||
| 3575 | 0 | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | |||||||||
| 3576 | 0 | $_resource_path =~ s/\Q{path}\E/{Path}/g; | |||||||||
| 3577 | |||||||||||
| 3578 | 0 | my $_method = 'GET'; | |||||||||
| 3579 | 0 | my $query_params = {}; | |||||||||
| 3580 | 0 | my $header_params = {}; | |||||||||
| 3581 | 0 | my $form_params = {}; | |||||||||
| 3582 | |||||||||||
| 3583 | # 'Accept' and 'Content-Type' header | ||||||||||
| 3584 | 0 | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | |||||||||
| 3585 | 0 | ▶ | if ($_header_accept) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3586 | 0 | $header_params->{'Accept'} = $_header_accept; | |||||||||
| 3587 | } | ||||||||||
| 3588 | 0 | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | |||||||||
| 3589 | |||||||||||
| 3590 | # query params | ||||||||||
| 3591 | 0 | ▶ | if ( exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3592 | 0 | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | |||||||||
| 3593 | }else{ | ||||||||||
| 3594 | 0 | $_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; | |||||||||
| 3595 | }# query params | ||||||||||
| 3596 | 0 | ▶ | if ( exists $args{'pageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3597 | 0 | $_resource_path =~ s/\Q{pageNumber}\E/$args{'pageNumber'}/g; | |||||||||
| 3598 | }else{ | ||||||||||
| 3599 | 0 | $_resource_path =~ s/[?&]pageNumber.*?(?=&|\?|$)//g; | |||||||||
| 3600 | }# query params | ||||||||||
| 3601 | 0 | ▶ | if ( exists $args{'storage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3602 | 0 | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | |||||||||
| 3603 | }else{ | ||||||||||
| 3604 | 0 | $_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; | |||||||||
| 3605 | }# query params | ||||||||||
| 3606 | 0 | ▶ | if ( exists $args{'folder'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3607 | 0 | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | |||||||||
| 3608 | }else{ | ||||||||||
| 3609 | 0 | $_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; | |||||||||
| 3610 | } | ||||||||||
| 3611 | |||||||||||
| 3612 | |||||||||||
| 3613 | 0 | my $_body_data; | |||||||||
| 3614 | |||||||||||
| 3615 | |||||||||||
| 3616 | |||||||||||
| 3617 | |||||||||||
| 3618 | # authentication setting, if any | ||||||||||
| 3619 | 0 | my $auth_settings = []; | |||||||||
| 3620 | |||||||||||
| 3621 | # make the API Call | ||||||||||
| 3622 | 0 | my $response = $self->{api_client}->call_api($_resource_path, $_method, | |||||||||
| 3623 | $query_params, $form_params, | ||||||||||
| 3624 | $header_params, $_body_data, $auth_settings); | ||||||||||
| 3625 | 0 | ▶ | if (!$response) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3626 | 0 | return; | |||||||||
| 3627 | } | ||||||||||
| 3628 | |||||||||||
| 3629 | 0 | ▶ | if($AsposePdfCloud::Configuration::debug){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3630 | 0 | print "\nResponse Content: ".$response->content; | |||||||||
| 3631 | } | ||||||||||
| 3632 | |||||||||||
| 3633 | 0 | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'ImagesResponse', $response->header('content-type')); | |||||||||
| 3634 | 0 | return $_response_object; | |||||||||
| 3635 | |||||||||||
| 3636 | } | ||||||||||
| 3637 | # | ||||||||||
| 3638 | # PostReplaceImage | ||||||||||
| 3639 | # | ||||||||||
| 3640 | # Replace document image. | ||||||||||
| 3641 | # | ||||||||||
| 3642 | # @param String $name The document name. (required) | ||||||||||
| 3643 | # @param String $pageNumber The page number. (required) | ||||||||||
| 3644 | # @param String $imageNumber The image number. (required) | ||||||||||
| 3645 | # @param String $imageFile Path to image file if specified. Request content is used otherwise. (optional) | ||||||||||
| 3646 | # @param String $storage The document storage. (optional) | ||||||||||
| 3647 | # @param String $folder The document folder. (optional) | ||||||||||
| 3648 | # @param File $file (required) | ||||||||||
| 3649 | # @return ImageResponse | ||||||||||
| 3650 | # | ||||||||||
| 3651 | sub PostReplaceImage { | ||||||||||
| 3652 | 0 | ▶ | my ($self, %args) = @_; | ||||||||
|
Subroutine
PostReplaceImage: not called CC=14 SCAR=53.5
Pod
undocumented
| |||||||||||
| 3653 | |||||||||||
| 3654 | |||||||||||
| 3655 | # verify the required parameter 'name' is set | ||||||||||
| 3656 | 0 | ▶ | unless (exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3657 | 0 | croak("Missing the required parameter 'name' when calling PostReplaceImage"); | |||||||||
| 3658 | } | ||||||||||
| 3659 | |||||||||||
| 3660 | # verify the required parameter 'pageNumber' is set | ||||||||||
| 3661 | 0 | ▶ | unless (exists $args{'pageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3662 | 0 | croak("Missing the required parameter 'pageNumber' when calling PostReplaceImage"); | |||||||||
| 3663 | } | ||||||||||
| 3664 | |||||||||||
| 3665 | # verify the required parameter 'imageNumber' is set | ||||||||||
| 3666 | 0 | ▶ | unless (exists $args{'imageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3667 | 0 | croak("Missing the required parameter 'imageNumber' when calling PostReplaceImage"); | |||||||||
| 3668 | } | ||||||||||
| 3669 | |||||||||||
| 3670 | |||||||||||
| 3671 | # parse inputs | ||||||||||
| 3672 | 0 | my $_resource_path = '/pdf/{name}/pages/{pageNumber}/images/{imageNumber}/?appSid={appSid}&imageFile={imageFile}&storage={storage}&folder={folder}'; | |||||||||
| 3673 | |||||||||||
| 3674 | 0 | $_resource_path =~ s/\Q&\E/&/g; | |||||||||
| 3675 | 0 | $_resource_path =~ s/\Q\/?\E/?/g; | |||||||||
| 3676 | 0 | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | |||||||||
| 3677 | 0 | $_resource_path =~ s/\Q{path}\E/{Path}/g; | |||||||||
| 3678 | |||||||||||
| 3679 | 0 | my $_method = 'POST'; | |||||||||
| 3680 | 0 | my $query_params = {}; | |||||||||
| 3681 | 0 | my $header_params = {}; | |||||||||
| 3682 | 0 | my $form_params = {}; | |||||||||
| 3683 | |||||||||||
| 3684 | # 'Accept' and 'Content-Type' header | ||||||||||
| 3685 | 0 | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | |||||||||
| 3686 | 0 | ▶ | if ($_header_accept) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3687 | 0 | $header_params->{'Accept'} = $_header_accept; | |||||||||
| 3688 | } | ||||||||||
| 3689 | 0 | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('multipart/form-data'); | |||||||||
| 3690 | |||||||||||
| 3691 | # query params | ||||||||||
| 3692 | 0 | ▶ | if ( exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3693 | 0 | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | |||||||||
| 3694 | }else{ | ||||||||||
| 3695 | 0 | $_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; | |||||||||
| 3696 | }# query params | ||||||||||
| 3697 | 0 | ▶ | if ( exists $args{'pageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3698 | 0 | $_resource_path =~ s/\Q{pageNumber}\E/$args{'pageNumber'}/g; | |||||||||
| 3699 | }else{ | ||||||||||
| 3700 | 0 | $_resource_path =~ s/[?&]pageNumber.*?(?=&|\?|$)//g; | |||||||||
| 3701 | }# query params | ||||||||||
| 3702 | 0 | ▶ | if ( exists $args{'imageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3703 | 0 | $_resource_path =~ s/\Q{imageNumber}\E/$args{'imageNumber'}/g; | |||||||||
| 3704 | }else{ | ||||||||||
| 3705 | 0 | $_resource_path =~ s/[?&]imageNumber.*?(?=&|\?|$)//g; | |||||||||
| 3706 | }# query params | ||||||||||
| 3707 | 0 | ▶ | if ( exists $args{'imageFile'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3708 | 0 | $_resource_path =~ s/\Q{imageFile}\E/$args{'imageFile'}/g; | |||||||||
| 3709 | }else{ | ||||||||||
| 3710 | 0 | $_resource_path =~ s/[?&]imageFile.*?(?=&|\?|$)//g; | |||||||||
| 3711 | }# query params | ||||||||||
| 3712 | 0 | ▶ | if ( exists $args{'storage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3713 | 0 | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | |||||||||
| 3714 | }else{ | ||||||||||
| 3715 | 0 | $_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; | |||||||||
| 3716 | }# query params | ||||||||||
| 3717 | 0 | ▶ | if ( exists $args{'folder'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3718 | 0 | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | |||||||||
| 3719 | }else{ | ||||||||||
| 3720 | 0 | $_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; | |||||||||
| 3721 | } | ||||||||||
| 3722 | |||||||||||
| 3723 | |||||||||||
| 3724 | 0 | my $_body_data; | |||||||||
| 3725 | # form params | ||||||||||
| 3726 | 0 | ▶ | if ( exists $args{'file'} ) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3727 | |||||||||||
| 3728 | 0 | $_body_data = read_file( $args{'file'} , binmode => ':raw' ); | |||||||||
| 3729 | |||||||||||
| 3730 | |||||||||||
| 3731 | } | ||||||||||
| 3732 | |||||||||||
| 3733 | |||||||||||
| 3734 | |||||||||||
| 3735 | # authentication setting, if any | ||||||||||
| 3736 | 0 | my $auth_settings = []; | |||||||||
| 3737 | |||||||||||
| 3738 | # make the API Call | ||||||||||
| 3739 | 0 | my $response = $self->{api_client}->call_api($_resource_path, $_method, | |||||||||
| 3740 | $query_params, $form_params, | ||||||||||
| 3741 | $header_params, $_body_data, $auth_settings); | ||||||||||
| 3742 | 0 | ▶ | if (!$response) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3743 | 0 | return; | |||||||||
| 3744 | } | ||||||||||
| 3745 | |||||||||||
| 3746 | 0 | ▶ | if($AsposePdfCloud::Configuration::debug){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3747 | 0 | print "\nResponse Content: ".$response->content; | |||||||||
| 3748 | } | ||||||||||
| 3749 | |||||||||||
| 3750 | 0 | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'ImageResponse', $response->header('content-type')); | |||||||||
| 3751 | 0 | return $_response_object; | |||||||||
| 3752 | |||||||||||
| 3753 | } | ||||||||||
| 3754 | # | ||||||||||
| 3755 | # GetImage | ||||||||||
| 3756 | # | ||||||||||
| 3757 | # Read document image by number. | ||||||||||
| 3758 | # | ||||||||||
| 3759 | # @param String $name The document name. (required) | ||||||||||
| 3760 | # @param String $pageNumber The page number. (required) | ||||||||||
| 3761 | # @param String $imageNumber The image format. (required) | ||||||||||
| 3762 | # @param String $storage The document storage. (optional) | ||||||||||
| 3763 | # @param String $folder The document folder. (optional) | ||||||||||
| 3764 | # @return ResponseMessage | ||||||||||
| 3765 | # | ||||||||||
| 3766 | sub GetImage { | ||||||||||
| 3767 | 0 | ▶ | my ($self, %args) = @_; | ||||||||
|
Subroutine
GetImage: not called CC=12 SCAR=50.5
Pod
undocumented
| |||||||||||
| 3768 | |||||||||||
| 3769 | |||||||||||
| 3770 | # verify the required parameter 'name' is set | ||||||||||
| 3771 | 0 | ▶ | unless (exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3772 | 0 | croak("Missing the required parameter 'name' when calling GetImage"); | |||||||||
| 3773 | } | ||||||||||
| 3774 | |||||||||||
| 3775 | # verify the required parameter 'pageNumber' is set | ||||||||||
| 3776 | 0 | ▶ | unless (exists $args{'pageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3777 | 0 | croak("Missing the required parameter 'pageNumber' when calling GetImage"); | |||||||||
| 3778 | } | ||||||||||
| 3779 | |||||||||||
| 3780 | # verify the required parameter 'imageNumber' is set | ||||||||||
| 3781 | 0 | ▶ | unless (exists $args{'imageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3782 | 0 | croak("Missing the required parameter 'imageNumber' when calling GetImage"); | |||||||||
| 3783 | } | ||||||||||
| 3784 | |||||||||||
| 3785 | |||||||||||
| 3786 | # parse inputs | ||||||||||
| 3787 | 0 | my $_resource_path = '/pdf/{name}/pages/{pageNumber}/images/{imageNumber}/?appSid={appSid}&storage={storage}&folder={folder}'; | |||||||||
| 3788 | |||||||||||
| 3789 | 0 | $_resource_path =~ s/\Q&\E/&/g; | |||||||||
| 3790 | 0 | $_resource_path =~ s/\Q\/?\E/?/g; | |||||||||
| 3791 | 0 | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | |||||||||
| 3792 | 0 | $_resource_path =~ s/\Q{path}\E/{Path}/g; | |||||||||
| 3793 | |||||||||||
| 3794 | 0 | my $_method = 'GET'; | |||||||||
| 3795 | 0 | my $query_params = {}; | |||||||||
| 3796 | 0 | my $header_params = {}; | |||||||||
| 3797 | 0 | my $form_params = {}; | |||||||||
| 3798 | |||||||||||
| 3799 | # 'Accept' and 'Content-Type' header | ||||||||||
| 3800 | 0 | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/octet-stream'); | |||||||||
| 3801 | 0 | ▶ | if ($_header_accept) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3802 | 0 | $header_params->{'Accept'} = $_header_accept; | |||||||||
| 3803 | } | ||||||||||
| 3804 | 0 | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | |||||||||
| 3805 | |||||||||||
| 3806 | # query params | ||||||||||
| 3807 | 0 | ▶ | if ( exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3808 | 0 | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | |||||||||
| 3809 | }else{ | ||||||||||
| 3810 | 0 | $_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; | |||||||||
| 3811 | }# query params | ||||||||||
| 3812 | 0 | ▶ | if ( exists $args{'pageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3813 | 0 | $_resource_path =~ s/\Q{pageNumber}\E/$args{'pageNumber'}/g; | |||||||||
| 3814 | }else{ | ||||||||||
| 3815 | 0 | $_resource_path =~ s/[?&]pageNumber.*?(?=&|\?|$)//g; | |||||||||
| 3816 | }# query params | ||||||||||
| 3817 | 0 | ▶ | if ( exists $args{'imageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3818 | 0 | $_resource_path =~ s/\Q{imageNumber}\E/$args{'imageNumber'}/g; | |||||||||
| 3819 | }else{ | ||||||||||
| 3820 | 0 | $_resource_path =~ s/[?&]imageNumber.*?(?=&|\?|$)//g; | |||||||||
| 3821 | }# query params | ||||||||||
| 3822 | 0 | ▶ | if ( exists $args{'storage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3823 | 0 | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | |||||||||
| 3824 | }else{ | ||||||||||
| 3825 | 0 | $_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; | |||||||||
| 3826 | }# query params | ||||||||||
| 3827 | 0 | ▶ | if ( exists $args{'folder'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3828 | 0 | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | |||||||||
| 3829 | }else{ | ||||||||||
| 3830 | 0 | $_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; | |||||||||
| 3831 | } | ||||||||||
| 3832 | |||||||||||
| 3833 | |||||||||||
| 3834 | 0 | my $_body_data; | |||||||||
| 3835 | |||||||||||
| 3836 | |||||||||||
| 3837 | |||||||||||
| 3838 | |||||||||||
| 3839 | # authentication setting, if any | ||||||||||
| 3840 | 0 | my $auth_settings = []; | |||||||||
| 3841 | |||||||||||
| 3842 | # make the API Call | ||||||||||
| 3843 | 0 | my $response = $self->{api_client}->call_api($_resource_path, $_method, | |||||||||
| 3844 | $query_params, $form_params, | ||||||||||
| 3845 | $header_params, $_body_data, $auth_settings); | ||||||||||
| 3846 | 0 | ▶ | if (!$response) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3847 | 0 | return; | |||||||||
| 3848 | } | ||||||||||
| 3849 | |||||||||||
| 3850 | 0 | ▶ | if($AsposePdfCloud::Configuration::debug){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3851 | 0 | print "\nResponse Content: ".$response->content; | |||||||||
| 3852 | } | ||||||||||
| 3853 | |||||||||||
| 3854 | 0 | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'ResponseMessage', $response->header('content-type')); | |||||||||
| 3855 | 0 | return $_response_object; | |||||||||
| 3856 | |||||||||||
| 3857 | } | ||||||||||
| 3858 | # | ||||||||||
| 3859 | # GetImageWithFormat | ||||||||||
| 3860 | # | ||||||||||
| 3861 | # Extract document image in format specified. | ||||||||||
| 3862 | # | ||||||||||
| 3863 | # @param String $name The document name. (required) | ||||||||||
| 3864 | # @param String $pageNumber The page number. (required) | ||||||||||
| 3865 | # @param String $imageNumber The image format. (required) | ||||||||||
| 3866 | # @param String $format Image format to convert, if not specified the common image data is read. (required) | ||||||||||
| 3867 | # @param String $width The converted image width. (optional) | ||||||||||
| 3868 | # @param String $height The converted image height. (optional) | ||||||||||
| 3869 | # @param String $storage The document storage. (optional) | ||||||||||
| 3870 | # @param String $folder The document folder. (optional) | ||||||||||
| 3871 | # @return ResponseMessage | ||||||||||
| 3872 | # | ||||||||||
| 3873 | sub GetImageWithFormat { | ||||||||||
| 3874 | 0 | ▶ | my ($self, %args) = @_; | ||||||||
|
Subroutine
GetImageWithFormat: not called CC=16 SCAR=56.1
Pod
undocumented
| |||||||||||
| 3875 | |||||||||||
| 3876 | |||||||||||
| 3877 | # verify the required parameter 'name' is set | ||||||||||
| 3878 | 0 | ▶ | unless (exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3879 | 0 | croak("Missing the required parameter 'name' when calling GetImageWithFormat"); | |||||||||
| 3880 | } | ||||||||||
| 3881 | |||||||||||
| 3882 | # verify the required parameter 'pageNumber' is set | ||||||||||
| 3883 | 0 | ▶ | unless (exists $args{'pageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3884 | 0 | croak("Missing the required parameter 'pageNumber' when calling GetImageWithFormat"); | |||||||||
| 3885 | } | ||||||||||
| 3886 | |||||||||||
| 3887 | # verify the required parameter 'imageNumber' is set | ||||||||||
| 3888 | 0 | ▶ | unless (exists $args{'imageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3889 | 0 | croak("Missing the required parameter 'imageNumber' when calling GetImageWithFormat"); | |||||||||
| 3890 | } | ||||||||||
| 3891 | |||||||||||
| 3892 | # verify the required parameter 'format' is set | ||||||||||
| 3893 | 0 | ▶ | unless (exists $args{'format'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3894 | 0 | croak("Missing the required parameter 'format' when calling GetImageWithFormat"); | |||||||||
| 3895 | } | ||||||||||
| 3896 | |||||||||||
| 3897 | |||||||||||
| 3898 | # parse inputs | ||||||||||
| 3899 | 0 | my $_resource_path = '/pdf/{name}/pages/{pageNumber}/images/{imageNumber}/?toFormat={toFormat}&appSid={appSid}&width={width}&height={height}&storage={storage}&folder={folder}'; | |||||||||
| 3900 | |||||||||||
| 3901 | 0 | $_resource_path =~ s/\Q&\E/&/g; | |||||||||
| 3902 | 0 | $_resource_path =~ s/\Q\/?\E/?/g; | |||||||||
| 3903 | 0 | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | |||||||||
| 3904 | 0 | $_resource_path =~ s/\Q{path}\E/{Path}/g; | |||||||||
| 3905 | |||||||||||
| 3906 | 0 | my $_method = 'GET'; | |||||||||
| 3907 | 0 | my $query_params = {}; | |||||||||
| 3908 | 0 | my $header_params = {}; | |||||||||
| 3909 | 0 | my $form_params = {}; | |||||||||
| 3910 | |||||||||||
| 3911 | # 'Accept' and 'Content-Type' header | ||||||||||
| 3912 | 0 | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/octet-stream'); | |||||||||
| 3913 | 0 | ▶ | if ($_header_accept) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3914 | 0 | $header_params->{'Accept'} = $_header_accept; | |||||||||
| 3915 | } | ||||||||||
| 3916 | 0 | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | |||||||||
| 3917 | |||||||||||
| 3918 | # query params | ||||||||||
| 3919 | 0 | ▶ | if ( exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3920 | 0 | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | |||||||||
| 3921 | }else{ | ||||||||||
| 3922 | 0 | $_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; | |||||||||
| 3923 | }# query params | ||||||||||
| 3924 | 0 | ▶ | if ( exists $args{'pageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3925 | 0 | $_resource_path =~ s/\Q{pageNumber}\E/$args{'pageNumber'}/g; | |||||||||
| 3926 | }else{ | ||||||||||
| 3927 | 0 | $_resource_path =~ s/[?&]pageNumber.*?(?=&|\?|$)//g; | |||||||||
| 3928 | }# query params | ||||||||||
| 3929 | 0 | ▶ | if ( exists $args{'imageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3930 | 0 | $_resource_path =~ s/\Q{imageNumber}\E/$args{'imageNumber'}/g; | |||||||||
| 3931 | }else{ | ||||||||||
| 3932 | 0 | $_resource_path =~ s/[?&]imageNumber.*?(?=&|\?|$)//g; | |||||||||
| 3933 | }# query params | ||||||||||
| 3934 | 0 | ▶ | if ( exists $args{'format'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3935 | 0 | $_resource_path =~ s/\Q{format}\E/$args{'format'}/g; | |||||||||
| 3936 | }else{ | ||||||||||
| 3937 | 0 | $_resource_path =~ s/[?&]format.*?(?=&|\?|$)//g; | |||||||||
| 3938 | }# query params | ||||||||||
| 3939 | 0 | ▶ | if ( exists $args{'width'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3940 | 0 | $_resource_path =~ s/\Q{width}\E/$args{'width'}/g; | |||||||||
| 3941 | }else{ | ||||||||||
| 3942 | 0 | $_resource_path =~ s/[?&]width.*?(?=&|\?|$)//g; | |||||||||
| 3943 | }# query params | ||||||||||
| 3944 | 0 | ▶ | if ( exists $args{'height'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3945 | 0 | $_resource_path =~ s/\Q{height}\E/$args{'height'}/g; | |||||||||
| 3946 | }else{ | ||||||||||
| 3947 | 0 | $_resource_path =~ s/[?&]height.*?(?=&|\?|$)//g; | |||||||||
| 3948 | }# query params | ||||||||||
| 3949 | 0 | ▶ | if ( exists $args{'storage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3950 | 0 | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | |||||||||
| 3951 | }else{ | ||||||||||
| 3952 | 0 | $_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; | |||||||||
| 3953 | }# query params | ||||||||||
| 3954 | 0 | ▶ | if ( exists $args{'folder'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3955 | 0 | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | |||||||||
| 3956 | }else{ | ||||||||||
| 3957 | 0 | $_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; | |||||||||
| 3958 | } | ||||||||||
| 3959 | |||||||||||
| 3960 | |||||||||||
| 3961 | 0 | my $_body_data; | |||||||||
| 3962 | |||||||||||
| 3963 | |||||||||||
| 3964 | |||||||||||
| 3965 | |||||||||||
| 3966 | # authentication setting, if any | ||||||||||
| 3967 | 0 | my $auth_settings = []; | |||||||||
| 3968 | |||||||||||
| 3969 | # make the API Call | ||||||||||
| 3970 | 0 | my $response = $self->{api_client}->call_api($_resource_path, $_method, | |||||||||
| 3971 | $query_params, $form_params, | ||||||||||
| 3972 | $header_params, $_body_data, $auth_settings); | ||||||||||
| 3973 | 0 | ▶ | if (!$response) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3974 | 0 | return; | |||||||||
| 3975 | } | ||||||||||
| 3976 | |||||||||||
| 3977 | 0 | ▶ | if($AsposePdfCloud::Configuration::debug){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 3978 | 0 | print "\nResponse Content: ".$response->content; | |||||||||
| 3979 | } | ||||||||||
| 3980 | |||||||||||
| 3981 | 0 | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'ResponseMessage', $response->header('content-type')); | |||||||||
| 3982 | 0 | return $_response_object; | |||||||||
| 3983 | |||||||||||
| 3984 | } | ||||||||||
| 3985 | # | ||||||||||
| 3986 | # GetExtractBarcodes | ||||||||||
| 3987 | # | ||||||||||
| 3988 | # Recognize barcodes. | ||||||||||
| 3989 | # | ||||||||||
| 3990 | # @param String $name Document name. (required) | ||||||||||
| 3991 | # @param String $pageNumber Page number. (required) | ||||||||||
| 3992 | # @param String $imageNumber Image number. (required) | ||||||||||
| 3993 | # @param String $storage Document storage. (optional) | ||||||||||
| 3994 | # @param String $folder Document folder. (optional) | ||||||||||
| 3995 | # @return BarcodeResponseList | ||||||||||
| 3996 | # | ||||||||||
| 3997 | sub GetExtractBarcodes { | ||||||||||
| 3998 | 0 | ▶ | my ($self, %args) = @_; | ||||||||
|
Subroutine
GetExtractBarcodes: not called CC=12 SCAR=50.5
Pod
undocumented
| |||||||||||
| 3999 | |||||||||||
| 4000 | |||||||||||
| 4001 | # verify the required parameter 'name' is set | ||||||||||
| 4002 | 0 | ▶ | unless (exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4003 | 0 | croak("Missing the required parameter 'name' when calling GetExtractBarcodes"); | |||||||||
| 4004 | } | ||||||||||
| 4005 | |||||||||||
| 4006 | # verify the required parameter 'pageNumber' is set | ||||||||||
| 4007 | 0 | ▶ | unless (exists $args{'pageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4008 | 0 | croak("Missing the required parameter 'pageNumber' when calling GetExtractBarcodes"); | |||||||||
| 4009 | } | ||||||||||
| 4010 | |||||||||||
| 4011 | # verify the required parameter 'imageNumber' is set | ||||||||||
| 4012 | 0 | ▶ | unless (exists $args{'imageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4013 | 0 | croak("Missing the required parameter 'imageNumber' when calling GetExtractBarcodes"); | |||||||||
| 4014 | } | ||||||||||
| 4015 | |||||||||||
| 4016 | |||||||||||
| 4017 | # parse inputs | ||||||||||
| 4018 | 0 | my $_resource_path = '/pdf/{name}/pages/{pageNumber}/images/{imageNumber}/recognize/?appSid={appSid}&storage={storage}&folder={folder}'; | |||||||||
| 4019 | |||||||||||
| 4020 | 0 | $_resource_path =~ s/\Q&\E/&/g; | |||||||||
| 4021 | 0 | $_resource_path =~ s/\Q\/?\E/?/g; | |||||||||
| 4022 | 0 | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | |||||||||
| 4023 | 0 | $_resource_path =~ s/\Q{path}\E/{Path}/g; | |||||||||
| 4024 | |||||||||||
| 4025 | 0 | my $_method = 'GET'; | |||||||||
| 4026 | 0 | my $query_params = {}; | |||||||||
| 4027 | 0 | my $header_params = {}; | |||||||||
| 4028 | 0 | my $form_params = {}; | |||||||||
| 4029 | |||||||||||
| 4030 | # 'Accept' and 'Content-Type' header | ||||||||||
| 4031 | 0 | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | |||||||||
| 4032 | 0 | ▶ | if ($_header_accept) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4033 | 0 | $header_params->{'Accept'} = $_header_accept; | |||||||||
| 4034 | } | ||||||||||
| 4035 | 0 | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | |||||||||
| 4036 | |||||||||||
| 4037 | # query params | ||||||||||
| 4038 | 0 | ▶ | if ( exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4039 | 0 | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | |||||||||
| 4040 | }else{ | ||||||||||
| 4041 | 0 | $_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; | |||||||||
| 4042 | }# query params | ||||||||||
| 4043 | 0 | ▶ | if ( exists $args{'pageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4044 | 0 | $_resource_path =~ s/\Q{pageNumber}\E/$args{'pageNumber'}/g; | |||||||||
| 4045 | }else{ | ||||||||||
| 4046 | 0 | $_resource_path =~ s/[?&]pageNumber.*?(?=&|\?|$)//g; | |||||||||
| 4047 | }# query params | ||||||||||
| 4048 | 0 | ▶ | if ( exists $args{'imageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4049 | 0 | $_resource_path =~ s/\Q{imageNumber}\E/$args{'imageNumber'}/g; | |||||||||
| 4050 | }else{ | ||||||||||
| 4051 | 0 | $_resource_path =~ s/[?&]imageNumber.*?(?=&|\?|$)//g; | |||||||||
| 4052 | }# query params | ||||||||||
| 4053 | 0 | ▶ | if ( exists $args{'storage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4054 | 0 | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | |||||||||
| 4055 | }else{ | ||||||||||
| 4056 | 0 | $_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; | |||||||||
| 4057 | }# query params | ||||||||||
| 4058 | 0 | ▶ | if ( exists $args{'folder'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4059 | 0 | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | |||||||||
| 4060 | }else{ | ||||||||||
| 4061 | 0 | $_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; | |||||||||
| 4062 | } | ||||||||||
| 4063 | |||||||||||
| 4064 | |||||||||||
| 4065 | 0 | my $_body_data; | |||||||||
| 4066 | |||||||||||
| 4067 | |||||||||||
| 4068 | |||||||||||
| 4069 | |||||||||||
| 4070 | # authentication setting, if any | ||||||||||
| 4071 | 0 | my $auth_settings = []; | |||||||||
| 4072 | |||||||||||
| 4073 | # make the API Call | ||||||||||
| 4074 | 0 | my $response = $self->{api_client}->call_api($_resource_path, $_method, | |||||||||
| 4075 | $query_params, $form_params, | ||||||||||
| 4076 | $header_params, $_body_data, $auth_settings); | ||||||||||
| 4077 | 0 | ▶ | if (!$response) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4078 | 0 | return; | |||||||||
| 4079 | } | ||||||||||
| 4080 | |||||||||||
| 4081 | 0 | ▶ | if($AsposePdfCloud::Configuration::debug){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4082 | 0 | print "\nResponse Content: ".$response->content; | |||||||||
| 4083 | } | ||||||||||
| 4084 | |||||||||||
| 4085 | 0 | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'BarcodeResponseList', $response->header('content-type')); | |||||||||
| 4086 | 0 | return $_response_object; | |||||||||
| 4087 | |||||||||||
| 4088 | } | ||||||||||
| 4089 | # | ||||||||||
| 4090 | # GetPageLinkAnnotations | ||||||||||
| 4091 | # | ||||||||||
| 4092 | # Read document page link annotations. | ||||||||||
| 4093 | # | ||||||||||
| 4094 | # @param String $name The document name. (required) | ||||||||||
| 4095 | # @param String $pageNumber The page number. (required) | ||||||||||
| 4096 | # @param String $storage The document storage. (optional) | ||||||||||
| 4097 | # @param String $folder The document folder. (optional) | ||||||||||
| 4098 | # @return LinkAnnotationsResponse | ||||||||||
| 4099 | # | ||||||||||
| 4100 | sub GetPageLinkAnnotations { | ||||||||||
| 4101 | 0 | ▶ | my ($self, %args) = @_; | ||||||||
|
Subroutine
GetPageLinkAnnotations: not called CC=10 SCAR=47.0
Pod
undocumented
| |||||||||||
| 4102 | |||||||||||
| 4103 | |||||||||||
| 4104 | # verify the required parameter 'name' is set | ||||||||||
| 4105 | 0 | ▶ | unless (exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4106 | 0 | croak("Missing the required parameter 'name' when calling GetPageLinkAnnotations"); | |||||||||
| 4107 | } | ||||||||||
| 4108 | |||||||||||
| 4109 | # verify the required parameter 'pageNumber' is set | ||||||||||
| 4110 | 0 | ▶ | unless (exists $args{'pageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4111 | 0 | croak("Missing the required parameter 'pageNumber' when calling GetPageLinkAnnotations"); | |||||||||
| 4112 | } | ||||||||||
| 4113 | |||||||||||
| 4114 | |||||||||||
| 4115 | # parse inputs | ||||||||||
| 4116 | 0 | my $_resource_path = '/pdf/{name}/pages/{pageNumber}/links/?appSid={appSid}&storage={storage}&folder={folder}'; | |||||||||
| 4117 | |||||||||||
| 4118 | 0 | $_resource_path =~ s/\Q&\E/&/g; | |||||||||
| 4119 | 0 | $_resource_path =~ s/\Q\/?\E/?/g; | |||||||||
| 4120 | 0 | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | |||||||||
| 4121 | 0 | $_resource_path =~ s/\Q{path}\E/{Path}/g; | |||||||||
| 4122 | |||||||||||
| 4123 | 0 | my $_method = 'GET'; | |||||||||
| 4124 | 0 | my $query_params = {}; | |||||||||
| 4125 | 0 | my $header_params = {}; | |||||||||
| 4126 | 0 | my $form_params = {}; | |||||||||
| 4127 | |||||||||||
| 4128 | # 'Accept' and 'Content-Type' header | ||||||||||
| 4129 | 0 | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | |||||||||
| 4130 | 0 | ▶ | if ($_header_accept) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4131 | 0 | $header_params->{'Accept'} = $_header_accept; | |||||||||
| 4132 | } | ||||||||||
| 4133 | 0 | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | |||||||||
| 4134 | |||||||||||
| 4135 | # query params | ||||||||||
| 4136 | 0 | ▶ | if ( exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4137 | 0 | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | |||||||||
| 4138 | }else{ | ||||||||||
| 4139 | 0 | $_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; | |||||||||
| 4140 | }# query params | ||||||||||
| 4141 | 0 | ▶ | if ( exists $args{'pageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4142 | 0 | $_resource_path =~ s/\Q{pageNumber}\E/$args{'pageNumber'}/g; | |||||||||
| 4143 | }else{ | ||||||||||
| 4144 | 0 | $_resource_path =~ s/[?&]pageNumber.*?(?=&|\?|$)//g; | |||||||||
| 4145 | }# query params | ||||||||||
| 4146 | 0 | ▶ | if ( exists $args{'storage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4147 | 0 | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | |||||||||
| 4148 | }else{ | ||||||||||
| 4149 | 0 | $_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; | |||||||||
| 4150 | }# query params | ||||||||||
| 4151 | 0 | ▶ | if ( exists $args{'folder'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4152 | 0 | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | |||||||||
| 4153 | }else{ | ||||||||||
| 4154 | 0 | $_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; | |||||||||
| 4155 | } | ||||||||||
| 4156 | |||||||||||
| 4157 | |||||||||||
| 4158 | 0 | my $_body_data; | |||||||||
| 4159 | |||||||||||
| 4160 | |||||||||||
| 4161 | |||||||||||
| 4162 | |||||||||||
| 4163 | # authentication setting, if any | ||||||||||
| 4164 | 0 | my $auth_settings = []; | |||||||||
| 4165 | |||||||||||
| 4166 | # make the API Call | ||||||||||
| 4167 | 0 | my $response = $self->{api_client}->call_api($_resource_path, $_method, | |||||||||
| 4168 | $query_params, $form_params, | ||||||||||
| 4169 | $header_params, $_body_data, $auth_settings); | ||||||||||
| 4170 | 0 | ▶ | if (!$response) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4171 | 0 | return; | |||||||||
| 4172 | } | ||||||||||
| 4173 | |||||||||||
| 4174 | 0 | ▶ | if($AsposePdfCloud::Configuration::debug){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4175 | 0 | print "\nResponse Content: ".$response->content; | |||||||||
| 4176 | } | ||||||||||
| 4177 | |||||||||||
| 4178 | 0 | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'LinkAnnotationsResponse', $response->header('content-type')); | |||||||||
| 4179 | 0 | return $_response_object; | |||||||||
| 4180 | |||||||||||
| 4181 | } | ||||||||||
| 4182 | # | ||||||||||
| 4183 | # GetPageLinkAnnotationByIndex | ||||||||||
| 4184 | # | ||||||||||
| 4185 | # Read document page link annotation by its index. | ||||||||||
| 4186 | # | ||||||||||
| 4187 | # @param String $name The document name. (required) | ||||||||||
| 4188 | # @param String $pageNumber The page number. (required) | ||||||||||
| 4189 | # @param String $linkIndex The link index. (required) | ||||||||||
| 4190 | # @param String $storage The document storage. (optional) | ||||||||||
| 4191 | # @param String $folder The document folder. (optional) | ||||||||||
| 4192 | # @return LinkAnnotationResponse | ||||||||||
| 4193 | # | ||||||||||
| 4194 | sub GetPageLinkAnnotationByIndex { | ||||||||||
| 4195 | 0 | ▶ | my ($self, %args) = @_; | ||||||||
|
Subroutine
GetPageLinkAnnotationByIndex: not called CC=12 SCAR=50.5
Pod
undocumented
| |||||||||||
| 4196 | |||||||||||
| 4197 | |||||||||||
| 4198 | # verify the required parameter 'name' is set | ||||||||||
| 4199 | 0 | ▶ | unless (exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4200 | 0 | croak("Missing the required parameter 'name' when calling GetPageLinkAnnotationByIndex"); | |||||||||
| 4201 | } | ||||||||||
| 4202 | |||||||||||
| 4203 | # verify the required parameter 'pageNumber' is set | ||||||||||
| 4204 | 0 | ▶ | unless (exists $args{'pageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4205 | 0 | croak("Missing the required parameter 'pageNumber' when calling GetPageLinkAnnotationByIndex"); | |||||||||
| 4206 | } | ||||||||||
| 4207 | |||||||||||
| 4208 | # verify the required parameter 'linkIndex' is set | ||||||||||
| 4209 | 0 | ▶ | unless (exists $args{'linkIndex'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4210 | 0 | croak("Missing the required parameter 'linkIndex' when calling GetPageLinkAnnotationByIndex"); | |||||||||
| 4211 | } | ||||||||||
| 4212 | |||||||||||
| 4213 | |||||||||||
| 4214 | # parse inputs | ||||||||||
| 4215 | 0 | my $_resource_path = '/pdf/{name}/pages/{pageNumber}/links/{linkIndex}/?appSid={appSid}&storage={storage}&folder={folder}'; | |||||||||
| 4216 | |||||||||||
| 4217 | 0 | $_resource_path =~ s/\Q&\E/&/g; | |||||||||
| 4218 | 0 | $_resource_path =~ s/\Q\/?\E/?/g; | |||||||||
| 4219 | 0 | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | |||||||||
| 4220 | 0 | $_resource_path =~ s/\Q{path}\E/{Path}/g; | |||||||||
| 4221 | |||||||||||
| 4222 | 0 | my $_method = 'GET'; | |||||||||
| 4223 | 0 | my $query_params = {}; | |||||||||
| 4224 | 0 | my $header_params = {}; | |||||||||
| 4225 | 0 | my $form_params = {}; | |||||||||
| 4226 | |||||||||||
| 4227 | # 'Accept' and 'Content-Type' header | ||||||||||
| 4228 | 0 | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | |||||||||
| 4229 | 0 | ▶ | if ($_header_accept) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4230 | 0 | $header_params->{'Accept'} = $_header_accept; | |||||||||
| 4231 | } | ||||||||||
| 4232 | 0 | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | |||||||||
| 4233 | |||||||||||
| 4234 | # query params | ||||||||||
| 4235 | 0 | ▶ | if ( exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4236 | 0 | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | |||||||||
| 4237 | }else{ | ||||||||||
| 4238 | 0 | $_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; | |||||||||
| 4239 | }# query params | ||||||||||
| 4240 | 0 | ▶ | if ( exists $args{'pageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4241 | 0 | $_resource_path =~ s/\Q{pageNumber}\E/$args{'pageNumber'}/g; | |||||||||
| 4242 | }else{ | ||||||||||
| 4243 | 0 | $_resource_path =~ s/[?&]pageNumber.*?(?=&|\?|$)//g; | |||||||||
| 4244 | }# query params | ||||||||||
| 4245 | 0 | ▶ | if ( exists $args{'linkIndex'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4246 | 0 | $_resource_path =~ s/\Q{linkIndex}\E/$args{'linkIndex'}/g; | |||||||||
| 4247 | }else{ | ||||||||||
| 4248 | 0 | $_resource_path =~ s/[?&]linkIndex.*?(?=&|\?|$)//g; | |||||||||
| 4249 | }# query params | ||||||||||
| 4250 | 0 | ▶ | if ( exists $args{'storage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4251 | 0 | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | |||||||||
| 4252 | }else{ | ||||||||||
| 4253 | 0 | $_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; | |||||||||
| 4254 | }# query params | ||||||||||
| 4255 | 0 | ▶ | if ( exists $args{'folder'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4256 | 0 | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | |||||||||
| 4257 | }else{ | ||||||||||
| 4258 | 0 | $_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; | |||||||||
| 4259 | } | ||||||||||
| 4260 | |||||||||||
| 4261 | |||||||||||
| 4262 | 0 | my $_body_data; | |||||||||
| 4263 | |||||||||||
| 4264 | |||||||||||
| 4265 | |||||||||||
| 4266 | |||||||||||
| 4267 | # authentication setting, if any | ||||||||||
| 4268 | 0 | my $auth_settings = []; | |||||||||
| 4269 | |||||||||||
| 4270 | # make the API Call | ||||||||||
| 4271 | 0 | my $response = $self->{api_client}->call_api($_resource_path, $_method, | |||||||||
| 4272 | $query_params, $form_params, | ||||||||||
| 4273 | $header_params, $_body_data, $auth_settings); | ||||||||||
| 4274 | 0 | ▶ | if (!$response) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4275 | 0 | return; | |||||||||
| 4276 | } | ||||||||||
| 4277 | |||||||||||
| 4278 | 0 | ▶ | if($AsposePdfCloud::Configuration::debug){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4279 | 0 | print "\nResponse Content: ".$response->content; | |||||||||
| 4280 | } | ||||||||||
| 4281 | |||||||||||
| 4282 | 0 | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'LinkAnnotationResponse', $response->header('content-type')); | |||||||||
| 4283 | 0 | return $_response_object; | |||||||||
| 4284 | |||||||||||
| 4285 | } | ||||||||||
| 4286 | # | ||||||||||
| 4287 | # PostMovePage | ||||||||||
| 4288 | # | ||||||||||
| 4289 | # Move page to new position. | ||||||||||
| 4290 | # | ||||||||||
| 4291 | # @param String $name The document name. (required) | ||||||||||
| 4292 | # @param String $pageNumber The page number. (required) | ||||||||||
| 4293 | # @param String $newIndex The new page position/index. (required) | ||||||||||
| 4294 | # @param String $storage The document storage. (optional) | ||||||||||
| 4295 | # @param String $folder The document folder. (optional) | ||||||||||
| 4296 | # @return SaaSposeResponse | ||||||||||
| 4297 | # | ||||||||||
| 4298 | sub PostMovePage { | ||||||||||
| 4299 | 0 | ▶ | my ($self, %args) = @_; | ||||||||
|
Subroutine
PostMovePage: not called CC=12 SCAR=50.5
Pod
undocumented
| |||||||||||
| 4300 | |||||||||||
| 4301 | |||||||||||
| 4302 | # verify the required parameter 'name' is set | ||||||||||
| 4303 | 0 | ▶ | unless (exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4304 | 0 | croak("Missing the required parameter 'name' when calling PostMovePage"); | |||||||||
| 4305 | } | ||||||||||
| 4306 | |||||||||||
| 4307 | # verify the required parameter 'pageNumber' is set | ||||||||||
| 4308 | 0 | ▶ | unless (exists $args{'pageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4309 | 0 | croak("Missing the required parameter 'pageNumber' when calling PostMovePage"); | |||||||||
| 4310 | } | ||||||||||
| 4311 | |||||||||||
| 4312 | # verify the required parameter 'newIndex' is set | ||||||||||
| 4313 | 0 | ▶ | unless (exists $args{'newIndex'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4314 | 0 | croak("Missing the required parameter 'newIndex' when calling PostMovePage"); | |||||||||
| 4315 | } | ||||||||||
| 4316 | |||||||||||
| 4317 | |||||||||||
| 4318 | # parse inputs | ||||||||||
| 4319 | 0 | my $_resource_path = '/pdf/{name}/pages/{pageNumber}/movePage/?newIndex={newIndex}&appSid={appSid}&storage={storage}&folder={folder}'; | |||||||||
| 4320 | |||||||||||
| 4321 | 0 | $_resource_path =~ s/\Q&\E/&/g; | |||||||||
| 4322 | 0 | $_resource_path =~ s/\Q\/?\E/?/g; | |||||||||
| 4323 | 0 | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | |||||||||
| 4324 | 0 | $_resource_path =~ s/\Q{path}\E/{Path}/g; | |||||||||
| 4325 | |||||||||||
| 4326 | 0 | my $_method = 'POST'; | |||||||||
| 4327 | 0 | my $query_params = {}; | |||||||||
| 4328 | 0 | my $header_params = {}; | |||||||||
| 4329 | 0 | my $form_params = {}; | |||||||||
| 4330 | |||||||||||
| 4331 | # 'Accept' and 'Content-Type' header | ||||||||||
| 4332 | 0 | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | |||||||||
| 4333 | 0 | ▶ | if ($_header_accept) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4334 | 0 | $header_params->{'Accept'} = $_header_accept; | |||||||||
| 4335 | } | ||||||||||
| 4336 | 0 | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | |||||||||
| 4337 | |||||||||||
| 4338 | # query params | ||||||||||
| 4339 | 0 | ▶ | if ( exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4340 | 0 | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | |||||||||
| 4341 | }else{ | ||||||||||
| 4342 | 0 | $_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; | |||||||||
| 4343 | }# query params | ||||||||||
| 4344 | 0 | ▶ | if ( exists $args{'pageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4345 | 0 | $_resource_path =~ s/\Q{pageNumber}\E/$args{'pageNumber'}/g; | |||||||||
| 4346 | }else{ | ||||||||||
| 4347 | 0 | $_resource_path =~ s/[?&]pageNumber.*?(?=&|\?|$)//g; | |||||||||
| 4348 | }# query params | ||||||||||
| 4349 | 0 | ▶ | if ( exists $args{'newIndex'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4350 | 0 | $_resource_path =~ s/\Q{newIndex}\E/$args{'newIndex'}/g; | |||||||||
| 4351 | }else{ | ||||||||||
| 4352 | 0 | $_resource_path =~ s/[?&]newIndex.*?(?=&|\?|$)//g; | |||||||||
| 4353 | }# query params | ||||||||||
| 4354 | 0 | ▶ | if ( exists $args{'storage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4355 | 0 | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | |||||||||
| 4356 | }else{ | ||||||||||
| 4357 | 0 | $_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; | |||||||||
| 4358 | }# query params | ||||||||||
| 4359 | 0 | ▶ | if ( exists $args{'folder'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4360 | 0 | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | |||||||||
| 4361 | }else{ | ||||||||||
| 4362 | 0 | $_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; | |||||||||
| 4363 | } | ||||||||||
| 4364 | |||||||||||
| 4365 | |||||||||||
| 4366 | 0 | my $_body_data; | |||||||||
| 4367 | |||||||||||
| 4368 | |||||||||||
| 4369 | |||||||||||
| 4370 | |||||||||||
| 4371 | # authentication setting, if any | ||||||||||
| 4372 | 0 | my $auth_settings = []; | |||||||||
| 4373 | |||||||||||
| 4374 | # make the API Call | ||||||||||
| 4375 | 0 | my $response = $self->{api_client}->call_api($_resource_path, $_method, | |||||||||
| 4376 | $query_params, $form_params, | ||||||||||
| 4377 | $header_params, $_body_data, $auth_settings); | ||||||||||
| 4378 | 0 | ▶ | if (!$response) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4379 | 0 | return; | |||||||||
| 4380 | } | ||||||||||
| 4381 | |||||||||||
| 4382 | 0 | ▶ | if($AsposePdfCloud::Configuration::debug){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4383 | 0 | print "\nResponse Content: ".$response->content; | |||||||||
| 4384 | } | ||||||||||
| 4385 | |||||||||||
| 4386 | 0 | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SaaSposeResponse', $response->header('content-type')); | |||||||||
| 4387 | 0 | return $_response_object; | |||||||||
| 4388 | |||||||||||
| 4389 | } | ||||||||||
| 4390 | # | ||||||||||
| 4391 | # PostPageReplaceText | ||||||||||
| 4392 | # | ||||||||||
| 4393 | # Page's replace text method. | ||||||||||
| 4394 | # | ||||||||||
| 4395 | # @param String $name (required) | ||||||||||
| 4396 | # @param String $pageNumber (required) | ||||||||||
| 4397 | # @param String $storage (optional) | ||||||||||
| 4398 | # @param String $folder (optional) | ||||||||||
| 4399 | # @param TextReplace $body (required) | ||||||||||
| 4400 | # @return PageTextReplaceResponse | ||||||||||
| 4401 | # | ||||||||||
| 4402 | sub PostPageReplaceText { | ||||||||||
| 4403 | 0 | ▶ | my ($self, %args) = @_; | ||||||||
|
Subroutine
PostPageReplaceText: not called CC=12 SCAR=50.5
Pod
undocumented
| |||||||||||
| 4404 | |||||||||||
| 4405 | |||||||||||
| 4406 | # verify the required parameter 'name' is set | ||||||||||
| 4407 | 0 | ▶ | unless (exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4408 | 0 | croak("Missing the required parameter 'name' when calling PostPageReplaceText"); | |||||||||
| 4409 | } | ||||||||||
| 4410 | |||||||||||
| 4411 | # verify the required parameter 'pageNumber' is set | ||||||||||
| 4412 | 0 | ▶ | unless (exists $args{'pageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4413 | 0 | croak("Missing the required parameter 'pageNumber' when calling PostPageReplaceText"); | |||||||||
| 4414 | } | ||||||||||
| 4415 | |||||||||||
| 4416 | # verify the required parameter 'body' is set | ||||||||||
| 4417 | 0 | ▶ | unless (exists $args{'body'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4418 | 0 | croak("Missing the required parameter 'body' when calling PostPageReplaceText"); | |||||||||
| 4419 | } | ||||||||||
| 4420 | |||||||||||
| 4421 | |||||||||||
| 4422 | # parse inputs | ||||||||||
| 4423 | 0 | my $_resource_path = '/pdf/{name}/pages/{pageNumber}/replaceText/?appSid={appSid}&storage={storage}&folder={folder}'; | |||||||||
| 4424 | |||||||||||
| 4425 | 0 | $_resource_path =~ s/\Q&\E/&/g; | |||||||||
| 4426 | 0 | $_resource_path =~ s/\Q\/?\E/?/g; | |||||||||
| 4427 | 0 | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | |||||||||
| 4428 | 0 | $_resource_path =~ s/\Q{path}\E/{Path}/g; | |||||||||
| 4429 | |||||||||||
| 4430 | 0 | my $_method = 'POST'; | |||||||||
| 4431 | 0 | my $query_params = {}; | |||||||||
| 4432 | 0 | my $header_params = {}; | |||||||||
| 4433 | 0 | my $form_params = {}; | |||||||||
| 4434 | |||||||||||
| 4435 | # 'Accept' and 'Content-Type' header | ||||||||||
| 4436 | 0 | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | |||||||||
| 4437 | 0 | ▶ | if ($_header_accept) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4438 | 0 | $header_params->{'Accept'} = $_header_accept; | |||||||||
| 4439 | } | ||||||||||
| 4440 | 0 | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | |||||||||
| 4441 | |||||||||||
| 4442 | # query params | ||||||||||
| 4443 | 0 | ▶ | if ( exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4444 | 0 | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | |||||||||
| 4445 | }else{ | ||||||||||
| 4446 | 0 | $_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; | |||||||||
| 4447 | }# query params | ||||||||||
| 4448 | 0 | ▶ | if ( exists $args{'pageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4449 | 0 | $_resource_path =~ s/\Q{pageNumber}\E/$args{'pageNumber'}/g; | |||||||||
| 4450 | }else{ | ||||||||||
| 4451 | 0 | $_resource_path =~ s/[?&]pageNumber.*?(?=&|\?|$)//g; | |||||||||
| 4452 | }# query params | ||||||||||
| 4453 | 0 | ▶ | if ( exists $args{'storage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4454 | 0 | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | |||||||||
| 4455 | }else{ | ||||||||||
| 4456 | 0 | $_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; | |||||||||
| 4457 | }# query params | ||||||||||
| 4458 | 0 | ▶ | if ( exists $args{'folder'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4459 | 0 | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | |||||||||
| 4460 | }else{ | ||||||||||
| 4461 | 0 | $_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; | |||||||||
| 4462 | } | ||||||||||
| 4463 | |||||||||||
| 4464 | |||||||||||
| 4465 | 0 | my $_body_data; | |||||||||
| 4466 | |||||||||||
| 4467 | |||||||||||
| 4468 | # body params | ||||||||||
| 4469 | 0 | ▶ | if ( exists $args{'body'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4470 | 0 | $_body_data = $args{'body'}; | |||||||||
| 4471 | } | ||||||||||
| 4472 | |||||||||||
| 4473 | # authentication setting, if any | ||||||||||
| 4474 | 0 | my $auth_settings = []; | |||||||||
| 4475 | |||||||||||
| 4476 | # make the API Call | ||||||||||
| 4477 | 0 | my $response = $self->{api_client}->call_api($_resource_path, $_method, | |||||||||
| 4478 | $query_params, $form_params, | ||||||||||
| 4479 | $header_params, $_body_data, $auth_settings); | ||||||||||
| 4480 | 0 | ▶ | if (!$response) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4481 | 0 | return; | |||||||||
| 4482 | } | ||||||||||
| 4483 | |||||||||||
| 4484 | 0 | ▶ | if($AsposePdfCloud::Configuration::debug){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4485 | 0 | print "\nResponse Content: ".$response->content; | |||||||||
| 4486 | } | ||||||||||
| 4487 | |||||||||||
| 4488 | 0 | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'PageTextReplaceResponse', $response->header('content-type')); | |||||||||
| 4489 | 0 | return $_response_object; | |||||||||
| 4490 | |||||||||||
| 4491 | } | ||||||||||
| 4492 | # | ||||||||||
| 4493 | # PostPageReplaceTextList | ||||||||||
| 4494 | # | ||||||||||
| 4495 | # Page's replace text method. | ||||||||||
| 4496 | # | ||||||||||
| 4497 | # @param String $name (required) | ||||||||||
| 4498 | # @param String $pageNumber (required) | ||||||||||
| 4499 | # @param String $storage (optional) | ||||||||||
| 4500 | # @param String $folder (optional) | ||||||||||
| 4501 | # @param TextReplaceListRequest $body (required) | ||||||||||
| 4502 | # @return PageTextReplaceResponse | ||||||||||
| 4503 | # | ||||||||||
| 4504 | sub PostPageReplaceTextList { | ||||||||||
| 4505 | 0 | ▶ | my ($self, %args) = @_; | ||||||||
|
Subroutine
PostPageReplaceTextList: not called CC=12 SCAR=50.5
Pod
undocumented
| |||||||||||
| 4506 | |||||||||||
| 4507 | |||||||||||
| 4508 | # verify the required parameter 'name' is set | ||||||||||
| 4509 | 0 | ▶ | unless (exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4510 | 0 | croak("Missing the required parameter 'name' when calling PostPageReplaceTextList"); | |||||||||
| 4511 | } | ||||||||||
| 4512 | |||||||||||
| 4513 | # verify the required parameter 'pageNumber' is set | ||||||||||
| 4514 | 0 | ▶ | unless (exists $args{'pageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4515 | 0 | croak("Missing the required parameter 'pageNumber' when calling PostPageReplaceTextList"); | |||||||||
| 4516 | } | ||||||||||
| 4517 | |||||||||||
| 4518 | # verify the required parameter 'body' is set | ||||||||||
| 4519 | 0 | ▶ | unless (exists $args{'body'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4520 | 0 | croak("Missing the required parameter 'body' when calling PostPageReplaceTextList"); | |||||||||
| 4521 | } | ||||||||||
| 4522 | |||||||||||
| 4523 | |||||||||||
| 4524 | # parse inputs | ||||||||||
| 4525 | 0 | my $_resource_path = '/pdf/{name}/pages/{pageNumber}/replaceTextList/?appSid={appSid}&storage={storage}&folder={folder}'; | |||||||||
| 4526 | |||||||||||
| 4527 | 0 | $_resource_path =~ s/\Q&\E/&/g; | |||||||||
| 4528 | 0 | $_resource_path =~ s/\Q\/?\E/?/g; | |||||||||
| 4529 | 0 | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | |||||||||
| 4530 | 0 | $_resource_path =~ s/\Q{path}\E/{Path}/g; | |||||||||
| 4531 | |||||||||||
| 4532 | 0 | my $_method = 'POST'; | |||||||||
| 4533 | 0 | my $query_params = {}; | |||||||||
| 4534 | 0 | my $header_params = {}; | |||||||||
| 4535 | 0 | my $form_params = {}; | |||||||||
| 4536 | |||||||||||
| 4537 | # 'Accept' and 'Content-Type' header | ||||||||||
| 4538 | 0 | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | |||||||||
| 4539 | 0 | ▶ | if ($_header_accept) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4540 | 0 | $header_params->{'Accept'} = $_header_accept; | |||||||||
| 4541 | } | ||||||||||
| 4542 | 0 | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | |||||||||
| 4543 | |||||||||||
| 4544 | # query params | ||||||||||
| 4545 | 0 | ▶ | if ( exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4546 | 0 | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | |||||||||
| 4547 | }else{ | ||||||||||
| 4548 | 0 | $_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; | |||||||||
| 4549 | }# query params | ||||||||||
| 4550 | 0 | ▶ | if ( exists $args{'pageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4551 | 0 | $_resource_path =~ s/\Q{pageNumber}\E/$args{'pageNumber'}/g; | |||||||||
| 4552 | }else{ | ||||||||||
| 4553 | 0 | $_resource_path =~ s/[?&]pageNumber.*?(?=&|\?|$)//g; | |||||||||
| 4554 | }# query params | ||||||||||
| 4555 | 0 | ▶ | if ( exists $args{'storage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4556 | 0 | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | |||||||||
| 4557 | }else{ | ||||||||||
| 4558 | 0 | $_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; | |||||||||
| 4559 | }# query params | ||||||||||
| 4560 | 0 | ▶ | if ( exists $args{'folder'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4561 | 0 | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | |||||||||
| 4562 | }else{ | ||||||||||
| 4563 | 0 | $_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; | |||||||||
| 4564 | } | ||||||||||
| 4565 | |||||||||||
| 4566 | |||||||||||
| 4567 | 0 | my $_body_data; | |||||||||
| 4568 | |||||||||||
| 4569 | |||||||||||
| 4570 | # body params | ||||||||||
| 4571 | 0 | ▶ | if ( exists $args{'body'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4572 | 0 | $_body_data = $args{'body'}; | |||||||||
| 4573 | } | ||||||||||
| 4574 | |||||||||||
| 4575 | # authentication setting, if any | ||||||||||
| 4576 | 0 | my $auth_settings = []; | |||||||||
| 4577 | |||||||||||
| 4578 | # make the API Call | ||||||||||
| 4579 | 0 | my $response = $self->{api_client}->call_api($_resource_path, $_method, | |||||||||
| 4580 | $query_params, $form_params, | ||||||||||
| 4581 | $header_params, $_body_data, $auth_settings); | ||||||||||
| 4582 | 0 | ▶ | if (!$response) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4583 | 0 | return; | |||||||||
| 4584 | } | ||||||||||
| 4585 | |||||||||||
| 4586 | 0 | ▶ | if($AsposePdfCloud::Configuration::debug){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4587 | 0 | print "\nResponse Content: ".$response->content; | |||||||||
| 4588 | } | ||||||||||
| 4589 | |||||||||||
| 4590 | 0 | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'PageTextReplaceResponse', $response->header('content-type')); | |||||||||
| 4591 | 0 | return $_response_object; | |||||||||
| 4592 | |||||||||||
| 4593 | } | ||||||||||
| 4594 | # | ||||||||||
| 4595 | # PostSignPage | ||||||||||
| 4596 | # | ||||||||||
| 4597 | # Sign page. | ||||||||||
| 4598 | # | ||||||||||
| 4599 | # @param String $name The document name. (required) | ||||||||||
| 4600 | # @param String $pageNumber The page number. (required) | ||||||||||
| 4601 | # @param String $storage The document storage. (optional) | ||||||||||
| 4602 | # @param String $folder The document folder. (optional) | ||||||||||
| 4603 | # @param Signature $body with the signature data. (required) | ||||||||||
| 4604 | # @return SaaSposeResponse | ||||||||||
| 4605 | # | ||||||||||
| 4606 | sub PostSignPage { | ||||||||||
| 4607 | 0 | ▶ | my ($self, %args) = @_; | ||||||||
|
Subroutine
PostSignPage: not called CC=12 SCAR=50.5
Pod
undocumented
| |||||||||||
| 4608 | |||||||||||
| 4609 | |||||||||||
| 4610 | # verify the required parameter 'name' is set | ||||||||||
| 4611 | 0 | ▶ | unless (exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4612 | 0 | croak("Missing the required parameter 'name' when calling PostSignPage"); | |||||||||
| 4613 | } | ||||||||||
| 4614 | |||||||||||
| 4615 | # verify the required parameter 'pageNumber' is set | ||||||||||
| 4616 | 0 | ▶ | unless (exists $args{'pageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4617 | 0 | croak("Missing the required parameter 'pageNumber' when calling PostSignPage"); | |||||||||
| 4618 | } | ||||||||||
| 4619 | |||||||||||
| 4620 | # verify the required parameter 'body' is set | ||||||||||
| 4621 | 0 | ▶ | unless (exists $args{'body'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4622 | 0 | croak("Missing the required parameter 'body' when calling PostSignPage"); | |||||||||
| 4623 | } | ||||||||||
| 4624 | |||||||||||
| 4625 | |||||||||||
| 4626 | # parse inputs | ||||||||||
| 4627 | 0 | my $_resource_path = '/pdf/{name}/pages/{pageNumber}/sign/?appSid={appSid}&storage={storage}&folder={folder}'; | |||||||||
| 4628 | |||||||||||
| 4629 | 0 | $_resource_path =~ s/\Q&\E/&/g; | |||||||||
| 4630 | 0 | $_resource_path =~ s/\Q\/?\E/?/g; | |||||||||
| 4631 | 0 | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | |||||||||
| 4632 | 0 | $_resource_path =~ s/\Q{path}\E/{Path}/g; | |||||||||
| 4633 | |||||||||||
| 4634 | 0 | my $_method = 'POST'; | |||||||||
| 4635 | 0 | my $query_params = {}; | |||||||||
| 4636 | 0 | my $header_params = {}; | |||||||||
| 4637 | 0 | my $form_params = {}; | |||||||||
| 4638 | |||||||||||
| 4639 | # 'Accept' and 'Content-Type' header | ||||||||||
| 4640 | 0 | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | |||||||||
| 4641 | 0 | ▶ | if ($_header_accept) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4642 | 0 | $header_params->{'Accept'} = $_header_accept; | |||||||||
| 4643 | } | ||||||||||
| 4644 | 0 | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | |||||||||
| 4645 | |||||||||||
| 4646 | # query params | ||||||||||
| 4647 | 0 | ▶ | if ( exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4648 | 0 | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | |||||||||
| 4649 | }else{ | ||||||||||
| 4650 | 0 | $_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; | |||||||||
| 4651 | }# query params | ||||||||||
| 4652 | 0 | ▶ | if ( exists $args{'pageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4653 | 0 | $_resource_path =~ s/\Q{pageNumber}\E/$args{'pageNumber'}/g; | |||||||||
| 4654 | }else{ | ||||||||||
| 4655 | 0 | $_resource_path =~ s/[?&]pageNumber.*?(?=&|\?|$)//g; | |||||||||
| 4656 | }# query params | ||||||||||
| 4657 | 0 | ▶ | if ( exists $args{'storage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4658 | 0 | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | |||||||||
| 4659 | }else{ | ||||||||||
| 4660 | 0 | $_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; | |||||||||
| 4661 | }# query params | ||||||||||
| 4662 | 0 | ▶ | if ( exists $args{'folder'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4663 | 0 | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | |||||||||
| 4664 | }else{ | ||||||||||
| 4665 | 0 | $_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; | |||||||||
| 4666 | } | ||||||||||
| 4667 | |||||||||||
| 4668 | |||||||||||
| 4669 | 0 | my $_body_data; | |||||||||
| 4670 | |||||||||||
| 4671 | |||||||||||
| 4672 | # body params | ||||||||||
| 4673 | 0 | ▶ | if ( exists $args{'body'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4674 | 0 | $_body_data = $args{'body'}; | |||||||||
| 4675 | } | ||||||||||
| 4676 | |||||||||||
| 4677 | # authentication setting, if any | ||||||||||
| 4678 | 0 | my $auth_settings = []; | |||||||||
| 4679 | |||||||||||
| 4680 | # make the API Call | ||||||||||
| 4681 | 0 | my $response = $self->{api_client}->call_api($_resource_path, $_method, | |||||||||
| 4682 | $query_params, $form_params, | ||||||||||
| 4683 | $header_params, $_body_data, $auth_settings); | ||||||||||
| 4684 | 0 | ▶ | if (!$response) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4685 | 0 | return; | |||||||||
| 4686 | } | ||||||||||
| 4687 | |||||||||||
| 4688 | 0 | ▶ | if($AsposePdfCloud::Configuration::debug){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4689 | 0 | print "\nResponse Content: ".$response->content; | |||||||||
| 4690 | } | ||||||||||
| 4691 | |||||||||||
| 4692 | 0 | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SaaSposeResponse', $response->header('content-type')); | |||||||||
| 4693 | 0 | return $_response_object; | |||||||||
| 4694 | |||||||||||
| 4695 | } | ||||||||||
| 4696 | # | ||||||||||
| 4697 | # PutPageAddStamp | ||||||||||
| 4698 | # | ||||||||||
| 4699 | # Add page stamp. | ||||||||||
| 4700 | # | ||||||||||
| 4701 | # @param String $name The document name. (required) | ||||||||||
| 4702 | # @param String $pageNumber The page number. (required) | ||||||||||
| 4703 | # @param String $storage The document storage. (optional) | ||||||||||
| 4704 | # @param String $folder The document folder. (optional) | ||||||||||
| 4705 | # @param Stamp $body with data. (required) | ||||||||||
| 4706 | # @return SaaSposeResponse | ||||||||||
| 4707 | # | ||||||||||
| 4708 | sub PutPageAddStamp { | ||||||||||
| 4709 | 0 | ▶ | my ($self, %args) = @_; | ||||||||
|
Subroutine
PutPageAddStamp: not called CC=12 SCAR=50.5
Pod
undocumented
| |||||||||||
| 4710 | |||||||||||
| 4711 | |||||||||||
| 4712 | # verify the required parameter 'name' is set | ||||||||||
| 4713 | 0 | ▶ | unless (exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4714 | 0 | croak("Missing the required parameter 'name' when calling PutPageAddStamp"); | |||||||||
| 4715 | } | ||||||||||
| 4716 | |||||||||||
| 4717 | # verify the required parameter 'pageNumber' is set | ||||||||||
| 4718 | 0 | ▶ | unless (exists $args{'pageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4719 | 0 | croak("Missing the required parameter 'pageNumber' when calling PutPageAddStamp"); | |||||||||
| 4720 | } | ||||||||||
| 4721 | |||||||||||
| 4722 | # verify the required parameter 'body' is set | ||||||||||
| 4723 | 0 | ▶ | unless (exists $args{'body'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4724 | 0 | croak("Missing the required parameter 'body' when calling PutPageAddStamp"); | |||||||||
| 4725 | } | ||||||||||
| 4726 | |||||||||||
| 4727 | |||||||||||
| 4728 | # parse inputs | ||||||||||
| 4729 | 0 | my $_resource_path = '/pdf/{name}/pages/{pageNumber}/stamp/?appSid={appSid}&storage={storage}&folder={folder}'; | |||||||||
| 4730 | |||||||||||
| 4731 | 0 | $_resource_path =~ s/\Q&\E/&/g; | |||||||||
| 4732 | 0 | $_resource_path =~ s/\Q\/?\E/?/g; | |||||||||
| 4733 | 0 | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | |||||||||
| 4734 | 0 | $_resource_path =~ s/\Q{path}\E/{Path}/g; | |||||||||
| 4735 | |||||||||||
| 4736 | 0 | my $_method = 'PUT'; | |||||||||
| 4737 | 0 | my $query_params = {}; | |||||||||
| 4738 | 0 | my $header_params = {}; | |||||||||
| 4739 | 0 | my $form_params = {}; | |||||||||
| 4740 | |||||||||||
| 4741 | # 'Accept' and 'Content-Type' header | ||||||||||
| 4742 | 0 | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | |||||||||
| 4743 | 0 | ▶ | if ($_header_accept) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4744 | 0 | $header_params->{'Accept'} = $_header_accept; | |||||||||
| 4745 | } | ||||||||||
| 4746 | 0 | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | |||||||||
| 4747 | |||||||||||
| 4748 | # query params | ||||||||||
| 4749 | 0 | ▶ | if ( exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4750 | 0 | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | |||||||||
| 4751 | }else{ | ||||||||||
| 4752 | 0 | $_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; | |||||||||
| 4753 | }# query params | ||||||||||
| 4754 | 0 | ▶ | if ( exists $args{'pageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4755 | 0 | $_resource_path =~ s/\Q{pageNumber}\E/$args{'pageNumber'}/g; | |||||||||
| 4756 | }else{ | ||||||||||
| 4757 | 0 | $_resource_path =~ s/[?&]pageNumber.*?(?=&|\?|$)//g; | |||||||||
| 4758 | }# query params | ||||||||||
| 4759 | 0 | ▶ | if ( exists $args{'storage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4760 | 0 | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | |||||||||
| 4761 | }else{ | ||||||||||
| 4762 | 0 | $_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; | |||||||||
| 4763 | }# query params | ||||||||||
| 4764 | 0 | ▶ | if ( exists $args{'folder'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4765 | 0 | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | |||||||||
| 4766 | }else{ | ||||||||||
| 4767 | 0 | $_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; | |||||||||
| 4768 | } | ||||||||||
| 4769 | |||||||||||
| 4770 | |||||||||||
| 4771 | 0 | my $_body_data; | |||||||||
| 4772 | |||||||||||
| 4773 | |||||||||||
| 4774 | # body params | ||||||||||
| 4775 | 0 | ▶ | if ( exists $args{'body'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4776 | 0 | $_body_data = $args{'body'}; | |||||||||
| 4777 | } | ||||||||||
| 4778 | |||||||||||
| 4779 | # authentication setting, if any | ||||||||||
| 4780 | 0 | my $auth_settings = []; | |||||||||
| 4781 | |||||||||||
| 4782 | # make the API Call | ||||||||||
| 4783 | 0 | my $response = $self->{api_client}->call_api($_resource_path, $_method, | |||||||||
| 4784 | $query_params, $form_params, | ||||||||||
| 4785 | $header_params, $_body_data, $auth_settings); | ||||||||||
| 4786 | 0 | ▶ | if (!$response) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4787 | 0 | return; | |||||||||
| 4788 | } | ||||||||||
| 4789 | |||||||||||
| 4790 | 0 | ▶ | if($AsposePdfCloud::Configuration::debug){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4791 | 0 | print "\nResponse Content: ".$response->content; | |||||||||
| 4792 | } | ||||||||||
| 4793 | |||||||||||
| 4794 | 0 | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SaaSposeResponse', $response->header('content-type')); | |||||||||
| 4795 | 0 | return $_response_object; | |||||||||
| 4796 | |||||||||||
| 4797 | } | ||||||||||
| 4798 | # | ||||||||||
| 4799 | # GetPageTextItems | ||||||||||
| 4800 | # | ||||||||||
| 4801 | # Read page text items. | ||||||||||
| 4802 | # | ||||||||||
| 4803 | # @param String $name (required) | ||||||||||
| 4804 | # @param String $pageNumber (required) | ||||||||||
| 4805 | # @param String $withEmpty (optional) | ||||||||||
| 4806 | # @param String $storage (optional) | ||||||||||
| 4807 | # @param String $folder (optional) | ||||||||||
| 4808 | # @return TextItemsResponse | ||||||||||
| 4809 | # | ||||||||||
| 4810 | sub GetPageTextItems { | ||||||||||
| 4811 | 0 | ▶ | my ($self, %args) = @_; | ||||||||
|
Subroutine
GetPageTextItems: not called CC=11 SCAR=48.8
Pod
undocumented
| |||||||||||
| 4812 | |||||||||||
| 4813 | |||||||||||
| 4814 | # verify the required parameter 'name' is set | ||||||||||
| 4815 | 0 | ▶ | unless (exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4816 | 0 | croak("Missing the required parameter 'name' when calling GetPageTextItems"); | |||||||||
| 4817 | } | ||||||||||
| 4818 | |||||||||||
| 4819 | # verify the required parameter 'pageNumber' is set | ||||||||||
| 4820 | 0 | ▶ | unless (exists $args{'pageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4821 | 0 | croak("Missing the required parameter 'pageNumber' when calling GetPageTextItems"); | |||||||||
| 4822 | } | ||||||||||
| 4823 | |||||||||||
| 4824 | |||||||||||
| 4825 | # parse inputs | ||||||||||
| 4826 | 0 | my $_resource_path = '/pdf/{name}/pages/{pageNumber}/textItems/?appSid={appSid}&withEmpty={withEmpty}&storage={storage}&folder={folder}'; | |||||||||
| 4827 | |||||||||||
| 4828 | 0 | $_resource_path =~ s/\Q&\E/&/g; | |||||||||
| 4829 | 0 | $_resource_path =~ s/\Q\/?\E/?/g; | |||||||||
| 4830 | 0 | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | |||||||||
| 4831 | 0 | $_resource_path =~ s/\Q{path}\E/{Path}/g; | |||||||||
| 4832 | |||||||||||
| 4833 | 0 | my $_method = 'GET'; | |||||||||
| 4834 | 0 | my $query_params = {}; | |||||||||
| 4835 | 0 | my $header_params = {}; | |||||||||
| 4836 | 0 | my $form_params = {}; | |||||||||
| 4837 | |||||||||||
| 4838 | # 'Accept' and 'Content-Type' header | ||||||||||
| 4839 | 0 | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | |||||||||
| 4840 | 0 | ▶ | if ($_header_accept) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4841 | 0 | $header_params->{'Accept'} = $_header_accept; | |||||||||
| 4842 | } | ||||||||||
| 4843 | 0 | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | |||||||||
| 4844 | |||||||||||
| 4845 | # query params | ||||||||||
| 4846 | 0 | ▶ | if ( exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4847 | 0 | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | |||||||||
| 4848 | }else{ | ||||||||||
| 4849 | 0 | $_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; | |||||||||
| 4850 | }# query params | ||||||||||
| 4851 | 0 | ▶ | if ( exists $args{'pageNumber'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4852 | 0 | $_resource_path =~ s/\Q{pageNumber}\E/$args{'pageNumber'}/g; | |||||||||
| 4853 | }else{ | ||||||||||
| 4854 | 0 | $_resource_path =~ s/[?&]pageNumber.*?(?=&|\?|$)//g; | |||||||||
| 4855 | }# query params | ||||||||||
| 4856 | 0 | ▶ | if ( exists $args{'withEmpty'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4857 | 0 | $_resource_path =~ s/\Q{withEmpty}\E/$args{'withEmpty'}/g; | |||||||||
| 4858 | }else{ | ||||||||||
| 4859 | 0 | $_resource_path =~ s/[?&]withEmpty.*?(?=&|\?|$)//g; | |||||||||
| 4860 | }# query params | ||||||||||
| 4861 | 0 | ▶ | if ( exists $args{'storage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4862 | 0 | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | |||||||||
| 4863 | }else{ | ||||||||||
| 4864 | 0 | $_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; | |||||||||
| 4865 | }# query params | ||||||||||
| 4866 | 0 | ▶ | if ( exists $args{'folder'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4867 | 0 | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | |||||||||
| 4868 | }else{ | ||||||||||
| 4869 | 0 | $_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; | |||||||||
| 4870 | } | ||||||||||
| 4871 | |||||||||||
| 4872 | |||||||||||
| 4873 | 0 | my $_body_data; | |||||||||
| 4874 | |||||||||||
| 4875 | |||||||||||
| 4876 | |||||||||||
| 4877 | |||||||||||
| 4878 | # authentication setting, if any | ||||||||||
| 4879 | 0 | my $auth_settings = []; | |||||||||
| 4880 | |||||||||||
| 4881 | # make the API Call | ||||||||||
| 4882 | 0 | my $response = $self->{api_client}->call_api($_resource_path, $_method, | |||||||||
| 4883 | $query_params, $form_params, | ||||||||||
| 4884 | $header_params, $_body_data, $auth_settings); | ||||||||||
| 4885 | 0 | ▶ | if (!$response) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4886 | 0 | return; | |||||||||
| 4887 | } | ||||||||||
| 4888 | |||||||||||
| 4889 | 0 | ▶ | if($AsposePdfCloud::Configuration::debug){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4890 | 0 | print "\nResponse Content: ".$response->content; | |||||||||
| 4891 | } | ||||||||||
| 4892 | |||||||||||
| 4893 | 0 | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'TextItemsResponse', $response->header('content-type')); | |||||||||
| 4894 | 0 | return $_response_object; | |||||||||
| 4895 | |||||||||||
| 4896 | } | ||||||||||
| 4897 | # | ||||||||||
| 4898 | # PostDocumentReplaceText | ||||||||||
| 4899 | # | ||||||||||
| 4900 | # Document's replace text method. | ||||||||||
| 4901 | # | ||||||||||
| 4902 | # @param String $name (required) | ||||||||||
| 4903 | # @param String $storage (optional) | ||||||||||
| 4904 | # @param String $folder (optional) | ||||||||||
| 4905 | # @param TextReplace $body (required) | ||||||||||
| 4906 | # @return DocumentTextReplaceResponse | ||||||||||
| 4907 | # | ||||||||||
| 4908 | sub PostDocumentReplaceText { | ||||||||||
| 4909 | 0 | ▶ | my ($self, %args) = @_; | ||||||||
|
Subroutine
PostDocumentReplaceText: not called CC=10 SCAR=47.0
Pod
undocumented
| |||||||||||
| 4910 | |||||||||||
| 4911 | |||||||||||
| 4912 | # verify the required parameter 'name' is set | ||||||||||
| 4913 | 0 | ▶ | unless (exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4914 | 0 | croak("Missing the required parameter 'name' when calling PostDocumentReplaceText"); | |||||||||
| 4915 | } | ||||||||||
| 4916 | |||||||||||
| 4917 | # verify the required parameter 'body' is set | ||||||||||
| 4918 | 0 | ▶ | unless (exists $args{'body'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4919 | 0 | croak("Missing the required parameter 'body' when calling PostDocumentReplaceText"); | |||||||||
| 4920 | } | ||||||||||
| 4921 | |||||||||||
| 4922 | |||||||||||
| 4923 | # parse inputs | ||||||||||
| 4924 | 0 | my $_resource_path = '/pdf/{name}/replaceText/?appSid={appSid}&storage={storage}&folder={folder}'; | |||||||||
| 4925 | |||||||||||
| 4926 | 0 | $_resource_path =~ s/\Q&\E/&/g; | |||||||||
| 4927 | 0 | $_resource_path =~ s/\Q\/?\E/?/g; | |||||||||
| 4928 | 0 | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | |||||||||
| 4929 | 0 | $_resource_path =~ s/\Q{path}\E/{Path}/g; | |||||||||
| 4930 | |||||||||||
| 4931 | 0 | my $_method = 'POST'; | |||||||||
| 4932 | 0 | my $query_params = {}; | |||||||||
| 4933 | 0 | my $header_params = {}; | |||||||||
| 4934 | 0 | my $form_params = {}; | |||||||||
| 4935 | |||||||||||
| 4936 | # 'Accept' and 'Content-Type' header | ||||||||||
| 4937 | 0 | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | |||||||||
| 4938 | 0 | ▶ | if ($_header_accept) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4939 | 0 | $header_params->{'Accept'} = $_header_accept; | |||||||||
| 4940 | } | ||||||||||
| 4941 | 0 | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | |||||||||
| 4942 | |||||||||||
| 4943 | # query params | ||||||||||
| 4944 | 0 | ▶ | if ( exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4945 | 0 | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | |||||||||
| 4946 | }else{ | ||||||||||
| 4947 | 0 | $_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; | |||||||||
| 4948 | }# query params | ||||||||||
| 4949 | 0 | ▶ | if ( exists $args{'storage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4950 | 0 | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | |||||||||
| 4951 | }else{ | ||||||||||
| 4952 | 0 | $_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; | |||||||||
| 4953 | }# query params | ||||||||||
| 4954 | 0 | ▶ | if ( exists $args{'folder'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4955 | 0 | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | |||||||||
| 4956 | }else{ | ||||||||||
| 4957 | 0 | $_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; | |||||||||
| 4958 | } | ||||||||||
| 4959 | |||||||||||
| 4960 | |||||||||||
| 4961 | 0 | my $_body_data; | |||||||||
| 4962 | |||||||||||
| 4963 | |||||||||||
| 4964 | # body params | ||||||||||
| 4965 | 0 | ▶ | if ( exists $args{'body'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4966 | 0 | $_body_data = $args{'body'}; | |||||||||
| 4967 | } | ||||||||||
| 4968 | |||||||||||
| 4969 | # authentication setting, if any | ||||||||||
| 4970 | 0 | my $auth_settings = []; | |||||||||
| 4971 | |||||||||||
| 4972 | # make the API Call | ||||||||||
| 4973 | 0 | my $response = $self->{api_client}->call_api($_resource_path, $_method, | |||||||||
| 4974 | $query_params, $form_params, | ||||||||||
| 4975 | $header_params, $_body_data, $auth_settings); | ||||||||||
| 4976 | 0 | ▶ | if (!$response) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4977 | 0 | return; | |||||||||
| 4978 | } | ||||||||||
| 4979 | |||||||||||
| 4980 | 0 | ▶ | if($AsposePdfCloud::Configuration::debug){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 4981 | 0 | print "\nResponse Content: ".$response->content; | |||||||||
| 4982 | } | ||||||||||
| 4983 | |||||||||||
| 4984 | 0 | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'DocumentTextReplaceResponse', $response->header('content-type')); | |||||||||
| 4985 | 0 | return $_response_object; | |||||||||
| 4986 | |||||||||||
| 4987 | } | ||||||||||
| 4988 | # | ||||||||||
| 4989 | # PostDocumentReplaceTextList | ||||||||||
| 4990 | # | ||||||||||
| 4991 | # Document's replace text method. | ||||||||||
| 4992 | # | ||||||||||
| 4993 | # @param String $name (required) | ||||||||||
| 4994 | # @param String $storage (optional) | ||||||||||
| 4995 | # @param String $folder (optional) | ||||||||||
| 4996 | # @param TextReplaceListRequest $body (required) | ||||||||||
| 4997 | # @return DocumentTextReplaceResponse | ||||||||||
| 4998 | # | ||||||||||
| 4999 | sub PostDocumentReplaceTextList { | ||||||||||
| 5000 | 0 | ▶ | my ($self, %args) = @_; | ||||||||
|
Subroutine
PostDocumentReplaceTextList: not called CC=10 SCAR=47.0
Pod
undocumented
| |||||||||||
| 5001 | |||||||||||
| 5002 | |||||||||||
| 5003 | # verify the required parameter 'name' is set | ||||||||||
| 5004 | 0 | ▶ | unless (exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 5005 | 0 | croak("Missing the required parameter 'name' when calling PostDocumentReplaceTextList"); | |||||||||
| 5006 | } | ||||||||||
| 5007 | |||||||||||
| 5008 | # verify the required parameter 'body' is set | ||||||||||
| 5009 | 0 | ▶ | unless (exists $args{'body'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 5010 | 0 | croak("Missing the required parameter 'body' when calling PostDocumentReplaceTextList"); | |||||||||
| 5011 | } | ||||||||||
| 5012 | |||||||||||
| 5013 | |||||||||||
| 5014 | # parse inputs | ||||||||||
| 5015 | 0 | my $_resource_path = '/pdf/{name}/replaceTextList/?appSid={appSid}&storage={storage}&folder={folder}'; | |||||||||
| 5016 | |||||||||||
| 5017 | 0 | $_resource_path =~ s/\Q&\E/&/g; | |||||||||
| 5018 | 0 | $_resource_path =~ s/\Q\/?\E/?/g; | |||||||||
| 5019 | 0 | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | |||||||||
| 5020 | 0 | $_resource_path =~ s/\Q{path}\E/{Path}/g; | |||||||||
| 5021 | |||||||||||
| 5022 | 0 | my $_method = 'POST'; | |||||||||
| 5023 | 0 | my $query_params = {}; | |||||||||
| 5024 | 0 | my $header_params = {}; | |||||||||
| 5025 | 0 | my $form_params = {}; | |||||||||
| 5026 | |||||||||||
| 5027 | # 'Accept' and 'Content-Type' header | ||||||||||
| 5028 | 0 | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | |||||||||
| 5029 | 0 | ▶ | if ($_header_accept) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 5030 | 0 | $header_params->{'Accept'} = $_header_accept; | |||||||||
| 5031 | } | ||||||||||
| 5032 | 0 | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | |||||||||
| 5033 | |||||||||||
| 5034 | # query params | ||||||||||
| 5035 | 0 | ▶ | if ( exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 5036 | 0 | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | |||||||||
| 5037 | }else{ | ||||||||||
| 5038 | 0 | $_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; | |||||||||
| 5039 | }# query params | ||||||||||
| 5040 | 0 | ▶ | if ( exists $args{'storage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 5041 | 0 | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | |||||||||
| 5042 | }else{ | ||||||||||
| 5043 | 0 | $_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; | |||||||||
| 5044 | }# query params | ||||||||||
| 5045 | 0 | ▶ | if ( exists $args{'folder'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 5046 | 0 | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | |||||||||
| 5047 | }else{ | ||||||||||
| 5048 | 0 | $_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; | |||||||||
| 5049 | } | ||||||||||
| 5050 | |||||||||||
| 5051 | |||||||||||
| 5052 | 0 | my $_body_data; | |||||||||
| 5053 | |||||||||||
| 5054 | |||||||||||
| 5055 | # body params | ||||||||||
| 5056 | 0 | ▶ | if ( exists $args{'body'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 5057 | 0 | $_body_data = $args{'body'}; | |||||||||
| 5058 | } | ||||||||||
| 5059 | |||||||||||
| 5060 | # authentication setting, if any | ||||||||||
| 5061 | 0 | my $auth_settings = []; | |||||||||
| 5062 | |||||||||||
| 5063 | # make the API Call | ||||||||||
| 5064 | 0 | my $response = $self->{api_client}->call_api($_resource_path, $_method, | |||||||||
| 5065 | $query_params, $form_params, | ||||||||||
| 5066 | $header_params, $_body_data, $auth_settings); | ||||||||||
| 5067 | 0 | ▶ | if (!$response) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 5068 | 0 | return; | |||||||||
| 5069 | } | ||||||||||
| 5070 | |||||||||||
| 5071 | 0 | ▶ | if($AsposePdfCloud::Configuration::debug){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 5072 | 0 | print "\nResponse Content: ".$response->content; | |||||||||
| 5073 | } | ||||||||||
| 5074 | |||||||||||
| 5075 | 0 | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'DocumentTextReplaceResponse', $response->header('content-type')); | |||||||||
| 5076 | 0 | return $_response_object; | |||||||||
| 5077 | |||||||||||
| 5078 | } | ||||||||||
| 5079 | # | ||||||||||
| 5080 | # PostSignDocument | ||||||||||
| 5081 | # | ||||||||||
| 5082 | # Sign document. | ||||||||||
| 5083 | # | ||||||||||
| 5084 | # @param String $name The document name. (required) | ||||||||||
| 5085 | # @param String $storage The document storage. (optional) | ||||||||||
| 5086 | # @param String $folder The document folder. (optional) | ||||||||||
| 5087 | # @param Signature $body with signature data. (required) | ||||||||||
| 5088 | # @return SaaSposeResponse | ||||||||||
| 5089 | # | ||||||||||
| 5090 | sub PostSignDocument { | ||||||||||
| 5091 | 0 | ▶ | my ($self, %args) = @_; | ||||||||
|
Subroutine
PostSignDocument: not called CC=10 SCAR=47.0
Pod
undocumented
| |||||||||||
| 5092 | |||||||||||
| 5093 | |||||||||||
| 5094 | # verify the required parameter 'name' is set | ||||||||||
| 5095 | 0 | ▶ | unless (exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 5096 | 0 | croak("Missing the required parameter 'name' when calling PostSignDocument"); | |||||||||
| 5097 | } | ||||||||||
| 5098 | |||||||||||
| 5099 | # verify the required parameter 'body' is set | ||||||||||
| 5100 | 0 | ▶ | unless (exists $args{'body'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 5101 | 0 | croak("Missing the required parameter 'body' when calling PostSignDocument"); | |||||||||
| 5102 | } | ||||||||||
| 5103 | |||||||||||
| 5104 | |||||||||||
| 5105 | # parse inputs | ||||||||||
| 5106 | 0 | my $_resource_path = '/pdf/{name}/sign/?appSid={appSid}&storage={storage}&folder={folder}'; | |||||||||
| 5107 | |||||||||||
| 5108 | 0 | $_resource_path =~ s/\Q&\E/&/g; | |||||||||
| 5109 | 0 | $_resource_path =~ s/\Q\/?\E/?/g; | |||||||||
| 5110 | 0 | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | |||||||||
| 5111 | 0 | $_resource_path =~ s/\Q{path}\E/{Path}/g; | |||||||||
| 5112 | |||||||||||
| 5113 | 0 | my $_method = 'POST'; | |||||||||
| 5114 | 0 | my $query_params = {}; | |||||||||
| 5115 | 0 | my $header_params = {}; | |||||||||
| 5116 | 0 | my $form_params = {}; | |||||||||
| 5117 | |||||||||||
| 5118 | # 'Accept' and 'Content-Type' header | ||||||||||
| 5119 | 0 | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | |||||||||
| 5120 | 0 | ▶ | if ($_header_accept) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 5121 | 0 | $header_params->{'Accept'} = $_header_accept; | |||||||||
| 5122 | } | ||||||||||
| 5123 | 0 | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | |||||||||
| 5124 | |||||||||||
| 5125 | # query params | ||||||||||
| 5126 | 0 | ▶ | if ( exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 5127 | 0 | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | |||||||||
| 5128 | }else{ | ||||||||||
| 5129 | 0 | $_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; | |||||||||
| 5130 | }# query params | ||||||||||
| 5131 | 0 | ▶ | if ( exists $args{'storage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 5132 | 0 | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | |||||||||
| 5133 | }else{ | ||||||||||
| 5134 | 0 | $_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; | |||||||||
| 5135 | }# query params | ||||||||||
| 5136 | 0 | ▶ | if ( exists $args{'folder'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 5137 | 0 | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | |||||||||
| 5138 | }else{ | ||||||||||
| 5139 | 0 | $_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; | |||||||||
| 5140 | } | ||||||||||
| 5141 | |||||||||||
| 5142 | |||||||||||
| 5143 | 0 | my $_body_data; | |||||||||
| 5144 | |||||||||||
| 5145 | |||||||||||
| 5146 | # body params | ||||||||||
| 5147 | 0 | ▶ | if ( exists $args{'body'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 5148 | 0 | $_body_data = $args{'body'}; | |||||||||
| 5149 | } | ||||||||||
| 5150 | |||||||||||
| 5151 | # authentication setting, if any | ||||||||||
| 5152 | 0 | my $auth_settings = []; | |||||||||
| 5153 | |||||||||||
| 5154 | # make the API Call | ||||||||||
| 5155 | 0 | my $response = $self->{api_client}->call_api($_resource_path, $_method, | |||||||||
| 5156 | $query_params, $form_params, | ||||||||||
| 5157 | $header_params, $_body_data, $auth_settings); | ||||||||||
| 5158 | 0 | ▶ | if (!$response) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 5159 | 0 | return; | |||||||||
| 5160 | } | ||||||||||
| 5161 | |||||||||||
| 5162 | 0 | ▶ | if($AsposePdfCloud::Configuration::debug){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 5163 | 0 | print "\nResponse Content: ".$response->content; | |||||||||
| 5164 | } | ||||||||||
| 5165 | |||||||||||
| 5166 | 0 | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SaaSposeResponse', $response->header('content-type')); | |||||||||
| 5167 | 0 | return $_response_object; | |||||||||
| 5168 | |||||||||||
| 5169 | } | ||||||||||
| 5170 | # | ||||||||||
| 5171 | # PostSplitDocument | ||||||||||
| 5172 | # | ||||||||||
| 5173 | # Split document to parts. | ||||||||||
| 5174 | # | ||||||||||
| 5175 | # @param String $name Document name. (required) | ||||||||||
| 5176 | # @param String $format Resulting documents format. (optional) | ||||||||||
| 5177 | # @param String $from Start page if defined. (optional) | ||||||||||
| 5178 | # @param String $to End page if defined. (optional) | ||||||||||
| 5179 | # @param String $storage The document storage. (optional) | ||||||||||
| 5180 | # @param String $folder The document folder. (optional) | ||||||||||
| 5181 | # @return SplitResultResponse | ||||||||||
| 5182 | # | ||||||||||
| 5183 | sub PostSplitDocument { | ||||||||||
| 5184 | 0 | ▶ | my ($self, %args) = @_; | ||||||||
|
Subroutine
PostSplitDocument: not called CC=11 SCAR=48.8
Pod
undocumented
| |||||||||||
| 5185 | |||||||||||
| 5186 | |||||||||||
| 5187 | # verify the required parameter 'name' is set | ||||||||||
| 5188 | 0 | ▶ | unless (exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 5189 | 0 | croak("Missing the required parameter 'name' when calling PostSplitDocument"); | |||||||||
| 5190 | } | ||||||||||
| 5191 | |||||||||||
| 5192 | |||||||||||
| 5193 | # parse inputs | ||||||||||
| 5194 | 0 | my $_resource_path = '/pdf/{name}/split/?appSid={appSid}&toFormat={toFormat}&from={from}&to={to}&storage={storage}&folder={folder}'; | |||||||||
| 5195 | |||||||||||
| 5196 | 0 | $_resource_path =~ s/\Q&\E/&/g; | |||||||||
| 5197 | 0 | $_resource_path =~ s/\Q\/?\E/?/g; | |||||||||
| 5198 | 0 | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | |||||||||
| 5199 | 0 | $_resource_path =~ s/\Q{path}\E/{Path}/g; | |||||||||
| 5200 | |||||||||||
| 5201 | 0 | my $_method = 'POST'; | |||||||||
| 5202 | 0 | my $query_params = {}; | |||||||||
| 5203 | 0 | my $header_params = {}; | |||||||||
| 5204 | 0 | my $form_params = {}; | |||||||||
| 5205 | |||||||||||
| 5206 | # 'Accept' and 'Content-Type' header | ||||||||||
| 5207 | 0 | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | |||||||||
| 5208 | 0 | ▶ | if ($_header_accept) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 5209 | 0 | $header_params->{'Accept'} = $_header_accept; | |||||||||
| 5210 | } | ||||||||||
| 5211 | 0 | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | |||||||||
| 5212 | |||||||||||
| 5213 | # query params | ||||||||||
| 5214 | 0 | ▶ | if ( exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 5215 | 0 | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | |||||||||
| 5216 | }else{ | ||||||||||
| 5217 | 0 | $_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; | |||||||||
| 5218 | }# query params | ||||||||||
| 5219 | 0 | ▶ | if ( exists $args{'format'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 5220 | 0 | $_resource_path =~ s/\Q{format}\E/$args{'format'}/g; | |||||||||
| 5221 | }else{ | ||||||||||
| 5222 | 0 | $_resource_path =~ s/[?&]format.*?(?=&|\?|$)//g; | |||||||||
| 5223 | }# query params | ||||||||||
| 5224 | 0 | ▶ | if ( exists $args{'from'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 5225 | 0 | $_resource_path =~ s/\Q{from}\E/$args{'from'}/g; | |||||||||
| 5226 | }else{ | ||||||||||
| 5227 | 0 | $_resource_path =~ s/[?&]from.*?(?=&|\?|$)//g; | |||||||||
| 5228 | }# query params | ||||||||||
| 5229 | 0 | ▶ | if ( exists $args{'to'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 5230 | 0 | $_resource_path =~ s/\Q{to}\E/$args{'to'}/g; | |||||||||
| 5231 | }else{ | ||||||||||
| 5232 | 0 | $_resource_path =~ s/[?&]to.*?(?=&|\?|$)//g; | |||||||||
| 5233 | }# query params | ||||||||||
| 5234 | 0 | ▶ | if ( exists $args{'storage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 5235 | 0 | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | |||||||||
| 5236 | }else{ | ||||||||||
| 5237 | 0 | $_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; | |||||||||
| 5238 | }# query params | ||||||||||
| 5239 | 0 | ▶ | if ( exists $args{'folder'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 5240 | 0 | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | |||||||||
| 5241 | }else{ | ||||||||||
| 5242 | 0 | $_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; | |||||||||
| 5243 | } | ||||||||||
| 5244 | |||||||||||
| 5245 | |||||||||||
| 5246 | 0 | my $_body_data; | |||||||||
| 5247 | |||||||||||
| 5248 | |||||||||||
| 5249 | |||||||||||
| 5250 | |||||||||||
| 5251 | # authentication setting, if any | ||||||||||
| 5252 | 0 | my $auth_settings = []; | |||||||||
| 5253 | |||||||||||
| 5254 | # make the API Call | ||||||||||
| 5255 | 0 | my $response = $self->{api_client}->call_api($_resource_path, $_method, | |||||||||
| 5256 | $query_params, $form_params, | ||||||||||
| 5257 | $header_params, $_body_data, $auth_settings); | ||||||||||
| 5258 | 0 | ▶ | if (!$response) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 5259 | 0 | return; | |||||||||
| 5260 | } | ||||||||||
| 5261 | |||||||||||
| 5262 | 0 | ▶ | if($AsposePdfCloud::Configuration::debug){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 5263 | 0 | print "\nResponse Content: ".$response->content; | |||||||||
| 5264 | } | ||||||||||
| 5265 | |||||||||||
| 5266 | 0 | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'SplitResultResponse', $response->header('content-type')); | |||||||||
| 5267 | 0 | return $_response_object; | |||||||||
| 5268 | |||||||||||
| 5269 | } | ||||||||||
| 5270 | # | ||||||||||
| 5271 | # GetTextItems | ||||||||||
| 5272 | # | ||||||||||
| 5273 | # Read document text items. | ||||||||||
| 5274 | # | ||||||||||
| 5275 | # @param String $name (required) | ||||||||||
| 5276 | # @param String $withEmpty (optional) | ||||||||||
| 5277 | # @param String $storage (optional) | ||||||||||
| 5278 | # @param String $folder (optional) | ||||||||||
| 5279 | # @return TextItemsResponse | ||||||||||
| 5280 | # | ||||||||||
| 5281 | sub GetTextItems { | ||||||||||
| 5282 | 0 | ▶ | my ($self, %args) = @_; | ||||||||
|
Subroutine
GetTextItems: not called CC=9 SCAR=45.0
Pod
undocumented
| |||||||||||
| 5283 | |||||||||||
| 5284 | |||||||||||
| 5285 | # verify the required parameter 'name' is set | ||||||||||
| 5286 | 0 | ▶ | unless (exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 5287 | 0 | croak("Missing the required parameter 'name' when calling GetTextItems"); | |||||||||
| 5288 | } | ||||||||||
| 5289 | |||||||||||
| 5290 | |||||||||||
| 5291 | # parse inputs | ||||||||||
| 5292 | 0 | my $_resource_path = '/pdf/{name}/textItems/?appSid={appSid}&withEmpty={withEmpty}&storage={storage}&folder={folder}'; | |||||||||
| 5293 | |||||||||||
| 5294 | 0 | $_resource_path =~ s/\Q&\E/&/g; | |||||||||
| 5295 | 0 | $_resource_path =~ s/\Q\/?\E/?/g; | |||||||||
| 5296 | 0 | $_resource_path =~ s/\QtoFormat={toFormat}\E/format={format}/g; | |||||||||
| 5297 | 0 | $_resource_path =~ s/\Q{path}\E/{Path}/g; | |||||||||
| 5298 | |||||||||||
| 5299 | 0 | my $_method = 'GET'; | |||||||||
| 5300 | 0 | my $query_params = {}; | |||||||||
| 5301 | 0 | my $header_params = {}; | |||||||||
| 5302 | 0 | my $form_params = {}; | |||||||||
| 5303 | |||||||||||
| 5304 | # 'Accept' and 'Content-Type' header | ||||||||||
| 5305 | 0 | my $_header_accept = $self->{api_client}->select_header_accept('application/xml', 'application/json'); | |||||||||
| 5306 | 0 | ▶ | if ($_header_accept) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 5307 | 0 | $header_params->{'Accept'} = $_header_accept; | |||||||||
| 5308 | } | ||||||||||
| 5309 | 0 | $header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json'); | |||||||||
| 5310 | |||||||||||
| 5311 | # query params | ||||||||||
| 5312 | 0 | ▶ | if ( exists $args{'name'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 5313 | 0 | $_resource_path =~ s/\Q{name}\E/$args{'name'}/g; | |||||||||
| 5314 | }else{ | ||||||||||
| 5315 | 0 | $_resource_path =~ s/[?&]name.*?(?=&|\?|$)//g; | |||||||||
| 5316 | }# query params | ||||||||||
| 5317 | 0 | ▶ | if ( exists $args{'withEmpty'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 5318 | 0 | $_resource_path =~ s/\Q{withEmpty}\E/$args{'withEmpty'}/g; | |||||||||
| 5319 | }else{ | ||||||||||
| 5320 | 0 | $_resource_path =~ s/[?&]withEmpty.*?(?=&|\?|$)//g; | |||||||||
| 5321 | }# query params | ||||||||||
| 5322 | 0 | ▶ | if ( exists $args{'storage'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 5323 | 0 | $_resource_path =~ s/\Q{storage}\E/$args{'storage'}/g; | |||||||||
| 5324 | }else{ | ||||||||||
| 5325 | 0 | $_resource_path =~ s/[?&]storage.*?(?=&|\?|$)//g; | |||||||||
| 5326 | }# query params | ||||||||||
| 5327 | 0 | ▶ | if ( exists $args{'folder'}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 5328 | 0 | $_resource_path =~ s/\Q{folder}\E/$args{'folder'}/g; | |||||||||
| 5329 | }else{ | ||||||||||
| 5330 | 0 | $_resource_path =~ s/[?&]folder.*?(?=&|\?|$)//g; | |||||||||
| 5331 | } | ||||||||||
| 5332 | |||||||||||
| 5333 | |||||||||||
| 5334 | 0 | my $_body_data; | |||||||||
| 5335 | |||||||||||
| 5336 | |||||||||||
| 5337 | |||||||||||
| 5338 | |||||||||||
| 5339 | # authentication setting, if any | ||||||||||
| 5340 | 0 | my $auth_settings = []; | |||||||||
| 5341 | |||||||||||
| 5342 | # make the API Call | ||||||||||
| 5343 | 0 | my $response = $self->{api_client}->call_api($_resource_path, $_method, | |||||||||
| 5344 | $query_params, $form_params, | ||||||||||
| 5345 | $header_params, $_body_data, $auth_settings); | ||||||||||
| 5346 | 0 | ▶ | if (!$response) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 5347 | 0 | return; | |||||||||
| 5348 | } | ||||||||||
| 5349 | |||||||||||
| 5350 | 0 | ▶ | if($AsposePdfCloud::Configuration::debug){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 5351 | 0 | print "\nResponse Content: ".$response->content; | |||||||||
| 5352 | } | ||||||||||
| 5353 | |||||||||||
| 5354 | 0 | my $_response_object = $self->{api_client}->pre_deserialize($response->content, 'TextItemsResponse', $response->header('content-type')); | |||||||||
| 5355 | 0 | return $_response_object; | |||||||||
| 5356 | |||||||||||
| 5357 | } | ||||||||||
| 5358 | |||||||||||
| 5359 | |||||||||||
| 5360 | 1 | 1; | |||||||||