Skip to content

Commit 68baf71

Browse files
Merge pull request #13 from kaferi/master
Updated to v19.1
2 parents 622fef2 + fee9601 commit 68baf71

File tree

227 files changed

+13809
-4341
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

227 files changed

+13809
-4341
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,3 +203,4 @@ src/Settings/servercreds.json
203203
dist/
204204
*.egg-info
205205

206+
.vscode

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2018 Aspose Pty Ltd
3+
Copyright (c) 2019 Aspose Pty Ltd
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 45 additions & 2 deletions
Large diffs are not rendered by default.

__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Aspose.PDF Cloud API Reference
55
66
7-
Copyright (c) 2018 Aspose.PDF Cloud
7+
Copyright (c) 2019 Aspose.PDF Cloud
88
Permission is hereby granted, free of charge, to any person obtaining a copy
99
of this software and associated documentation files (the "Software"), to deal
1010
in the Software without restriction, including without limitation the rights

asposepdfcloud/__init__.py

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Aspose.PDF Cloud API Reference
55
66
7-
Copyright (c) 2018 Aspose.PDF Cloud
7+
Copyright (c) 2019 Aspose.PDF Cloud
88
Permission is hereby granted, free of charge, to any person obtaining a copy
99
of this software and associated documentation files (the "Software"), to deal
1010
in the Software without restriction, including without limitation the rights
@@ -51,6 +51,7 @@
5151
from .models.field_type import FieldType
5252
from .models.file import File
5353
from .models.file_exist import FileExist
54+
from .models.file_icon import FileIcon
5455
from .models.font_encoding_rules import FontEncodingRules
5556
from .models.font_saving_modes import FontSavingModes
5657
from .models.font_styles import FontStyles
@@ -86,6 +87,8 @@
8687
from .models.shape_type import ShapeType
8788
from .models.signature import Signature
8889
from .models.signature_type import SignatureType
90+
from .models.sound_encoding import SoundEncoding
91+
from .models.sound_icon import SoundIcon
8992
from .models.split_result import SplitResult
9093
from .models.stamp import Stamp
9194
from .models.stamp_type import StampType
@@ -127,6 +130,9 @@
127130
from .models.field_response import FieldResponse
128131
from .models.fields import Fields
129132
from .models.fields_response import FieldsResponse
133+
from .models.file_attachment_annotation_response import FileAttachmentAnnotationResponse
134+
from .models.file_attachment_annotations import FileAttachmentAnnotations
135+
from .models.file_attachment_annotations_response import FileAttachmentAnnotationsResponse
130136
from .models.file_exist_response import FileExistResponse
131137
from .models.file_version import FileVersion
132138
from .models.file_versions_response import FileVersionsResponse
@@ -151,6 +157,9 @@
151157
from .models.link_annotation_response import LinkAnnotationResponse
152158
from .models.link_annotations import LinkAnnotations
153159
from .models.link_annotations_response import LinkAnnotationsResponse
160+
from .models.movie_annotation_response import MovieAnnotationResponse
161+
from .models.movie_annotations import MovieAnnotations
162+
from .models.movie_annotations_response import MovieAnnotationsResponse
154163
from .models.page import Page
155164
from .models.pages import Pages
156165
from .models.poly_line_annotation_response import PolyLineAnnotationResponse
@@ -162,7 +171,13 @@
162171
from .models.popup_annotation_response import PopupAnnotationResponse
163172
from .models.popup_annotations import PopupAnnotations
164173
from .models.popup_annotations_response import PopupAnnotationsResponse
174+
from .models.redaction_annotation_response import RedactionAnnotationResponse
175+
from .models.redaction_annotations import RedactionAnnotations
176+
from .models.redaction_annotations_response import RedactionAnnotationsResponse
165177
from .models.signature_verify_response import SignatureVerifyResponse
178+
from .models.sound_annotation_response import SoundAnnotationResponse
179+
from .models.sound_annotations import SoundAnnotations
180+
from .models.sound_annotations_response import SoundAnnotationsResponse
166181
from .models.split_result_document import SplitResultDocument
167182
from .models.split_result_response import SplitResultResponse
168183
from .models.square_annotation_response import SquareAnnotationResponse
@@ -186,15 +201,19 @@
186201
from .models.word_count_response import WordCountResponse
187202
from .models.annotation_info import AnnotationInfo
188203
from .models.markup_annotation import MarkupAnnotation
204+
from .models.movie_annotation import MovieAnnotation
189205
from .models.popup_annotation import PopupAnnotation
206+
from .models.redaction_annotation import RedactionAnnotation
190207
from .models.caret_annotation import CaretAnnotation
191208
from .models.common_figure_annotation import CommonFigureAnnotation
209+
from .models.file_attachment_annotation import FileAttachmentAnnotation
192210
from .models.free_text_annotation import FreeTextAnnotation
193211
from .models.highlight_annotation import HighlightAnnotation
194212
from .models.ink_annotation import InkAnnotation
195213
from .models.line_annotation import LineAnnotation
196214
from .models.poly_annotation import PolyAnnotation
197215
from .models.popup_annotation_with_parent import PopupAnnotationWithParent
216+
from .models.sound_annotation import SoundAnnotation
198217
from .models.squiggly_annotation import SquigglyAnnotation
199218
from .models.strike_out_annotation import StrikeOutAnnotation
200219
from .models.text_annotation import TextAnnotation

