Skip to content

Commit acfea5b

Browse files
Prepare to release 2112
1 parent a8abd52 commit acfea5b

File tree

743 files changed

+99734
-1
lines changed

Some content is hidden

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

743 files changed

+99734
-1
lines changed

dev/tests/base_test.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ import (
3131
"bytes"
3232
"context"
3333
"crypto/rand"
34-
"time"
3534
"fmt"
3635
"io/ioutil"
3736
"log"
@@ -41,6 +40,7 @@ import (
4140
"runtime"
4241
"strings"
4342
"testing"
43+
"time"
4444

4545
"github.com/aspose-words-cloud/aspose-words-cloud-go/dev/api"
4646
"github.com/aspose-words-cloud/aspose-words-cloud-go/dev/api/models"
@@ -121,6 +121,8 @@ func GetConfigFilePath() (path string) {
121121
}
122122

123123
func PrepareTest(t *testing.T, config *models.Configuration) (apiClient *api.APIClient, ctx context.Context) {
124+
125+
config.Timeout = time.Minute
124126
client, err := api.NewAPIClient(config)
125127

126128
if err != nil {

v2112/.vscode/launch.json

+17
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+
}

v2112/LICENSE.md

+7
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.

v2112/README.md

+240
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,240 @@
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.12
20+
21+
- Added FieldOptions parameter to mail merge operations
22+
- Added timeout parameter to api configuration
23+
24+
25+
## Enhancements in Version 21.11
26+
27+
28+
29+
## Enhancements in Version 21.10
30+
31+
- Removed 'GraphicsQualityOptions' image save option as it no longer supported.
32+
- Added query parameter 'displayIntermediateResults' for batch requests. If 'false', the last response in batch will be returned only. Default is 'true'
33+
- Added 'JsonDataLoadOptions' and 'XmlDataLoadOptions' to 'ReportEngineSettings'
34+
35+
36+
## Enhancements in Version 21.8
37+
38+
- Added new api methods to get, insert, update or delete custom xml parts from documents.
39+
- Added parameter 'ResultDocumentFormat' to Compare API
40+
- Added 'ExportLanguageToSpanTag' pdf save option
41+
- Added 'FlatOpcXmlMappingOnly' save option
42+
43+
44+
## Enhancements in Version 21.7
45+
46+
- ImlRenderingMode option introduced witch is used to determine how ink (InkML) objects are rendered
47+
- MaxCharactersPerLine option introduced which is used to specify the maximum number of characters per one line
48+
- Added new API method to get a RSA public key to encrypt document passwords
49+
- Added encryptedPassword common query option to pass an encrypted document password
50+
51+
52+
## Enhancements in Version 21.6
53+
54+
- Implemented beta version of CompareDocumentOnline feature with both document sending in request
55+
- CompareDocument method now can handle PDF files
56+
- AcceptAllRevisionsBeforeComparison option introduced which is used to specify if accept all revisions before comparison
57+
- Added support of online methods
58+
- Added support of DependOn feature for batch requests
59+
- Added aupport of ResultOf feature for batch requests
60+
61+
## Enhancements in Version 21.5
62+
63+
- Update dependencies in sdk
64+
65+
66+
## Enhancements in Version 21.4
67+
68+
- Removed obsolete pdf save option 'EscapeUri'
69+
- SaveOptions now contains CustomTimeZoneInfo to set custom timezone when SdtType.Date structured document tag updated from custom XML
70+
- Url of child requests in batch can be full now (earlier it can be only relative)
71+
- Added 'RquestId' header to all responses
72+
73+
74+
## Enhancements in Version 21.3
75+
76+
- Added 'UpdateCreatedTimeProperty' save option
77+
- 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)
78+
79+
80+
## Enhancements in Version 21.2
81+
82+
- Added delete all comments method
83+
84+
85+
## Enhancements in Version 21.1
86+
87+
- Added online version for all API methods
88+
- Refactoring of Go SDK, all API method signatures are changed
89+
- Added Batch API feature
90+
91+
## Enhancements in Version 20.11
92+
93+
- In configuration json file appSid / appKey has been replaced to clientId / clientSecret.
94+
- In Words API initialization methods clientId parameter precedes clientSecret parameter.
95+
- Fixed the problem with object updating methods (they ignored parameters with default type values).
96+
97+
## Enhancements in Version 20.10
98+
99+
- Internal API changes.
100+
101+
102+
## Enhancements in Version 20.9
103+
104+
- Added Batch API feature
105+
106+
107+
## Enhancements in Version 20.8
108+
109+
- 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
110+
- Added 'ApplyBaseDocumentHeadersAndFootersToAppendingDocuments' option to 'DocumentEntryList' for AppendDocument API
111+
- WithoutNodePath methods have been removed, pass null values instead
112+
113+
114+
## Enhancements in Version 20.7
115+
116+
- Added 'Markdown' save format
117+
- Added endpoint to update paragraph format without node path (PUT '/words/{name}/paragraphs/{index}/format')
118+
119+
120+
## Enhancements in Version 20.6
121+
122+
- Added new methods:
123+
- DeleteAllParagraphTabStopsWithoutNodePath
124+
- DeleteParagraphTabStopWithoutNodePath
125+
- GetParagraphTabStopsWithoutNodePath
126+
- InsertOrUpdateParagraphTabStopWithoutNodePath
127+
- InsertParagraphWithoutNodePath
128+
- UpdateParagraphFormatWithoutNodePath
129+
- UpdateParagraphListFormatWithoutNodePath
130+
- DeleteParagraphListFormatWithoutNodePath
131+
- DrawingObject related methods have been changed body content. Special request classes are introduced instead of strings.
132+
- InsertOrUpdateParagraphTabStop, DeleteParagraphTabStop methods have been changed parameter order
133+
- OoxmlSaveOptionsData.CompressionLevel property has been added
134+
135+
136+
## Enhancements in Version 20.5
137+
138+
- Added methods to work with Word document lists
139+
- GetLists
140+
- GetList
141+
- InsertList
142+
- UpdateList
143+
- UpdateListLevel
144+
- Added methods to work with styles
145+
- GetStyles
146+
- UpdateStyle
147+
- InsertStyle
148+
- CopyStyle
149+
- GetStyleFromDocumentElement
150+
- ApplyStyleToDocumentElement
151+
- Added methods to work with paragraph list format
152+
- GetParagraphListFormat
153+
- GetParagraphListFormatWithoutNodePath
154+
- UpdateParagraphListFormat
155+
- DeleteParagraphListFormat
156+
- Added methods to work with paragraph tab stops
157+
- GetParagraphTabStops
158+
- InsertOrUpdateParagraphTabStop
159+
- DeleteAllParagraphTabStops
160+
- DeleteParagraphTabStop
161+
- Added methods to build reports
162+
- BuildReport
163+
- BuildReportOnline
164+
- Added Shading property to ParagraphFormat
165+
166+
167+
## Read & Write Document Formats
168+
169+
**Microsoft Word:** DOC, DOCX, RTF, DOT, DOTX, DOTM, FlatOPC (XML)
170+
**OpenOffice:** ODT, OTT
171+
**WordprocessingML:** XML
172+
**Web:** HTML, MHTML, HtmlFixed
173+
**Text:** TXT
174+
**Fixed Layout:** PDF
175+
176+
## Save Document As
177+
178+
**Fixed Layout:** PDF/A, XPS, OpenXPS, PS
179+
**Images:** JPEG, PNG, BMP, SVG, TIFF, EMF
180+
**Others:** PCL
181+
182+
## Getting Started with Aspose.Words Cloud SDK for Go
183+
184+
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.
185+
186+
#### Install Aspose.Words-Cloud
187+
188+
From Visual Stuio Code:
189+
190+
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
191+
192+
From the command line:
193+
194+
go get -v github.com/aspose-words-cloud/aspose-words-cloud-go/2007/api
195+
196+
The complete source code is available at [GitHub Repository](https://github.com/aspose-words-cloud/aspose-words-cloud-go).
197+
198+
### SDK Dependencies
199+
200+
The libraray doesn't uses any non-Google Golang packages.
201+
202+
## Sample usage via the SDK
203+
204+
The examples below show how your application have to initiate and get a text of the first paragraph using Aspose.Words-Cloud library:
205+
206+
Config.json file:
207+
```csharp
208+
{
209+
"ClientId": "your client id",
210+
"ClientSecret": "your client secret",
211+
"BaseUrl": "https://api.aspose.cloud"
212+
}
213+
```
214+
Go code:
215+
216+
```
217+
// Start README example
218+
219+
// init words cloud api
220+
config, _ := models.NewConfiguration(configFilePath)
221+
wordsApi, ctx, _ := api.CreateWordsApi(config)
222+
223+
// upload test.docx to a cloud
224+
// remote.docx is a name in the cloud
225+
file, _ := os.Open(localFilePath)
226+
wordsApi.UploadFile(ctx, file, remotePath, nil)
227+
228+
// get a text for the first paragraph of the first section
229+
options := map[string]interface{}{
230+
"folder": remoteFolder,
231+
}
232+
233+
result, _, _ := wordsApi.GetParagraphs(ctx, remoteName, options)
234+
235+
fmt.Println(result.Paragraphs.ParagraphLinkList[0].Text)
236+
237+
// End README example
238+
```
239+
240+
[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)