Skip to content

Commit 649126a

Browse files
Prepare to 23.10 release
1 parent 3a83248 commit 649126a

File tree

795 files changed

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

795 files changed

+152332
-0
lines changed

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

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

v2310/README.md

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