Skip to content

Commit 3c455cc

Browse files
Release 23.2
1 parent 929a671 commit 3c455cc

File tree

800 files changed

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

800 files changed

+110362
-0
lines changed

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

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

v2302/README.md

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