Skip to content

Commit de42656

Browse files
Prepare to release
1 parent ebb70a9 commit de42656

File tree

757 files changed

+110541
-0
lines changed

Some content is hidden

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

757 files changed

+110541
-0
lines changed

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

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

v2204/README.md

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