Skip to content

Commit bf42c66

Browse files
Release 22.03
1 parent 1ab6591 commit bf42c66

File tree

756 files changed

+110282
-21
lines changed

Some content is hidden

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

756 files changed

+110282
-21
lines changed

README.md

+29-21
Original file line numberDiff line numberDiff line change
@@ -236,27 +236,35 @@ Config.json file:
236236
Go code:
237237

238238
```
239-
// Start README example
240-
241-
// init words cloud api
242-
config, _ := models.NewConfiguration(configFilePath)
243-
wordsApi, ctx, _ := api.CreateWordsApi(config)
244-
245-
// upload test.docx to a cloud
246-
// remote.docx is a name in the cloud
247-
file, _ := os.Open(localFilePath)
248-
wordsApi.UploadFile(ctx, file, remotePath, nil)
249-
250-
// get a text for the first paragraph of the first section
251-
options := map[string]interface{}{
252-
"folder": remoteFolder,
253-
}
254-
255-
result, _, _ := wordsApi.GetParagraphs(ctx, remoteName, options)
256-
257-
fmt.Println(result.Paragraphs.ParagraphLinkList[0].Text)
258-
259-
// End README example
239+
// Start README example
240+
241+
// init words cloud api
242+
config, _ := models.NewConfiguration(configFilePath)
243+
wordsApi, ctx, _ := api.CreateWordsApi(config)
244+
245+
// upload test.docx to a cloud
246+
// remote.docx is a name in the cloud
247+
file, _ := os.Open(localFilePath)
248+
uploadRequest := &models.UploadFileRequest{
249+
FileContent: file,
250+
Path: &remotePath,
251+
}
252+
wordsApi.UploadFile(ctx, uploadRequest)
253+
254+
// get a text for the first paragraph of the first section
255+
options := map[string]interface{}{
256+
"folder": remoteFolder,
257+
}
258+
request := &models.GetParagraphsRequest{
259+
Name: &remoteName,
260+
Optionals: options,
261+
}
262+
263+
result, _, _ := wordsApi.GetParagraphs(ctx, request)
264+
265+
fmt.Println(result.Paragraphs.ParagraphLinkList[0].Text)
266+
267+
// End README example
260268
```
261269

262270
[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)

v2203/.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+
}

v2203/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.

v2203/README.md

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