Skip to content

Commit a4f6356

Browse files
authored
Merge pull request #50 from aspose-pdf-cloud/develop
update to 23.10.0
2 parents b466b7b + ff88982 commit a4f6356

File tree

8 files changed

+250
-9
lines changed

8 files changed

+250
-9
lines changed

README.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,23 @@ These SDKs are now fully supported. If you have any questions, see any bugs or h
99

1010
Extract Text & Images of a PDF document online https://products.aspose.app/pdf/parser.
1111

12-
## Enhancements in Version 23.9
13-
- Support to convert password protected PDF documents to PDFA.
12+
## Enhancements in Version 23.10
13+
- Support of reading common info of password protected PDF in GetDocument API.
14+
- Support stamp password protected document using DeleteDocumentStamps API method.
15+
- Support stamp password protected document using DeleteStamp API method.
16+
- Support stamp password protected document using PostDocumentPageNumberStamps API method.
17+
- Support stamp password protected document using PostPageImageStamps API method.
18+
- Support stamp password protected document using PostPageTextStamps API method.
19+
- Support stamp password protected document using GetPageStamps API method.
20+
- Support stamp password protected document using GetDocumentStamps API method.
21+
- Support stamp password protected document using PostPagePdfPageStamps API method.
22+
- Support stamp password protected document using DeletePageStamps API method.
23+
- Develop a method to add an attachment file to a PDF document.
1424
- A new version of Aspose.PDF Cloud was prepared using the latest version of Aspose.PDF for .NET.
1525

16-
## Bugs fixed in Version 23.9
17-
- Rotate Property not working with FreeTextAnnotation.
18-
- PutAnnotationsFlatten not working correctly when passing multiple annotation types.
26+
## Bugs fixed in Version 23.10
27+
- Aspose.PDF Cloud PostFlattenDocument API Issue.
28+
- The GetPages API throws timeout error for PDF files larger than 10 Mb.
1929

