Skip to content

Commit fa1f69e

Browse files
authored
Merge pull request #23 from kaferi/master
Update to v20.9
2 parents 24b2fa4 + bbe723a commit fa1f69e

File tree

10 files changed

+25
-6
lines changed

10 files changed

+25
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Aspose.PDF Cloud
22
- API version: 3.0
3-
- Package version: 20.8.0
3+
- Package version: 20.9.0
44

55
[Aspose.PDF Cloud](https://products.aspose.cloud/pdf) is a true REST API that enables you to perform a wide range of document processing operations including creation, manipulation, conversion and rendering of PDF documents in the cloud.
66

api_client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ func (c *APIClient) prepareRequest (
175175

176176
// set custom header
177177
headerParams["x-aspose-client"] = "go sdk"
178-
headerParams["x-aspose-client-version"] = "20.8.0"
178+
headerParams["x-aspose-client-version"] = "20.9.0"
179179

180180
// Detect postBody type and post.
181181
if postBody != nil {

docs/PdfApi.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7883,6 +7883,7 @@ Name | Type | Description | Notes
78837883
**annotations** | [**[]RedactionAnnotation**](RedactionAnnotation.md)| The array of annotation. |
78847884
**storage** | **string**| The document storage. |
78857885
**folder** | **string**| The document folder. |
7886+
**apply** | **bool**| Apply redaction immediately after adding. | [default to false]
78867887

78877888
### Return type
78887889

@@ -11615,6 +11616,7 @@ Name | Type | Description | Notes
1161511616
**annotation** | [**RedactionAnnotation**](RedactionAnnotation.md)| Annotation. |
1161611617
**storage** | **string**| The document storage. |
1161711618
**folder** | **string**| The document folder. |
11619+
**apply** | **bool**| Apply redaction immediately after adding. | [default to false]
1161811620

1161911621
### Return type
1162011622

docs/RedactionAnnotation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Name | Type | Description | Notes
2020
**FillColor** | [***Color**](Color.md) | Gets or sets color to fill annotation. | [optional] [default to null]
2121
**BorderColor** | [***Color**](Color.md) | Gets or sets color of border which is drawn when redaction is not active. | [optional] [default to null]
2222
**OverlayText** | **string** | Text to print on redact annotation. | [optional] [default to null]
23-
**Repeat** | **bool** | If true overlay text will be repated on the annotation. | [optional] [default to null]
23+
**Repeat** | **bool** | If true overlay text will be repeated on the annotation. | [optional] [default to null]
2424
**TextAlignment** | [***HorizontalAlignment**](HorizontalAlignment.md) | Gets or sets. Alignment of Overlay Text. | [optional] [default to null]
2525

2626
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)[[View Source]](../redaction_annotation.go)

docs/SignatureCustomAppearance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SignatureCustomAppearance
2-
An abstract class which represents signature custon appearance object.
2+
An abstract class which represents signature custom appearance object.
33

44
## Properties
55
Name | Type | Description | Notes

docs/TextStyle.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
88
**Font** | **string** | Gets or sets font of the text. | [optional] [default to null]
99
**ForegroundColor** | [***Color**](Color.md) | Gets or sets foreground color of the text. | [optional] [default to null]
1010
**BackgroundColor** | [***Color**](Color.md) | Sets background color of the text. | [optional] [default to null]
11+
**FontFile** | **string** | Sets path of font file in storage. | [optional] [default to null]
1112

1213
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)[[View Source]](../text_style.go)
1314

pdf_api.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18701,6 +18701,7 @@ func (a *PdfApiService) PostPagePolygonAnnotations(name string, pageNumber int32
1870118701
@param optional (nil or map[string]interface{}) with one or more of:
1870218702
@param "storage" (string) The document storage.
1870318703
@param "folder" (string) The document folder.
18704+
@param "apply" (bool) Apply redaction immediately after adding.
1870418705
@return AsposeResponse*/
1870518706
func (a *PdfApiService) PostPageRedactionAnnotations(name string, pageNumber int32, annotations []RedactionAnnotation, localVarOptionals map[string]interface{}) (AsposeResponse, *http.Response, error) {
1870618707
var (
@@ -18726,13 +18727,19 @@ func (a *PdfApiService) PostPageRedactionAnnotations(name string, pageNumber int
1872618727
if err := typeCheckParameter(localVarOptionals["folder"], "string", "folder"); err != nil {
1872718728
return successPayload, nil, err
1872818729
}
18730+
if err := typeCheckParameter(localVarOptionals["apply"], "bool", "apply"); err != nil {
18731+
return successPayload, nil, err
18732+
}
1872918733

1873018734
if localVarTempParam, localVarOk := localVarOptionals["storage"].(string); localVarOk {
1873118735
localVarQueryParams.Add("storage", parameterToString(localVarTempParam, ""))
1873218736
}
1873318737
if localVarTempParam, localVarOk := localVarOptionals["folder"].(string); localVarOk {
1873418738
localVarQueryParams.Add("folder", parameterToString(localVarTempParam, ""))
1873518739
}
18740+
if localVarTempParam, localVarOk := localVarOptionals["apply"].(bool); localVarOk {
18741+
localVarQueryParams.Add("apply", parameterToString(localVarTempParam, ""))
18742+
}
1873618743
// to determine the Content-Type header
1873718744
localVarHttpContentTypes := []string{ "application/json", }
1873818745

@@ -28498,6 +28505,7 @@ func (a *PdfApiService) PutRadioButtonField(name string, fieldName string, field
2849828505
@param optional (nil or map[string]interface{}) with one or more of:
2849928506
@param "storage" (string) The document storage.
2850028507
@param "folder" (string) The document folder.
28508+
@param "apply" (bool) Apply redaction immediately after adding.
2850128509
@return RedactionAnnotationResponse*/
2850228510
func (a *PdfApiService) PutRedactionAnnotation(name string, annotationId string, annotation RedactionAnnotation, localVarOptionals map[string]interface{}) (RedactionAnnotationResponse, *http.Response, error) {
2850328511
var (
@@ -28523,13 +28531,19 @@ func (a *PdfApiService) PutRedactionAnnotation(name string, annotationId string,
2852328531
if err := typeCheckParameter(localVarOptionals["folder"], "string", "folder"); err != nil {
2852428532
return successPayload, nil, err
2852528533
}
28534+
if err := typeCheckParameter(localVarOptionals["apply"], "bool", "apply"); err != nil {
28535+
return successPayload, nil, err
28536+
}
2852628537

2852728538
if localVarTempParam, localVarOk := localVarOptionals["storage"].(string); localVarOk {
2852828539
localVarQueryParams.Add("storage", parameterToString(localVarTempParam, ""))
2852928540
}
2853028541
if localVarTempParam, localVarOk := localVarOptionals["folder"].(string); localVarOk {
2853128542
localVarQueryParams.Add("folder", parameterToString(localVarTempParam, ""))
2853228543
}
28544+
if localVarTempParam, localVarOk := localVarOptionals["apply"].(bool); localVarOk {
28545+
localVarQueryParams.Add("apply", parameterToString(localVarTempParam, ""))
28546+
}
2853328547
// to determine the Content-Type header
2853428548
localVarHttpContentTypes := []string{ "application/json", }
2853528549

redaction_annotation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ type RedactionAnnotation struct {
5454
BorderColor *Color `json:"BorderColor,omitempty"`
5555
// Text to print on redact annotation.
5656
OverlayText string `json:"OverlayText,omitempty"`
57-
// If true overlay text will be repated on the annotation.
57+
// If true overlay text will be repeated on the annotation.
5858
Repeat bool `json:"Repeat,omitempty"`
5959
// Gets or sets. Alignment of Overlay Text.
6060
TextAlignment HorizontalAlignment `json:"TextAlignment,omitempty"`

signature_custom_appearance.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*/
2121
package asposepdfcloud
2222

23-
// An abstract class which represents signature custon appearance object.
23+
// An abstract class which represents signature custom appearance object.
2424
type SignatureCustomAppearance struct {
2525
// Gets/sets font family name. It should be existed in the document. Default value: Arial.
2626
FontFamilyName string `json:"FontFamilyName,omitempty"`

text_style.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,6 @@ type TextStyle struct {
3030
ForegroundColor *Color `json:"ForegroundColor,omitempty"`
3131
// Sets background color of the text.
3232
BackgroundColor *Color `json:"BackgroundColor,omitempty"`
33+
// Sets path of font file in storage.
34+
FontFile string `json:"FontFile,omitempty"`
3335
}

0 commit comments

Comments
 (0)