Skip to content

Commit 218fa7b

Browse files
release 2106
1 parent 8946dc4 commit 218fa7b

File tree

703 files changed

+94995
-23
lines changed

Some content is hidden

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

703 files changed

+94995
-23
lines changed

README.md

Lines changed: 34 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ Feel free to explore the [Developer's Guide](https://docs.aspose.cloud/display/w
2121
- Implemented beta version of CompareDocumentOnline feature with both document sending in request
2222
- CompareDocument method now can handle PDF files
2323
- AcceptAllRevisionsBeforeComparison option introduced which is used to specify if accept all revisions before comparison
24+
- Added online methods
25+
- Added DependsOn feature for batch requests
26+
- Added ResultOf feature for batch requests
2427

2528

2629
## Enhancements in Version 21.5
@@ -152,11 +155,11 @@ Firstly, create an account at [Aspose for Cloud](https://dashboard.aspose.cloud/
152155

153156
From Visual Stuio Code:
154157

155-
Add "github.com/aspose-words-cloud/aspose-words-cloud-go/v2007/api" and "github.com/aspose-words-cloud/aspose-words-cloud-go/v2007/api/models" in the import section of your code
158+
Add "github.com/aspose-words-cloud/aspose-words-cloud-go/v2106/api" and "github.com/aspose-words-cloud/aspose-words-cloud-go/v2106/api/models" in the import section of your code
156159

157160
From the command line:
158161

159-
go get -v github.com/aspose-words-cloud/aspose-words-cloud-go/2007/api
162+
go get -v github.com/aspose-words-cloud/aspose-words-cloud-go/v2106/api
160163

161164
The complete source code is available at [GitHub Repository](https://github.com/aspose-words-cloud/aspose-words-cloud-go).
162165

@@ -179,27 +182,35 @@ Config.json file:
179182
Go code:
180183

181184
```
182-
// Start README example
183-
184-
// init words cloud api
185-
config, _ := models.NewConfiguration(configFilePath)
186-
wordsApi, ctx, _ := api.CreateWordsApi(config)
187-
188-
// upload test.docx to a cloud
189-
// remote.docx is a name in the cloud
190-
file, _ := os.Open(localFilePath)
191-
wordsApi.UploadFile(ctx, file, remotePath, nil)
192-
193-
// get a text for the first paragraph of the first section
194-
options := map[string]interface{}{
195-
"folder": remoteFolder,
196-
}
197-
198-
result, _, _ := wordsApi.GetParagraphs(ctx, remoteName, options)
199-
200-
fmt.Println(result.Paragraphs.ParagraphLinkList[0].Text)
201-
202-
// End README example
185+
// Start README example
186+
187+
// init words cloud api
188+
config, _ := models.NewConfiguration(configFilePath)
189+
wordsApi, ctx, _ := api.CreateWordsApi(config)
190+
191+
// upload test.docx to a cloud
192+
// remote.docx is a name in the cloud
193+
file, _ := os.Open(localFilePath)
194+
uploadRequest := &models.UploadFileRequest{
195+
FileContent: file,
196+
Path: &remotePath,
197+
}
198+
wordsApi.UploadFile(ctx, uploadRequest)
199+
200+
// get a text for the first paragraph of the first section
201+
options := map[string]interface{}{
202+
"folder": remoteFolder,
203+
}
204+
request := &models.GetParagraphsRequest{
205+
Name: &remoteName,
206+
Optionals: options,
207+
}
208+
209+
result, _, _ := wordsApi.GetParagraphs(ctx, request)
210+
211+
fmt.Println(result.Paragraphs.ParagraphLinkList[0].Text)
212+
213+
// End README example
203214
```
204215

205216
[Product Page](https://products.aspose.cloud/words/go) | [Documentation](https://docs.aspose.cloud/display/wordscloud/Home) | [API Reference](https://apireference.aspose.cloud/words/) | [Code Samples](https://github.com/aspose-words-cloud/aspose-words-cloud-go) | [Blog](https://blog.aspose.cloud/category/words/) | [Free Support](https://forum.aspose.cloud/c/words) | [Free Trial](https://dashboard.aspose.cloud/#/apps)

v2106/.vscode/launch.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "Launch",
9+
"type": "go",
10+
"request": "launch",
11+
"mode": "auto",
12+
"program": "${fileDirname}",
13+
"env": {},
14+
"args": []
15+
}
16+
]
17+
}

v2106/LICENSE.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Copyright 2020 Aspose
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

v2106/README.md

Lines changed: 208 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,208 @@
1+
Aspose.Wors Cloud SDK for Go wraps Aspose.Words REST API so you could seamlessly integrate Microsoft Word® document generation, manipulation, conversion & inspection features into your own Go applications.
2+
3+
# Word Document Processing in the Cloud
4+
5+
[Aspose.Words Cloud SDK for Go](https://products.aspose.cloud/words/go) allows to work with document headers, footers, page numbering, tables, sections, document comments, drawing objects, FormFields, fonts, hyperlinks, ranges, paragraphs, math objects, watermarks, track changes and document protection. It also assists in appending documents, splitting documents as well as converting document to other supported file formats.
6+
7+
Feel free to explore the [Developer's Guide](https://docs.aspose.cloud/display/wordscloud/Developer+Guide) & [API Reference](https://apireference.aspose.cloud/words/) to know all about Aspose.Words Cloud API.
8+
9+
## Document Processing Features
10+
11+
- Convert between various document-related formats, including Word to PDF & vice versa.
12+
- Mail merge and report generation in the Cloud.
13+
- Split & merge Word documents.
14+
- Access Word document metadata.
15+
- Find and replace text.
16+
- Add & remove watermarks and protection.
17+
- Read & write access to Document Object Model.
18+
19+
## Enhancements in Version 21.6
20+
21+
- Implemented beta version of CompareDocumentOnline feature with both document sending in request
22+
- CompareDocument method now can handle PDF files
23+
- AcceptAllRevisionsBeforeComparison option introduced which is used to specify if accept all revisions before comparison
24+
- Added online methods
25+
- Added DependsOn feature for batch requests
26+
- Added ResultOf feature for batch requests
27+
28+
29+
## Enhancements in Version 21.5
30+
31+
- Update dependencies in sdk
32+
33+
34+
## Enhancements in Version 21.4
35+
36+
- Removed obsolete pdf save option 'EscapeUri'
37+
- SaveOptions now contains CustomTimeZoneInfo to set custom timezone when SdtType.Date structured document tag updated from custom XML
38+
- Url of child requests in batch can be full now (earlier it can be only relative)
39+
- Added 'RquestId' header to all responses
40+
41+
42+
## Enhancements in Version 21.3
43+
44+
- Added 'UpdateCreatedTimeProperty' save option
45+
- Added Tables into HeaderFooter so it's possible to address paragraphs inside table which is located in headerfooter (sections/0/headersfooters/1/tables/0/rows/0/cells/0/paragraphs/0)
46+
47+
48+
## Enhancements in Version 21.2
49+
50+
- Added delete all comments method
51+
52+
53+
## Enhancements in Version 21.1
54+
55+
- Added online version for all API methods
56+
- Refactoring of Go SDK, all API method signatures are changed
57+
- Added Batch API feature
58+
59+
## Enhancements in Version 20.11
60+
61+
- In configuration json file appSid / appKey has been replaced to clientId / clientSecret.
62+
- In Words API initialization methods clientId parameter precedes clientSecret parameter.
63+
- Fixed the problem with object updating methods (they ignored parameters with default type values).
64+
65+
## Enhancements in Version 20.10
66+
67+
- Internal API changes.
68+
69+
70+
## Enhancements in Version 20.9
71+
72+
- Added Batch API feature
73+
74+
75+
## Enhancements in Version 20.8
76+
77+
- Added new api method (PUT '/words/{name}/compatibility/optimize') which is allows to optimize the document contents as well as default Aspose.Words behavior to a particular versions of MS Word
78+
- Added 'ApplyBaseDocumentHeadersAndFootersToAppendingDocuments' option to 'DocumentEntryList' for AppendDocument API
79+
- WithoutNodePath methods have been removed, pass null values instead
80+
81+
82+
## Enhancements in Version 20.7
83+
84+
- Added 'Markdown' save format
85+
- Added endpoint to update paragraph format without node path (PUT '/words/{name}/paragraphs/{index}/format')
86+
87+
88+
## Enhancements in Version 20.6
89+
90+
- Added new methods:
91+
- DeleteAllParagraphTabStopsWithoutNodePath
92+
- DeleteParagraphTabStopWithoutNodePath
93+
- GetParagraphTabStopsWithoutNodePath
94+
- InsertOrUpdateParagraphTabStopWithoutNodePath
95+
- InsertParagraphWithoutNodePath
96+
- UpdateParagraphFormatWithoutNodePath
97+
- UpdateParagraphListFormatWithoutNodePath
98+
- DeleteParagraphListFormatWithoutNodePath
99+
- DrawingObject related methods have been changed body content. Special request classes are introduced instead of strings.
100+
- InsertOrUpdateParagraphTabStop, DeleteParagraphTabStop methods have been changed parameter order
101+
- OoxmlSaveOptionsData.CompressionLevel property has been added
102+
103+
104+
## Enhancements in Version 20.5
105+
106+
- Added methods to work with Word document lists
107+
- GetLists
108+
- GetList
109+
- InsertList
110+
- UpdateList
111+
- UpdateListLevel
112+
- Added methods to work with styles
113+
- GetStyles
114+
- UpdateStyle
115+
- InsertStyle
116+
- CopyStyle
117+
- GetStyleFromDocumentElement
118+
- ApplyStyleToDocumentElement
119+
- Added methods to work with paragraph list format
120+
- GetParagraphListFormat
121+
- GetParagraphListFormatWithoutNodePath
122+
- UpdateParagraphListFormat
123+
- DeleteParagraphListFormat
124+
- Added methods to work with paragraph tab stops
125+
- GetParagraphTabStops
126+
- InsertOrUpdateParagraphTabStop
127+
- DeleteAllParagraphTabStops
128+
- DeleteParagraphTabStop
129+
- Added methods to build reports
130+
- BuildReport
131+
- BuildReportOnline
132+
- Added Shading property to ParagraphFormat
133+
134+
135+
## Read & Write Document Formats
136+
137+
**Microsoft Word:** DOC, DOCX, RTF, DOT, DOTX, DOTM, FlatOPC (XML)
138+
**OpenOffice:** ODT, OTT
139+
**WordprocessingML:** XML
140+
**Web:** HTML, MHTML, HtmlFixed
141+
**Text:** TXT
142+
**Fixed Layout:** PDF
143+
144+
## Save Document As
145+
146+
**Fixed Layout:** PDF/A, XPS, OpenXPS, PS
147+
**Images:** JPEG, PNG, BMP, SVG, TIFF, EMF
148+
**Others:** PCL
149+
150+
## Getting Started with Aspose.Words Cloud SDK for Go
151+
152+
Firstly, create an account at [Aspose for Cloud](https://dashboard.aspose.cloud/#/apps) to get your application information and free quota to use the API.
153+
154+
#### Install Aspose.Words-Cloud
155+
156+
From Visual Stuio Code:
157+
158+
Add "github.com/aspose-words-cloud/aspose-words-cloud-go/v2106/api" and "github.com/aspose-words-cloud/aspose-words-cloud-go/v2106/api/models" in the import section of your code
159+
160+
From the command line:
161+
162+
go get -v github.com/aspose-words-cloud/aspose-words-cloud-go/v2106/api
163+
164+
The complete source code is available at [GitHub Repository](https://github.com/aspose-words-cloud/aspose-words-cloud-go).
165+
166+
### SDK Dependencies
167+
168+
The libraray doesn't uses any non-Google Golang packages.
169+
170+
## Sample usage via the SDK
171+
172+
The examples below show how your application have to initiate and get a text of the first paragraph using Aspose.Words-Cloud library:
173+
174+
Config.json file:
175+
```csharp
176+
{
177+
"ClientId": "your client id",
178+
"ClientSecret": "your client secret",
179+
"BaseUrl": "https://api.aspose.cloud"
180+
}
181+
```
182+
Go code:
183+
184+
```
185+
// Start README example
186+
187+
// init words cloud api
188+
config, _ := models.NewConfiguration(configFilePath)
189+
wordsApi, ctx, _ := api.CreateWordsApi(config)
190+
191+
// upload test.docx to a cloud
192+
// remote.docx is a name in the cloud
193+
file, _ := os.Open(localFilePath)
194+
wordsApi.UploadFile(ctx, file, remotePath, nil)
195+
196+
// get a text for the first paragraph of the first section
197+
options := map[string]interface{}{
198+
"folder": remoteFolder,
199+
}
200+
201+
result, _, _ := wordsApi.GetParagraphs(ctx, remoteName, options)
202+
203+
fmt.Println(result.Paragraphs.ParagraphLinkList[0].Text)
204+
205+
// End README example
206+
```
207+
208+
[Product Page](https://products.aspose.cloud/words/go) | [Documentation](https://docs.aspose.cloud/display/wordscloud/Home) | [API Reference](https://apireference.aspose.cloud/words/) | [Code Samples](https://github.com/aspose-words-cloud/aspose-words-cloud-go) | [Blog](https://blog.aspose.cloud/category/words/) | [Free Support](https://forum.aspose.cloud/c/words) | [Free Trial](https://dashboard.aspose.cloud/#/apps)

0 commit comments

Comments
 (0)