Skip to content

Commit a4cc8bb

Browse files
Prepare to release 23.4
1 parent bb639e5 commit a4cc8bb

File tree

801 files changed

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

801 files changed

+110406
-0
lines changed

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

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

v2304/README.md

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