asposepdfcloud/api_client.py

Lines changed: 4 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Aspose.PDF Cloud API Reference
44
55
6-
Copyright (c) 2018 Aspose.PDF Cloud
6+
Copyright (c) 2019 Aspose.PDF Cloud
77
Permission is hereby granted, free of charge, to any person obtaining a copy
88
of this software and associated documentation files (the "Software"), to deal
99
in the Software without restriction, including without limitation the rights
@@ -166,10 +166,6 @@ def __call_api(self, resource_path, method,
166166
guess_type(filename)[0] or 'application/octet-stream'
167167
header_params['Content-Type'] = mimetype
168168

169-
170-
# auth setting
171-
self.update_params_for_auth(header_params, query_params, auth_settings)
172-
173169
# body
174170
if body:
175171
body = self.sanitize_for_serialization(body)
@@ -611,33 +607,6 @@ def select_header_content_type(self, content_types):
611607
else:
612608
return content_types[0]
613609

614-
def update_params_for_auth(self, headers, querys, auth_settings):
615-
"""
616-
Updates header and query params based on authentication setting.
617-
618-
:param headers: Header parameters dict to be updated.
619-
:param querys: Query parameters tuple list to be updated.
620-
:param auth_settings: Authentication setting identifiers list.
621-
"""
622-
config = Configuration()
623-
624-
if not auth_settings:
625-
return
626-
627-
for auth in auth_settings:
628-
auth_setting = config.auth_settings().get(auth)
629-
if auth_setting:
630-
if not auth_setting['value']:
631-
continue
632-
elif auth_setting['in'] == 'header':
633-
headers[auth_setting['key']] = auth_setting['value']
634-
elif auth_setting['in'] == 'query':
635-
querys.append((auth_setting['key'], auth_setting['value']))
636-
else:
637-
raise ValueError(
638-
'Authentication token must be in `query` or `header`'
639-
)
640-
641610
def __deserialize_file(self, response):
642611
"""
643612
Saves response body into a file in a temporary folder,
@@ -653,7 +622,7 @@ def __deserialize_file(self, response):
653622
os.remove(path)
654623

655624
content_disposition = response.getheader("Content-Disposition")
656-
if content_disposition:
625+
if content_disposition and content_disposition != "attachment":
657626
filename = re.\
658627
search(r'filename=[\'"]?([^\'"\s]+)[\'"]?', content_disposition).\
659628
group(1)
@@ -713,9 +682,9 @@ def __deserialize_date(self, string):
713682
)
714683

715684
def __deserialize_datatime(self, string):
716-
match = re.match(r"\/Date\((\d+?)000\+0000\)\/", string)
685+
match = re.match(r'/Date\((\d+?)000\+0000\)/', string, flags=re.UNICODE)
717686
if match:
718-
dt = datetime.utcfromtimestamp(int(match[1]))
687+
dt = datetime.utcfromtimestamp(int(match.group(1)))
719688
return dt
720689
else:
721690
return None

asposepdfcloud/apis/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Aspose.PDF Cloud API Reference
55
66
7-
Copyright (c) 2018 Aspose.PDF Cloud
7+
Copyright (c) 2019 Aspose.PDF Cloud
88
Permission is hereby granted, free of charge, to any person obtaining a copy
99
of this software and associated documentation files (the "Software"), to deal
1010
in the Software without restriction, including without limitation the rights

0 commit comments

Comments
 (0)