|
1 | 1 | # ----------------------------------------------------------------------------------- |
2 | 2 | # <copyright company="Aspose Pty Ltd" file="annotate.rb"> |
3 | | -# Copyright (c) 2003-2019 Aspose Pty Ltd |
| 3 | +# Copyright (c) 2003-2020 Aspose Pty Ltd |
4 | 4 | # </copyright> |
5 | 5 | # <summary> |
6 | 6 | # Permission is hereby granted, free of charge, to any person obtaining a copy |
@@ -250,60 +250,6 @@ def get_import_with_http_info(request) |
250 | 250 | [data, status_code, headers] |
251 | 251 | end |
252 | 252 |
|
253 | | - # Retrieves PDF version of document |
254 | | - # |
255 | | - # @param request get_pdf_request |
256 | | - # @return [File] |
257 | | - def get_pdf(request) |
258 | | - data, _status_code, _headers = get_pdf_with_http_info(request) |
259 | | - data |
260 | | - end |
261 | | - |
262 | | - # Retrieves PDF version of document |
263 | | - # |
264 | | - # @param request get_pdf_request |
265 | | - # @return [Array<(File, Fixnum, Hash)>] |
266 | | - # File data, response status code and response headers |
267 | | - def get_pdf_with_http_info(request) |
268 | | - raise ArgumentError, 'Incorrect request type' unless request.is_a? GetPdfRequest |
269 | | - |
270 | | - @api_client.config.logger.debug 'Calling API: AnnotateApi.get_pdf ...' if @api_client.config.debugging |
271 | | - # verify the required parameter 'file_path' is set |
272 | | - raise ArgumentError, 'Missing the required parameter file_path when calling AnnotateApi.get_pdf' if @api_client.config.client_side_validation && request.file_path.nil? |
273 | | - # resource path |
274 | | - local_var_path = '/annotation/pdf' |
275 | | - |
276 | | - # query parameters |
277 | | - query_params = {} |
278 | | - query_params[downcase_first_letter('filePath')] = request.file_path |
279 | | - |
280 | | - |
281 | | - # header parameters |
282 | | - header_params = {} |
283 | | - # HTTP header 'Accept' (if needed) |
284 | | - header_params['Accept'] = @api_client.select_header_accept(['application/json']) |
285 | | - # HTTP header 'Content-Type' |
286 | | - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) |
287 | | - |
288 | | - # form parameters |
289 | | - form_params = {} |
290 | | - |
291 | | - # http body (model) |
292 | | - post_body = nil |
293 | | - data, status_code, headers = @api_client.call_api(:GET, local_var_path, |
294 | | - header_params: header_params, |
295 | | - query_params: query_params, |
296 | | - form_params: form_params, |
297 | | - body: post_body, |
298 | | - access_token: get_access_token, |
299 | | - return_type: 'File') |
300 | | - if @api_client.config.debugging |
301 | | - @api_client.config.logger.debug "API called: |
302 | | - AnnotateApi#get_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" |
303 | | - end |
304 | | - [data, status_code, headers] |
305 | | - end |
306 | | - |
307 | 253 | # Adds annotations to document |
308 | 254 | # |
309 | 255 | # @param request post_annotations_request |
@@ -416,7 +362,7 @@ def post_annotations_with_http_info(request) |
416 | 362 | # |
417 | 363 | # -------------------------------------------------------------------------------------------------------------------- |
418 | 364 | # <copyright company="Aspose Pty Ltd" file="delete_annotations_request.rb"> |
419 | | - # Copyright (c) 2003-2019 Aspose Pty Ltd |
| 365 | + # Copyright (c) 2003-2020 Aspose Pty Ltd |
420 | 366 | # </copyright> |
421 | 367 | # <summary> |
422 | 368 | # Permission is hereby granted, free of charge, to any person obtaining a copy |
@@ -461,7 +407,7 @@ def initialize(file_path) |
461 | 407 | # |
462 | 408 | # -------------------------------------------------------------------------------------------------------------------- |
463 | 409 | # <copyright company="Aspose Pty Ltd" file="get_export_request.rb"> |
464 | | - # Copyright (c) 2003-2019 Aspose Pty Ltd |
| 410 | + # Copyright (c) 2003-2020 Aspose Pty Ltd |
465 | 411 | # </copyright> |
466 | 412 | # <summary> |
467 | 413 | # Permission is hereby granted, free of charge, to any person obtaining a copy |
@@ -526,7 +472,7 @@ def initialize(file_path, annotation_types = nil, annotated_pages = nil, first_p |
526 | 472 | # |
527 | 473 | # -------------------------------------------------------------------------------------------------------------------- |
528 | 474 | # <copyright company="Aspose Pty Ltd" file="get_import_request.rb"> |
529 | | - # Copyright (c) 2003-2019 Aspose Pty Ltd |
| 475 | + # Copyright (c) 2003-2020 Aspose Pty Ltd |
530 | 476 | # </copyright> |
531 | 477 | # <summary> |
532 | 478 | # Permission is hereby granted, free of charge, to any person obtaining a copy |
@@ -567,56 +513,11 @@ def initialize(file_path) |
567 | 513 | self.file_path = file_path |
568 | 514 | end |
569 | 515 | end |
570 | | -end |
571 | | - # |
572 | | - # -------------------------------------------------------------------------------------------------------------------- |
573 | | - # <copyright company="Aspose Pty Ltd" file="get_pdf_request.rb"> |
574 | | - # Copyright (c) 2003-2019 Aspose Pty Ltd |
575 | | - # </copyright> |
576 | | - # <summary> |
577 | | - # Permission is hereby granted, free of charge, to any person obtaining a copy |
578 | | - # of this software and associated documentation files (the "Software"), to deal |
579 | | - # in the Software without restriction, including without limitation the rights |
580 | | - # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
581 | | - # copies of the Software, and to permit persons to whom the Software is |
582 | | - # furnished to do so, subject to the following conditions: |
583 | | - # |
584 | | - # The above copyright notice and this permission notice shall be included in all |
585 | | - # copies or substantial portions of the Software. |
586 | | - # |
587 | | - # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
588 | | - # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
589 | | - # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
590 | | - # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
591 | | - # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
592 | | - # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
593 | | - # SOFTWARE. |
594 | | - # </summary> |
595 | | - # -------------------------------------------------------------------------------------------------------------------- |
596 | | - # |
597 | | - |
598 | | -module GroupDocsAnnotationCloud |
599 | | - |
600 | | - # |
601 | | - # Request model for get_pdf operation. |
602 | | - # |
603 | | - class GetPdfRequest |
604 | | - |
605 | | - # Path to document in storage |
606 | | - attr_accessor :file_path |
607 | | - |
608 | | - # |
609 | | - # Initializes a new instance. |
610 | | - # @param file_path Path to document in storage |
611 | | - def initialize(file_path) |
612 | | - self.file_path = file_path |
613 | | - end |
614 | | - end |
615 | 516 | end |
616 | 517 | # |
617 | 518 | # -------------------------------------------------------------------------------------------------------------------- |
618 | 519 | # <copyright company="Aspose Pty Ltd" file="post_annotations_request.rb"> |
619 | | - # Copyright (c) 2003-2019 Aspose Pty Ltd |
| 520 | + # Copyright (c) 2003-2020 Aspose Pty Ltd |
620 | 521 | # </copyright> |
621 | 522 | # <summary> |
622 | 523 | # Permission is hereby granted, free of charge, to any person obtaining a copy |
|
0 commit comments