2030
## Installation
2131
```

api_client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ func (c *APIClient) prepareRequest (
176176

177177
// set custom header
178178
headerParams["x-aspose-client"] = "go sdk"
179-
headerParams["x-aspose-client-version"] = "23.9.0"
179+
headerParams["x-aspose-client-version"] = "23.10.0"
180180

181181
// Detect postBody type and post.
182182
if postBody != nil {

attachment_info.go

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/*
2+
*
3+
* Copyright (c) 2023 Aspose.PDF Cloud
4+
* Permission is hereby granted, free of charge, to any person obtaining a copy
5+
* of this software and associated documentation files (the "Software"), to deal
6+
* in the Software without restriction, including without limitation the rights
7+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
* copies of the Software, and to permit persons to whom the Software is
9+
* furnished to do so, subject to the following conditions:
10+
* The above copyright notice and this permission notice shall be included in all
11+
* copies or substantial portions of the Software.
12+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18+
* SOFTWARE.
19+
*
20+
*/
21+
22+
package asposepdfcloud
23+
24+
// Attachment Info.
25+
type AttachmentInfo struct {
26+
// Attachment file path.
27+
Path string `json:"Path"`
28+
// Attachment file description.
29+
Description string `json:"Description,omitempty"`
30+
// Attachment file name.
31+
Name string `json:"Name,omitempty"`
32+
// Attachment file MIME type.
33+
MimeType string `json:"MimeType,omitempty"`
34+
}

docs/AttachmentInfo.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# AttachmentInfo
2+
Attachment Info.
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**Path** | **string** | Attachment file path. | [default to null]
8+
**Description** | **string** | Attachment file description. | [optional] [default to null]
9+
**Name** | **string** | Attachment file name. | [optional] [default to null]
10+
**MimeType** | **string** | Attachment file MIME type. | [optional] [default to null]
11+
12+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)[[View Source]](../attachment_info.go)
13+
14+

docs/Page.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**Links** | [**[]Link**](Link.md) | Link to the document. | [optional] [default to null]
88
**Id** | **int32** | Page's id. | [default to null]
9-
**Images** | [***Images**](Images.md) | Page's images | [optional] [default to null]
109
**Rectangle** | [***Rectangle**](Rectangle.md) | Page's rectangle | [optional] [default to null]
1110

1211
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)[[View Source]](../page.go)

docs/PdfApi.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ Method | HTTP request | Description
191191
[**MoveFile**](PdfApi.md#MoveFile) | **Put** /pdf/storage/file/move/{srcPath} | Move file
192192
[**MoveFolder**](PdfApi.md#MoveFolder) | **Put** /pdf/storage/folder/move/{srcPath} | Move folder
193193
[**ObjectExists**](PdfApi.md#ObjectExists) | **Get** /pdf/storage/exist/{path} | Check if file or folder exists
194+
[**PostAddDocumentAttachment**](PdfApi.md#PostAddDocumentAttachment) | **Post** /pdf/{name}/attachments | Adds a file attachment to the PDF document.
194195
[**PostAppendDocument**](PdfApi.md#PostAppendDocument) | **Post** /pdf/{name}/appendDocument | Append document to existing one.
195196
[**PostBookmark**](PdfApi.md#PostBookmark) | **Post** /pdf/{name}/bookmarks/bookmark/{bookmarkPath} | Add document bookmarks.
196197
[**PostChangePasswordDocumentInStorage**](PdfApi.md#PostChangePasswordDocumentInStorage) | **Post** /pdf/{name}/changepassword | Change document password in storage.
@@ -642,6 +643,7 @@ Name | Type | Description | Notes
642643
**name** | **string**| The document name. |
643644
**storage** | **string**| The document storage. |
644645
**folder** | **string**| The document folder. |
646+
**password** | **string**| Base64 encoded password. |
645647

646648
### Return type
647649

@@ -966,6 +968,7 @@ Name | Type | Description | Notes
966968
**pageNumber** | **int32**| The page number. |
967969
**storage** | **string**| The document storage. |
968970
**folder** | **string**| The document folder. |
971+
**password** | **string**| Base64 encoded password. |
969972

970973
### Return type
971974

@@ -1096,6 +1099,7 @@ Name | Type | Description | Notes
10961099
**stampId** | **string**| The stamp ID. |
10971100
**storage** | **string**| The document storage. |
10981101
**folder** | **string**| The document folder. |
1102+
**password** | **string**| Base64 encoded password. |
10991103

11001104
### Return type
11011105

@@ -1417,6 +1421,7 @@ Name | Type | Description | Notes
14171421
**name** | **string**| The document name. |
14181422
**storage** | **string**| The document storage. |
14191423
**folder** | **string**| The document folder. |
1424+
**password** | **string**| Base64 encoded password. |
14201425

14211426
### Return type
14221427

@@ -4628,6 +4633,7 @@ Name | Type | Description | Notes
46284633
**pageNumber** | **int32**| The page number. |
46294634
**storage** | **string**| The document storage. |
46304635
**folder** | **string**| The document folder. |
4636+
**password** | **string**| Base64 encoded password. |
46314637

46324638
### Return type
46334639

@@ -6503,6 +6509,39 @@ Name | Type | Description | Notes
65036509

65046510
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
65056511

6512+
# **PostAddDocumentAttachment**
6513+
> AttachmentsResponse PostAddDocumentAttachment(name, attachmentInfo, optional)
6514+
Adds a file attachment to the PDF document.
6515+
6516+
### Required Parameters
6517+
6518+
Name | Type | Description | Notes
6519+
------------- | ------------- | ------------- | -------------
6520+
**name** | **string**| The document name. |
6521+
**attachmentInfo** | [**AttachmentInfo**](AttachmentInfo.md)| AttachmentInfoAttachmentInfo instance. |
6522+
**optional** | **map[string]interface{}** | optional parameters | nil if no parameters
6523+
6524+
### Optional Parameters
6525+
Optional parameters are passed through a map[string]interface{}.
6526+
6527+
Name | Type | Description | Notes
6528+
------------- | ------------- | ------------- | -------------
6529+
**name** | **string**| The document name. |
6530+
**attachmentInfo** | [**AttachmentInfo**](AttachmentInfo.md)| AttachmentInfoAttachmentInfo instance. |
6531+
**storage** | **string**| The document storage. |
6532+
**folder** | **string**| The document folder. |
6533+
6534+
### Return type
6535+
6536+
[**AttachmentsResponse**](AttachmentsResponse.md)
6537+
6538+
### HTTP request headers
6539+
6540+
- **Content-Type**: application/json
6541+
- **Accept**: application/json
6542+
6543+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
6544+
65066545
# **PostAppendDocument**
65076546
> DocumentResponse PostAppendDocument(name, appendFile, optional)
65086547
Append document to existing one.
@@ -6870,6 +6909,7 @@ Name | Type | Description | Notes
68706909
**endPageNumber** | **int32**| The end page number. |
68716910
**storage** | **string**| The document storage. |
68726911
**folder** | **string**| The document folder. |
6912+
**password** | **string**| Base64 encoded password. |
68736913

68746914
### Return type
68756915

@@ -7600,6 +7640,7 @@ Name | Type | Description | Notes
76007640
**stamps** | [**[]ImageStamp**](ImageStamp.md)| The array of stamp. |
76017641
**storage** | **string**| The document storage. |
76027642
**folder** | **string**| The document folder. |
7643+
**password** | **string**| Base64 encoded password. |
76037644

76047645
### Return type
76057646

@@ -7775,6 +7816,7 @@ Name | Type | Description | Notes
77757816
**stamps** | [**[]PdfPageStamp**](PdfPageStamp.md)| The array of stamp. |
77767817
**storage** | **string**| The document storage. |
77777818
**folder** | **string**| The document folder. |
7819+
**password** | **string**| Base64 encoded password. |
77787820

77797821
### Return type
77807822

@@ -8231,6 +8273,7 @@ Name | Type | Description | Notes
82318273
**stamps** | [**[]TextStamp**](TextStamp.md)| The array of stamp. |
82328274
**storage** | **string**| The document storage. |
82338275
**folder** | **string**| The document folder. |
8276+
**password** | **string**| Base64 encoded password. |
82348277

82358278
### Return type
82368279

page.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ type Page struct {
2727
Links []Link `json:"Links,omitempty"`
2828
// Page's id.
2929
Id int32 `json:"Id"`
30-
// Page's images
31-
Images *Images `json:"Images,omitempty"`
3230
// Page's rectangle
3331
Rectangle *Rectangle `json:"Rectangle,omitempty"`
3432
}

0 commit comments

Comments
 (0)