Skip to content

Commit 20ae120

Browse files
prepare to release 2311
1 parent a076b65 commit 20ae120

File tree

795 files changed

+162704
-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

+162704
-0
lines changed

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

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

v2311/README.md

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