|
2 | 2 |
|
3 | 3 | # ----------------------------------------------------------------------------------- |
4 | 4 | # <copyright company="Aspose Pty Ltd"> |
5 | | -# Copyright (c) 2003-2019 Aspose Pty Ltd |
| 5 | +# Copyright (c) 2003-2020 Aspose Pty Ltd |
6 | 6 | # </copyright> |
7 | 7 | # <summary> |
8 | 8 | # Permission is hereby granted, free of charge, to any person obtaining a copy |
@@ -395,100 +395,6 @@ def _get_import_with_http_info(self, request, **kwargs): # noqa: E501 |
395 | 395 |
|
396 | 396 | return self.api_client.call_api(**call_kwargs) # noqa: E501 |
397 | 397 |
|
398 | | - def get_pdf(self, request,**kwargs): # noqa: E501 |
399 | | - """Retrieves PDF version of document # noqa: E501 |
400 | | -
|
401 | | - This method makes a synchronous HTTP request by default. To make an |
402 | | - asynchronous HTTP request, please pass is_async=True |
403 | | -
|
404 | | - :param is_async bool |
405 | | - :param str file_path: Path to document in storage (required) |
406 | | - :return: file |
407 | | - If the method is called asynchronously, |
408 | | - returns the request thread. |
409 | | - """ |
410 | | - kwargs['_return_http_data_only'] = True |
411 | | - |
412 | | - if kwargs.get('is_async'): |
413 | | - return self._get_pdf_with_http_info(request, **kwargs) # noqa: E501 |
414 | | - |
415 | | - (data) = self._get_pdf_with_http_info(request, **kwargs) # noqa: E501 |
416 | | - return data |
417 | | - |
418 | | - def _get_pdf_with_http_info(self, request, **kwargs): # noqa: E501 |
419 | | - """Retrieves PDF version of document # noqa: E501 |
420 | | -
|
421 | | - This method makes a synchronous HTTP request by default. To make an |
422 | | - asynchronous HTTP request, please pass is_async=True |
423 | | -
|
424 | | - :param is_async bool |
425 | | - :param GetPdfRequest request object with parameters |
426 | | - :return: file |
427 | | - If the method is called asynchronously, |
428 | | - returns the request thread. |
429 | | - """ |
430 | | - params = locals() |
431 | | - params['is_async'] = '' |
432 | | - params['_return_http_data_only'] = False |
433 | | - params['_preload_content'] = True |
434 | | - params['_request_timeout'] = '' |
435 | | - for key, val in six.iteritems(params['kwargs']): |
436 | | - if key not in params: |
437 | | - raise TypeError( |
438 | | - "Got an unexpected keyword argument '%s'" |
439 | | - " to method get_pdf" % key |
440 | | - ) |
441 | | - params[key] = val |
442 | | - del params['kwargs'] |
443 | | - # verify the required parameter 'file_path' is set |
444 | | - if request.file_path is None: |
445 | | - raise ValueError("Missing the required parameter `file_path` when calling `get_pdf`") # noqa: E501 |
446 | | - |
447 | | - collection_formats = {} |
448 | | - path = '/annotation/pdf' |
449 | | - path_params = {} |
450 | | - |
451 | | - query_params = [] |
452 | | - if self.__downcase_first_letter('filePath') in path: |
453 | | - path = path.replace('{' + self.__downcase_first_letter('filePath' + '}'), request.file_path if request.file_path is not None else '') |
454 | | - else: |
455 | | - if request.file_path is not None: |
456 | | - query_params.append((self.__downcase_first_letter('filePath'), request.file_path)) # noqa: E501 |
457 | | - |
458 | | - header_params = {} |
459 | | - |
460 | | - form_params = [] |
461 | | - local_var_files = [] |
462 | | - |
463 | | - body_params = None |
464 | | - # HTTP header `Accept` |
465 | | - header_params['Accept'] = self.api_client.select_header_accept( |
466 | | - ['application/json']) # noqa: E501 |
467 | | - |
468 | | - # HTTP header `Content-Type` |
469 | | - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 |
470 | | - ['application/json']) # noqa: E501 |
471 | | - |
472 | | - call_kwargs = { |
473 | | - 'resource_path':path, |
474 | | - 'method':'GET', |
475 | | - 'path_params':path_params, |
476 | | - 'query_params':query_params, |
477 | | - 'header_params':header_params, |
478 | | - 'body':body_params, |
479 | | - 'post_params':form_params, |
480 | | - 'files':local_var_files, |
481 | | - 'response_type':'file', # noqa: E501 |
482 | | - 'auth_settings':self.auth.get_auth_settings(), |
483 | | - 'is_async':params.get('is_async'), |
484 | | - '_return_http_data_only':params.get('_return_http_data_only'), |
485 | | - '_preload_content':params.get('_preload_content', True), |
486 | | - '_request_timeout':params.get('_request_timeout'), |
487 | | - 'collection_formats':collection_formats |
488 | | - } |
489 | | - |
490 | | - return self.api_client.call_api(**call_kwargs) # noqa: E501 |
491 | | - |
492 | 398 | def post_annotations(self, request,**kwargs): # noqa: E501 |
493 | 399 | """Adds annotations to document # noqa: E501 |
494 | 400 |
|
@@ -599,7 +505,7 @@ def __downcase_first_letter(self, s): |
599 | 505 |
|
600 | 506 | # -------------------------------------------------------------------------------- |
601 | 507 | # <copyright company="Aspose Pty Ltd" file="delete_annotations_request.py"> |
602 | | -# Copyright (c) 2003-2019 Aspose Pty Ltd |
| 508 | +# Copyright (c) 2003-2020 Aspose Pty Ltd |
603 | 509 | # </copyright> |
604 | 510 | # <summary> |
605 | 511 | # Permission is hereby granted, free of charge, to any person obtaining a copy |
@@ -635,7 +541,7 @@ def __init__(self, file_path): |
635 | 541 |
|
636 | 542 | # -------------------------------------------------------------------------------- |
637 | 543 | # <copyright company="Aspose Pty Ltd" file="get_export_request.py"> |
638 | | -# Copyright (c) 2003-2019 Aspose Pty Ltd |
| 544 | +# Copyright (c) 2003-2020 Aspose Pty Ltd |
639 | 545 | # </copyright> |
640 | 546 | # <summary> |
641 | 547 | # Permission is hereby granted, free of charge, to any person obtaining a copy |
@@ -681,7 +587,7 @@ def __init__(self, file_path, annotation_types=None, annotated_pages=None, first |
681 | 587 |
|
682 | 588 | # -------------------------------------------------------------------------------- |
683 | 589 | # <copyright company="Aspose Pty Ltd" file="get_import_request.py"> |
684 | | -# Copyright (c) 2003-2019 Aspose Pty Ltd |
| 590 | +# Copyright (c) 2003-2020 Aspose Pty Ltd |
685 | 591 | # </copyright> |
686 | 592 | # <summary> |
687 | 593 | # Permission is hereby granted, free of charge, to any person obtaining a copy |
@@ -715,45 +621,9 @@ def __init__(self, file_path): |
715 | 621 | self.file_path = file_path |
716 | 622 | # coding: utf-8 |
717 | 623 |
|
718 | | -# -------------------------------------------------------------------------------- |
719 | | -# <copyright company="Aspose Pty Ltd" file="get_pdf_request.py"> |
720 | | -# Copyright (c) 2003-2019 Aspose Pty Ltd |
721 | | -# </copyright> |
722 | | -# <summary> |
723 | | -# Permission is hereby granted, free of charge, to any person obtaining a copy |
724 | | -# of this software and associated documentation files (the "Software"), to deal |
725 | | -# in the Software without restriction, including without limitation the rights |
726 | | -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
727 | | -# copies of the Software, and to permit persons to whom the Software is |
728 | | -# furnished to do so, subject to the following conditions: |
729 | | -# |
730 | | -# The above copyright notice and this permission notice shall be included in all |
731 | | -# copies or substantial portions of the Software. |
732 | | -# |
733 | | -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
734 | | -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
735 | | -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
736 | | -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
737 | | -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
738 | | -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
739 | | -# SOFTWARE. |
740 | | -# </summary> |
741 | | -# -------------------------------------------------------------------------------- |
742 | | - |
743 | | -class GetPdfRequest(object): |
744 | | - """ |
745 | | - Request model for get_pdf operation. |
746 | | - :param file_path Path to document in storage |
747 | | - """ |
748 | | - |
749 | | - def __init__(self, file_path): |
750 | | - """Initializes new instance of GetPdfRequest.""" # noqa: E501 |
751 | | - self.file_path = file_path |
752 | | -# coding: utf-8 |
753 | | - |
754 | 624 | # -------------------------------------------------------------------------------- |
755 | 625 | # <copyright company="Aspose Pty Ltd" file="post_annotations_request.py"> |
756 | | -# Copyright (c) 2003-2019 Aspose Pty Ltd |
| 626 | +# Copyright (c) 2003-2020 Aspose Pty Ltd |
757 | 627 | # </copyright> |
758 | 628 | # <summary> |
759 | 629 | # Permission is hereby granted, free of charge, to any person obtaining a copy |
|
0 commit comments