Skip to content

Commit e8797ef

Browse files
release 2011
1 parent 6593ec2 commit e8797ef

File tree

734 files changed

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

734 files changed

+99151
-21
lines changed

README.md

+29-21
Original file line numberDiff line numberDiff line change
@@ -208,27 +208,35 @@ Config.json file:
208208
Go code:
209209

210210
```
211-
// Start README example
212-
213-
// init words cloud api
214-
config, _ := models.NewConfiguration(configFilePath)
215-
wordsApi, ctx, _ := api.CreateWordsApi(config)
216-
217-
// upload test.docx to a cloud
218-
// remote.docx is a name in the cloud
219-
file, _ := os.Open(localFilePath)
220-
wordsApi.UploadFile(ctx, file, remotePath, nil)
221-
222-
// get a text for the first paragraph of the first section
223-
options := map[string]interface{}{
224-
"folder": remoteFolder,
225-
}
226-
227-
result, _, _ := wordsApi.GetParagraphs(ctx, remoteName, options)
228-
229-
fmt.Println(result.Paragraphs.ParagraphLinkList[0].Text)
230-
231-
// End README example
211+
// Start README example
212+
213+
// init words cloud api
214+
config, _ := models.NewConfiguration(configFilePath)
215+
wordsApi, ctx, _ := api.CreateWordsApi(config)
216+
217+
// upload test.docx to a cloud
218+
// remote.docx is a name in the cloud
219+
file, _ := os.Open(localFilePath)
220+
uploadRequest := &models.UploadFileRequest{
221+
FileContent: file,
222+
Path: &remotePath,
223+
}
224+
wordsApi.UploadFile(ctx, uploadRequest)
225+
226+
// get a text for the first paragraph of the first section
227+
options := map[string]interface{}{
228+
"folder": remoteFolder,
229+
}
230+
request := &models.GetParagraphsRequest{
231+
Name: &remoteName,
232+
Optionals: options,
233+
}
234+
235+
result, _, _ := wordsApi.GetParagraphs(ctx, request)
236+
237+
fmt.Println(result.Paragraphs.ParagraphLinkList[0].Text)
238+
239+
// End README example
232240
```
233241

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

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

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

v2111/README.md

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