Skip to content

Commit bde76dd

Browse files
SDK regenerated by CI server [ci skip]
1 parent e70bace commit bde76dd

12 files changed

+609
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ Feel free to explore the [Developer's Guide](https://docs.aspose.cloud/display/w
1616
- Add & remove watermarks and protection.
1717
- Read & write access to Document Object Model.
1818

19+
## Enhancements in Version 24.9
20+
21+
- Added ReplaceBackslashWithYenSign property for XpsSaveOptions and HtmlSaveOptions.
22+
- Added DigitalSignature property for XpsSaveOptions.
23+
- Added UseSdtTagAsFormFieldName property for PdfSaveOptions.
24+
25+
1926
## Enhancements in Version 24.8
2027

2128
- Added the support of OpenType standard. It is usefull for languages required advanced typography.

dev/api/models/azw3_save_options_data.go

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ type IAzw3SaveOptionsData interface {
129129
SetOfficeMathOutputMode(value *string)
130130
GetPrettyFormat() *bool
131131
SetPrettyFormat(value *bool)
132+
GetReplaceBackslashWithYenSign() *bool
133+
SetReplaceBackslashWithYenSign(value *bool)
132134
GetResolveFontNames() *bool
133135
SetResolveFontNames(value *bool)
134136
GetResourceFolder() *string
@@ -281,6 +283,9 @@ type Azw3SaveOptionsData struct {
281283
// Container class for azw3 save options.
282284
PrettyFormat *bool `json:"PrettyFormat,omitempty"`
283285

286+
// Container class for azw3 save options.
287+
ReplaceBackslashWithYenSign *bool `json:"ReplaceBackslashWithYenSign,omitempty"`
288+
284289
// Container class for azw3 save options.
285290
ResolveFontNames *bool `json:"ResolveFontNames,omitempty"`
286291

@@ -878,6 +883,18 @@ func (obj *Azw3SaveOptionsData) Deserialize(json map[string]interface{}) {
878883

879884
}
880885

886+
if jsonValue, exists := json["ReplaceBackslashWithYenSign"]; exists {
887+
if parsedValue, valid := jsonValue.(bool); valid {
888+
obj.ReplaceBackslashWithYenSign = &parsedValue
889+
}
890+
891+
} else if jsonValue, exists := json["replaceBackslashWithYenSign"]; exists {
892+
if parsedValue, valid := jsonValue.(bool); valid {
893+
obj.ReplaceBackslashWithYenSign = &parsedValue
894+
}
895+
896+
}
897+
881898
if jsonValue, exists := json["ResolveFontNames"]; exists {
882899
if parsedValue, valid := jsonValue.(bool); valid {
883900
obj.ResolveFontNames = &parsedValue
@@ -1334,6 +1351,14 @@ func (obj *Azw3SaveOptionsData) SetPrettyFormat(value *bool) {
13341351
obj.PrettyFormat = value
13351352
}
13361353

1354+
func (obj *Azw3SaveOptionsData) GetReplaceBackslashWithYenSign() *bool {
1355+
return obj.ReplaceBackslashWithYenSign
1356+
}
1357+
1358+
func (obj *Azw3SaveOptionsData) SetReplaceBackslashWithYenSign(value *bool) {
1359+
obj.ReplaceBackslashWithYenSign = value
1360+
}
1361+
13371362
func (obj *Azw3SaveOptionsData) GetResolveFontNames() *bool {
13381363
return obj.ResolveFontNames
13391364
}
Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
/*
2+
* --------------------------------------------------------------------------------
3+
* <copyright company="Aspose" file="digital_signature_details.go">
4+
* Copyright (c) 2024 Aspose.Words for Cloud
5+
* </copyright>
6+
* <summary>
7+
* Permission is hereby granted, free of charge, to any person obtaining a copy
8+
* of this software and associated documentation files (the "Software"), to deal
9+
* in the Software without restriction, including without limitation the rights
10+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
* copies of the Software, and to permit persons to whom the Software is
12+
* furnished to do so, subject to the following conditions:
13+
*
14+
* The above copyright notice and this permission notice shall be included in all
15+
* copies or substantial portions of the Software.
16+
*
17+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
* SOFTWARE.
24+
* </summary>
25+
* --------------------------------------------------------------------------------
26+
*/
27+
28+
package models
29+
30+
import (
31+
"errors"
32+
)
33+
34+
// Container class for details of digital signature.
35+
36+
type IDigitalSignatureDetails interface {
37+
IsDigitalSignatureDetails() bool
38+
Initialize()
39+
Deserialize(json map[string]interface{})
40+
CollectFilesContent(resultFilesContent []FileReference) []FileReference
41+
Validate() error
42+
GetCertificateFilename() *string
43+
SetCertificateFilename(value *string)
44+
GetSignOptions() ISignOptions
45+
SetSignOptions(value ISignOptions)
46+
}
47+
48+
type DigitalSignatureDetails struct {
49+
// Container class for details of digital signature.
50+
CertificateFilename *string `json:"CertificateFilename,omitempty"`
51+
52+
// Container class for details of digital signature.
53+
SignOptions ISignOptions `json:"SignOptions,omitempty"`
54+
}
55+
56+
func (DigitalSignatureDetails) IsDigitalSignatureDetails() bool {
57+
return true
58+
}
59+
60+
61+
func (obj *DigitalSignatureDetails) Initialize() {
62+
if (obj.SignOptions != nil) {
63+
obj.SignOptions.Initialize()
64+
}
65+
66+
67+
}
68+
69+
func (obj *DigitalSignatureDetails) Deserialize(json map[string]interface{}) {
70+
if jsonValue, exists := json["CertificateFilename"]; exists {
71+
if parsedValue, valid := jsonValue.(string); valid {
72+
obj.CertificateFilename = &parsedValue
73+
}
74+
75+
} else if jsonValue, exists := json["certificateFilename"]; exists {
76+
if parsedValue, valid := jsonValue.(string); valid {
77+
obj.CertificateFilename = &parsedValue
78+
}
79+
80+
}
81+
82+
if jsonValue, exists := json["SignOptions"]; exists {
83+
if parsedValue, valid := jsonValue.(map[string]interface{}); valid {
84+
var modelInstance ISignOptions = new(SignOptions)
85+
modelInstance.Deserialize(parsedValue)
86+
obj.SignOptions = modelInstance
87+
}
88+
89+
} else if jsonValue, exists := json["signOptions"]; exists {
90+
if parsedValue, valid := jsonValue.(map[string]interface{}); valid {
91+
var modelInstance ISignOptions = new(SignOptions)
92+
modelInstance.Deserialize(parsedValue)
93+
obj.SignOptions = modelInstance
94+
}
95+
96+
}
97+
}
98+
99+
func (obj *DigitalSignatureDetails) CollectFilesContent(resultFilesContent []FileReference) []FileReference {
100+
return resultFilesContent
101+
}
102+
103+
func (obj *DigitalSignatureDetails) Validate() error {
104+
if obj == nil {
105+
return errors.New("Invalid object.")
106+
}
107+
108+
if obj.SignOptions != nil {
109+
if err := obj.SignOptions.Validate(); err != nil {
110+
return err
111+
}
112+
}
113+
114+
return nil;
115+
}
116+
117+
func (obj *DigitalSignatureDetails) GetCertificateFilename() *string {
118+
return obj.CertificateFilename
119+
}
120+
121+
func (obj *DigitalSignatureDetails) SetCertificateFilename(value *string) {
122+
obj.CertificateFilename = value
123+
}
124+
125+
func (obj *DigitalSignatureDetails) GetSignOptions() ISignOptions {
126+
return obj.SignOptions
127+
}
128+
129+
func (obj *DigitalSignatureDetails) SetSignOptions(value ISignOptions) {
130+
obj.SignOptions = value
131+
}
132+

dev/api/models/epub_save_options_data.go

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ type IEpubSaveOptionsData interface {
129129
SetOfficeMathOutputMode(value *string)
130130
GetPrettyFormat() *bool
131131
SetPrettyFormat(value *bool)
132+
GetReplaceBackslashWithYenSign() *bool
133+
SetReplaceBackslashWithYenSign(value *bool)
132134
GetResolveFontNames() *bool
133135
SetResolveFontNames(value *bool)
134136
GetResourceFolder() *string
@@ -281,6 +283,9 @@ type EpubSaveOptionsData struct {
281283
// Container class for epub save options.
282284
PrettyFormat *bool `json:"PrettyFormat,omitempty"`
283285

286+
// Container class for epub save options.
287+
ReplaceBackslashWithYenSign *bool `json:"ReplaceBackslashWithYenSign,omitempty"`
288+
284289
// Container class for epub save options.
285290
ResolveFontNames *bool `json:"ResolveFontNames,omitempty"`
286291

@@ -878,6 +883,18 @@ func (obj *EpubSaveOptionsData) Deserialize(json map[string]interface{}) {
878883

879884
}
880885

886+
if jsonValue, exists := json["ReplaceBackslashWithYenSign"]; exists {
887+
if parsedValue, valid := jsonValue.(bool); valid {
888+
obj.ReplaceBackslashWithYenSign = &parsedValue
889+
}
890+
891+
} else if jsonValue, exists := json["replaceBackslashWithYenSign"]; exists {
892+
if parsedValue, valid := jsonValue.(bool); valid {
893+
obj.ReplaceBackslashWithYenSign = &parsedValue
894+
}
895+
896+
}
897+
881898
if jsonValue, exists := json["ResolveFontNames"]; exists {
882899
if parsedValue, valid := jsonValue.(bool); valid {
883900
obj.ResolveFontNames = &parsedValue
@@ -1334,6 +1351,14 @@ func (obj *EpubSaveOptionsData) SetPrettyFormat(value *bool) {
13341351
obj.PrettyFormat = value
13351352
}
13361353

1354+
func (obj *EpubSaveOptionsData) GetReplaceBackslashWithYenSign() *bool {
1355+
return obj.ReplaceBackslashWithYenSign
1356+
}
1357+
1358+
func (obj *EpubSaveOptionsData) SetReplaceBackslashWithYenSign(value *bool) {
1359+
obj.ReplaceBackslashWithYenSign = value
1360+
}
1361+
13371362
func (obj *EpubSaveOptionsData) GetResolveFontNames() *bool {
13381363
return obj.ResolveFontNames
13391364
}

dev/api/models/html_save_options_data.go

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ type IHtmlSaveOptionsData interface {
129129
SetOfficeMathOutputMode(value *string)
130130
GetPrettyFormat() *bool
131131
SetPrettyFormat(value *bool)
132+
GetReplaceBackslashWithYenSign() *bool
133+
SetReplaceBackslashWithYenSign(value *bool)
132134
GetResolveFontNames() *bool
133135
SetResolveFontNames(value *bool)
134136
GetResourceFolder() *string
@@ -279,6 +281,9 @@ type HtmlSaveOptionsData struct {
279281
// Container class for html save options.
280282
PrettyFormat *bool `json:"PrettyFormat,omitempty"`
281283

284+
// Container class for html save options.
285+
ReplaceBackslashWithYenSign *bool `json:"ReplaceBackslashWithYenSign,omitempty"`
286+
282287
// Container class for html save options.
283288
ResolveFontNames *bool `json:"ResolveFontNames,omitempty"`
284289

@@ -869,6 +874,18 @@ func (obj *HtmlSaveOptionsData) Deserialize(json map[string]interface{}) {
869874

870875
}
871876

877+
if jsonValue, exists := json["ReplaceBackslashWithYenSign"]; exists {
878+
if parsedValue, valid := jsonValue.(bool); valid {
879+
obj.ReplaceBackslashWithYenSign = &parsedValue
880+
}
881+
882+
} else if jsonValue, exists := json["replaceBackslashWithYenSign"]; exists {
883+
if parsedValue, valid := jsonValue.(bool); valid {
884+
obj.ReplaceBackslashWithYenSign = &parsedValue
885+
}
886+
887+
}
888+
872889
if jsonValue, exists := json["ResolveFontNames"]; exists {
873890
if parsedValue, valid := jsonValue.(bool); valid {
874891
obj.ResolveFontNames = &parsedValue
@@ -1311,6 +1328,14 @@ func (obj *HtmlSaveOptionsData) SetPrettyFormat(value *bool) {
13111328
obj.PrettyFormat = value
13121329
}
13131330

1331+
func (obj *HtmlSaveOptionsData) GetReplaceBackslashWithYenSign() *bool {
1332+
return obj.ReplaceBackslashWithYenSign
1333+
}
1334+
1335+
func (obj *HtmlSaveOptionsData) SetReplaceBackslashWithYenSign(value *bool) {
1336+
obj.ReplaceBackslashWithYenSign = value
1337+
}
1338+
13141339
func (obj *HtmlSaveOptionsData) GetResolveFontNames() *bool {
13151340
return obj.ResolveFontNames
13161341
}

dev/api/models/mhtml_save_options_data.go

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ type IMhtmlSaveOptionsData interface {
129129
SetOfficeMathOutputMode(value *string)
130130
GetPrettyFormat() *bool
131131
SetPrettyFormat(value *bool)
132+
GetReplaceBackslashWithYenSign() *bool
133+
SetReplaceBackslashWithYenSign(value *bool)
132134
GetResolveFontNames() *bool
133135
SetResolveFontNames(value *bool)
134136
GetResourceFolder() *string
@@ -281,6 +283,9 @@ type MhtmlSaveOptionsData struct {
281283
// Container class for mhtml save options.
282284
PrettyFormat *bool `json:"PrettyFormat,omitempty"`
283285

286+
// Container class for mhtml save options.
287+
ReplaceBackslashWithYenSign *bool `json:"ReplaceBackslashWithYenSign,omitempty"`
288+
284289
// Container class for mhtml save options.
285290
ResolveFontNames *bool `json:"ResolveFontNames,omitempty"`
286291

@@ -878,6 +883,18 @@ func (obj *MhtmlSaveOptionsData) Deserialize(json map[string]interface{}) {
878883

879884
}
880885

886+
if jsonValue, exists := json["ReplaceBackslashWithYenSign"]; exists {
887+
if parsedValue, valid := jsonValue.(bool); valid {
888+
obj.ReplaceBackslashWithYenSign = &parsedValue
889+
}
890+
891+
} else if jsonValue, exists := json["replaceBackslashWithYenSign"]; exists {
892+
if parsedValue, valid := jsonValue.(bool); valid {
893+
obj.ReplaceBackslashWithYenSign = &parsedValue
894+
}
895+
896+
}
897+
881898
if jsonValue, exists := json["ResolveFontNames"]; exists {
882899
if parsedValue, valid := jsonValue.(bool); valid {
883900
obj.ResolveFontNames = &parsedValue
@@ -1332,6 +1349,14 @@ func (obj *MhtmlSaveOptionsData) SetPrettyFormat(value *bool) {
13321349
obj.PrettyFormat = value
13331350
}
13341351

1352+
func (obj *MhtmlSaveOptionsData) GetReplaceBackslashWithYenSign() *bool {
1353+
return obj.ReplaceBackslashWithYenSign
1354+
}
1355+
1356+
func (obj *MhtmlSaveOptionsData) SetReplaceBackslashWithYenSign(value *bool) {
1357+
obj.ReplaceBackslashWithYenSign = value
1358+
}
1359+
13351360
func (obj *MhtmlSaveOptionsData) GetResolveFontNames() *bool {
13361361
return obj.ResolveFontNames
13371362
}

0 commit comments

Comments
 (0)