Skip to content

Commit 7a50fc6

Browse files
committed
Update to v19.2
1 parent 008f43b commit 7a50fc6

29 files changed

+2636
-117
lines changed

README.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Aspose.PDF Cloud
22
- API version: 2.0
3-
- Package version: 19.1.0
3+
- Package version: 19.2.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

@@ -87,9 +87,11 @@ Class | Method | HTTP request | Description
8787
*PdfApi* | [**GetDocumentProperties**](docs/PdfApi.md#getdocumentproperties) | **Get** /pdf/{name}/documentproperties | Read document properties.
8888
*PdfApi* | [**GetDocumentProperty**](docs/PdfApi.md#getdocumentproperty) | **Get** /pdf/{name}/documentproperties/{propertyName} | Read document property by name.
8989
*PdfApi* | [**GetDocumentRedactionAnnotations**](docs/PdfApi.md#getdocumentredactionannotations) | **Get** /pdf/{name}/annotations/redaction | Read document redaction annotations.
90+
*PdfApi* | [**GetDocumentScreenAnnotations**](docs/PdfApi.md#getdocumentscreenannotations) | **Get** /pdf/{name}/annotations/screen | Read document screen annotations.
9091
*PdfApi* | [**GetDocumentSoundAnnotations**](docs/PdfApi.md#getdocumentsoundannotations) | **Get** /pdf/{name}/annotations/sound | Read document sound annotations.
9192
*PdfApi* | [**GetDocumentSquareAnnotations**](docs/PdfApi.md#getdocumentsquareannotations) | **Get** /pdf/{name}/annotations/square | Read document square annotations.
9293
*PdfApi* | [**GetDocumentSquigglyAnnotations**](docs/PdfApi.md#getdocumentsquigglyannotations) | **Get** /pdf/{name}/annotations/squiggly | Read document squiggly annotations.
94+
*PdfApi* | [**GetDocumentStampAnnotations**](docs/PdfApi.md#getdocumentstampannotations) | **Get** /pdf/{name}/annotations/stamp | Read document stamp annotations.
9395
*PdfApi* | [**GetDocumentStrikeOutAnnotations**](docs/PdfApi.md#getdocumentstrikeoutannotations) | **Get** /pdf/{name}/annotations/strikeout | Read document StrikeOut annotations.
9496
*PdfApi* | [**GetDocumentTextAnnotations**](docs/PdfApi.md#getdocumenttextannotations) | **Get** /pdf/{name}/annotations/text | Read document text annotations.
9597
*PdfApi* | [**GetDocumentUnderlineAnnotations**](docs/PdfApi.md#getdocumentunderlineannotations) | **Get** /pdf/{name}/annotations/underline | Read document underline annotations.
@@ -141,9 +143,11 @@ Class | Method | HTTP request | Description
141143
*PdfApi* | [**GetPagePolygonAnnotations**](docs/PdfApi.md#getpagepolygonannotations) | **Get** /pdf/{name}/pages/{pageNumber}/annotations/polygon | Read document page polygon annotations.
142144
*PdfApi* | [**GetPagePopupAnnotations**](docs/PdfApi.md#getpagepopupannotations) | **Get** /pdf/{name}/pages/{pageNumber}/annotations/popup | Read document page popup annotations.
143145
*PdfApi* | [**GetPageRedactionAnnotations**](docs/PdfApi.md#getpageredactionannotations) | **Get** /pdf/{name}/pages/{pageNumber}/annotations/redaction | Read document page redaction annotations.
146+
*PdfApi* | [**GetPageScreenAnnotations**](docs/PdfApi.md#getpagescreenannotations) | **Get** /pdf/{name}/pages/{pageNumber}/annotations/screen | Read document page screen annotations.
144147
*PdfApi* | [**GetPageSoundAnnotations**](docs/PdfApi.md#getpagesoundannotations) | **Get** /pdf/{name}/pages/{pageNumber}/annotations/sound | Read document page sound annotations.
145148
*PdfApi* | [**GetPageSquareAnnotations**](docs/PdfApi.md#getpagesquareannotations) | **Get** /pdf/{name}/pages/{pageNumber}/annotations/square | Read document page square annotations.
146149
*PdfApi* | [**GetPageSquigglyAnnotations**](docs/PdfApi.md#getpagesquigglyannotations) | **Get** /pdf/{name}/pages/{pageNumber}/annotations/squiggly | Read document page squiggly annotations.
150+
*PdfApi* | [**GetPageStampAnnotations**](docs/PdfApi.md#getpagestampannotations) | **Get** /pdf/{name}/pages/{pageNumber}/annotations/stamp | Read document page stamp annotations.
147151
*PdfApi* | [**GetPageStrikeOutAnnotations**](docs/PdfApi.md#getpagestrikeoutannotations) | **Get** /pdf/{name}/pages/{pageNumber}/annotations/strikeout | Read document page StrikeOut annotations.
148152
*PdfApi* | [**GetPageText**](docs/PdfApi.md#getpagetext) | **Get** /pdf/{name}/pages/{pageNumber}/text | Read page text items.
149153
*PdfApi* | [**GetPageTextAnnotations**](docs/PdfApi.md#getpagetextannotations) | **Get** /pdf/{name}/pages/{pageNumber}/annotations/text | Read document page text annotations.
@@ -167,10 +171,13 @@ Class | Method | HTTP request | Description
167171
*PdfApi* | [**GetPopupAnnotation**](docs/PdfApi.md#getpopupannotation) | **Get** /pdf/{name}/annotations/popup/{annotationId} | Read document page popup annotation by ID.
168172
*PdfApi* | [**GetPsInStorageToPdf**](docs/PdfApi.md#getpsinstoragetopdf) | **Get** /pdf/create/ps | Convert PS file (located on storage) to PDF format and return resulting file in response.
169173
*PdfApi* | [**GetRedactionAnnotation**](docs/PdfApi.md#getredactionannotation) | **Get** /pdf/{name}/annotations/redaction/{annotationId} | Read document page redaction annotation by ID.
174+
*PdfApi* | [**GetScreenAnnotation**](docs/PdfApi.md#getscreenannotation) | **Get** /pdf/{name}/annotations/screen/{annotationId} | Read document page screen annotation by ID.
170175
*PdfApi* | [**GetSoundAnnotation**](docs/PdfApi.md#getsoundannotation) | **Get** /pdf/{name}/annotations/sound/{annotationId} | Read document page sound annotation by ID.
171176
*PdfApi* | [**GetSoundAnnotationData**](docs/PdfApi.md#getsoundannotationdata) | **Get** /pdf/{name}/annotations/sound/{annotationId}/data | Read document page sound annotation by ID.
172177
*PdfApi* | [**GetSquareAnnotation**](docs/PdfApi.md#getsquareannotation) | **Get** /pdf/{name}/annotations/square/{annotationId} | Read document page square annotation by ID.
173178
*PdfApi* | [**GetSquigglyAnnotation**](docs/PdfApi.md#getsquigglyannotation) | **Get** /pdf/{name}/annotations/squiggly/{annotationId} | Read document page squiggly annotation by ID.
179+
*PdfApi* | [**GetStampAnnotation**](docs/PdfApi.md#getstampannotation) | **Get** /pdf/{name}/annotations/stamp/{annotationId} | Read document page stamp annotation by ID.
180+
*PdfApi* | [**GetStampAnnotationData**](docs/PdfApi.md#getstampannotationdata) | **Get** /pdf/{name}/annotations/stamp/{annotationId}/data | Read document page stamp annotation by ID.
174181
*PdfApi* | [**GetStrikeOutAnnotation**](docs/PdfApi.md#getstrikeoutannotation) | **Get** /pdf/{name}/annotations/strikeout/{annotationId} | Read document page StrikeOut annotation by ID.
175182
*PdfApi* | [**GetSvgInStorageToPdf**](docs/PdfApi.md#getsvginstoragetopdf) | **Get** /pdf/create/svg | Convert SVG file (located on storage) to PDF format and return resulting file in response.
176183
*PdfApi* | [**GetText**](docs/PdfApi.md#gettext) | **Get** /pdf/{name}/text | Read document text.
@@ -204,9 +211,11 @@ Class | Method | HTTP request | Description
204211
*PdfApi* | [**PostPagePolyLineAnnotations**](docs/PdfApi.md#postpagepolylineannotations) | **Post** /pdf/{name}/pages/{pageNumber}/annotations/polyline | Add document page polyline annotations.
205212
*PdfApi* | [**PostPagePolygonAnnotations**](docs/PdfApi.md#postpagepolygonannotations) | **Post** /pdf/{name}/pages/{pageNumber}/annotations/polygon | Add document page polygon annotations.
206213
*PdfApi* | [**PostPageRedactionAnnotations**](docs/PdfApi.md#postpageredactionannotations) | **Post** /pdf/{name}/pages/{pageNumber}/annotations/redaction | Add document page redaction annotations.
214+
*PdfApi* | [**PostPageScreenAnnotations**](docs/PdfApi.md#postpagescreenannotations) | **Post** /pdf/{name}/pages/{pageNumber}/annotations/screen | Add document page screen annotations.
207215
*PdfApi* | [**PostPageSoundAnnotations**](docs/PdfApi.md#postpagesoundannotations) | **Post** /pdf/{name}/pages/{pageNumber}/annotations/sound | Add document page sound annotations.
208216
*PdfApi* | [**PostPageSquareAnnotations**](docs/PdfApi.md#postpagesquareannotations) | **Post** /pdf/{name}/pages/{pageNumber}/annotations/square | Add document page square annotations.
209217
*PdfApi* | [**PostPageSquigglyAnnotations**](docs/PdfApi.md#postpagesquigglyannotations) | **Post** /pdf/{name}/pages/{pageNumber}/annotations/squiggly | Add document page squiggly annotations.
218+
*PdfApi* | [**PostPageStampAnnotations**](docs/PdfApi.md#postpagestampannotations) | **Post** /pdf/{name}/pages/{pageNumber}/annotations/stamp | Add document page stamp annotations.
210219
*PdfApi* | [**PostPageStrikeOutAnnotations**](docs/PdfApi.md#postpagestrikeoutannotations) | **Post** /pdf/{name}/pages/{pageNumber}/annotations/strikeout | Add document page StrikeOut annotations.
211220
*PdfApi* | [**PostPageTextAnnotations**](docs/PdfApi.md#postpagetextannotations) | **Post** /pdf/{name}/pages/{pageNumber}/annotations/text | Add document page text annotations.
212221
*PdfApi* | [**PostPageTextReplace**](docs/PdfApi.md#postpagetextreplace) | **Post** /pdf/{name}/pages/{pageNumber}/text/replace | Page's replace text method.
@@ -217,6 +226,7 @@ Class | Method | HTTP request | Description
217226
*PdfApi* | [**PostSplitDocument**](docs/PdfApi.md#postsplitdocument) | **Post** /pdf/{name}/split | Split document to parts.
218227
*PdfApi* | [**PutAddNewPage**](docs/PdfApi.md#putaddnewpage) | **Put** /pdf/{name}/pages | Add new page to end of the document.
219228
*PdfApi* | [**PutAddText**](docs/PdfApi.md#putaddtext) | **Put** /pdf/{name}/pages/{pageNumber}/text | Add text to PDF document page.
229+
*PdfApi* | [**PutAnnotationsFlatten**](docs/PdfApi.md#putannotationsflatten) | **Put** /pdf/{name}/annotations/flatten | Flattens the annotations of the specified types
220230
*PdfApi* | [**PutCaretAnnotation**](docs/PdfApi.md#putcaretannotation) | **Put** /pdf/{name}/annotations/caret/{annotationId} | Replace document caret annotation
221231
*PdfApi* | [**PutCircleAnnotation**](docs/PdfApi.md#putcircleannotation) | **Put** /pdf/{name}/annotations/circle/{annotationId} | Replace document circle annotation
222232
*PdfApi* | [**PutCreate**](docs/PdfApi.md#putcreate) | **Put** /storage/file | Upload a specific file
@@ -284,12 +294,15 @@ Class | Method | HTTP request | Description
284294
*PdfApi* | [**PutPsInStorageToPdf**](docs/PdfApi.md#putpsinstoragetopdf) | **Put** /pdf/{name}/create/ps | Convert PS file (located on storage) to PDF format and upload resulting file to storage.
285295
*PdfApi* | [**PutRedactionAnnotation**](docs/PdfApi.md#putredactionannotation) | **Put** /pdf/{name}/annotations/redaction/{annotationId} | Replace document redaction annotation
286296
*PdfApi* | [**PutReplaceImage**](docs/PdfApi.md#putreplaceimage) | **Put** /pdf/{name}/images/{imageId} | Replace document image.
297+
*PdfApi* | [**PutScreenAnnotation**](docs/PdfApi.md#putscreenannotation) | **Put** /pdf/{name}/annotations/screen/{annotationId} | Replace document screen annotation
287298
*PdfApi* | [**PutSearchableDocument**](docs/PdfApi.md#putsearchabledocument) | **Put** /pdf/{name}/ocr | Create searchable PDF document. Generate OCR layer for images in input PDF document.
288299
*PdfApi* | [**PutSetProperty**](docs/PdfApi.md#putsetproperty) | **Put** /pdf/{name}/documentproperties/{propertyName} | Add/update document property.
289300
*PdfApi* | [**PutSoundAnnotation**](docs/PdfApi.md#putsoundannotation) | **Put** /pdf/{name}/annotations/sound/{annotationId} | Replace document sound annotation
290301
*PdfApi* | [**PutSoundAnnotationDataExtract**](docs/PdfApi.md#putsoundannotationdataextract) | **Put** /pdf/{name}/annotations/sound/{annotationId}/data/extract | Extract document sound annotation content to storage
291302
*PdfApi* | [**PutSquareAnnotation**](docs/PdfApi.md#putsquareannotation) | **Put** /pdf/{name}/annotations/square/{annotationId} | Replace document square annotation
292303
*PdfApi* | [**PutSquigglyAnnotation**](docs/PdfApi.md#putsquigglyannotation) | **Put** /pdf/{name}/annotations/squiggly/{annotationId} | Replace document squiggly annotation
304+
*PdfApi* | [**PutStampAnnotation**](docs/PdfApi.md#putstampannotation) | **Put** /pdf/{name}/annotations/stamp/{annotationId} | Replace document stamp annotation
305+
*PdfApi* | [**PutStampAnnotationDataExtract**](docs/PdfApi.md#putstampannotationdataextract) | **Put** /pdf/{name}/annotations/stamp/{annotationId}/data/extract | Extract document stamp annotation content to storage
293306
*PdfApi* | [**PutStrikeOutAnnotation**](docs/PdfApi.md#putstrikeoutannotation) | **Put** /pdf/{name}/annotations/strikeout/{annotationId} | Replace document StrikeOut annotation
294307
*PdfApi* | [**PutSvgInStorageToPdf**](docs/PdfApi.md#putsvginstoragetopdf) | **Put** /pdf/{name}/create/svg | Convert SVG file (located on storage) to PDF format and upload resulting file to storage.
295308
*PdfApi* | [**PutTextAnnotation**](docs/PdfApi.md#puttextannotation) | **Put** /pdf/{name}/annotations/text/{annotationId} | Replace document text annotation
@@ -366,6 +379,7 @@ Class | Method | HTTP request | Description
366379
- [SoundIcon](docs/SoundIcon.md)
367380
- [SplitResult](docs/SplitResult.md)
368381
- [Stamp](docs/Stamp.md)
382+
- [StampIcon](docs/StampIcon.md)
369383
- [StampType](docs/StampType.md)
370384
- [TextHorizontalAlignment](docs/TextHorizontalAlignment.md)
371385
- [TextIcon](docs/TextIcon.md)
@@ -449,6 +463,9 @@ Class | Method | HTTP request | Description
449463
- [RedactionAnnotationResponse](docs/RedactionAnnotationResponse.md)
450464
- [RedactionAnnotations](docs/RedactionAnnotations.md)
451465
- [RedactionAnnotationsResponse](docs/RedactionAnnotationsResponse.md)
466+
- [ScreenAnnotationResponse](docs/ScreenAnnotationResponse.md)
467+
- [ScreenAnnotations](docs/ScreenAnnotations.md)
468+
- [ScreenAnnotationsResponse](docs/ScreenAnnotationsResponse.md)
452469
- [SignatureVerifyResponse](docs/SignatureVerifyResponse.md)
453470
- [SoundAnnotationResponse](docs/SoundAnnotationResponse.md)
454471
- [SoundAnnotations](docs/SoundAnnotations.md)
@@ -461,6 +478,9 @@ Class | Method | HTTP request | Description
461478
- [SquigglyAnnotationResponse](docs/SquigglyAnnotationResponse.md)
462479
- [SquigglyAnnotations](docs/SquigglyAnnotations.md)
463480
- [SquigglyAnnotationsResponse](docs/SquigglyAnnotationsResponse.md)
481+
- [StampAnnotationResponse](docs/StampAnnotationResponse.md)
482+
- [StampAnnotations](docs/StampAnnotations.md)
483+
- [StampAnnotationsResponse](docs/StampAnnotationsResponse.md)
464484
- [StorageExistResponse](docs/StorageExistResponse.md)
465485
- [StrikeOutAnnotationResponse](docs/StrikeOutAnnotationResponse.md)
466486
- [StrikeOutAnnotations](docs/StrikeOutAnnotations.md)
@@ -479,6 +499,7 @@ Class | Method | HTTP request | Description
479499
- [MovieAnnotation](docs/MovieAnnotation.md)
480500
- [PopupAnnotation](docs/PopupAnnotation.md)
481501
- [RedactionAnnotation](docs/RedactionAnnotation.md)
502+
- [ScreenAnnotation](docs/ScreenAnnotation.md)
482503
- [CaretAnnotation](docs/CaretAnnotation.md)
483504
- [CommonFigureAnnotation](docs/CommonFigureAnnotation.md)
484505
- [FileAttachmentAnnotation](docs/FileAttachmentAnnotation.md)
@@ -490,6 +511,7 @@ Class | Method | HTTP request | Description
490511
- [PopupAnnotationWithParent](docs/PopupAnnotationWithParent.md)
491512
- [SoundAnnotation](docs/SoundAnnotation.md)
492513
- [SquigglyAnnotation](docs/SquigglyAnnotation.md)
514+
- [StampAnnotation](docs/StampAnnotation.md)
493515
- [StrikeOutAnnotation](docs/StrikeOutAnnotation.md)
494516
- [TextAnnotation](docs/TextAnnotation.md)
495517
- [UnderlineAnnotation](docs/UnderlineAnnotation.md)

annotations_test.go

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,4 +139,30 @@ func TestDeleteAnnotation(t *testing.T) {
139139
} else {
140140
fmt.Printf("%d\tTestDeleteAnnotation - %d\n", GetBaseTest().GetTestNumber(), response.Code)
141141
}
142+
}
143+
144+
func TestPutAnnotationsFlatten(t *testing.T) {
145+
146+
name := "PdfWithAnnotations.pdf"
147+
var endPage int32 = 2
148+
annotationTypes := []AnnotationType{AnnotationTypeStamp}
149+
150+
if err := GetBaseTest().UploadFile(name); err != nil {
151+
t.Error(err)
152+
}
153+
154+
args := map[string]interface{} {
155+
"endPage": endPage,
156+
"annotationTypes": annotationTypes,
157+
"folder": GetBaseTest().remoteFolder,
158+
}
159+
160+
response, httpResponse, err := GetBaseTest().PdfAPI.PutAnnotationsFlatten(name, args)
161+
if err != nil {
162+
t.Error(err)
163+
} else if httpResponse.StatusCode < 200 || httpResponse.StatusCode > 299 {
164+
t.Fail()
165+
} else {
166+
fmt.Printf("%d\tTestPutAnnotationsFlatten - %d\n", GetBaseTest().GetTestNumber(), response.Code)
167+
}
142168
}

0 commit comments

Comments
 (0)