Skip to content

Commit 0e02092

Browse files
Merge pull request #10 from kaferi/master
Update to v19.8
2 parents 07c4779 + 24f27da commit 0e02092

27 files changed

+1337
-1
lines changed

README.md

Lines changed: 15 additions & 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: 19.7.0
3+
- Package version: 19.8.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

@@ -102,6 +102,7 @@ Class | Method | HTTP request | Description
102102
*PdfApi* | [**GetDocumentProperty**](docs/PdfApi.md#getdocumentproperty) | **Get** /pdf/{name}/documentproperties/{propertyName} | Read document property by name.
103103
*PdfApi* | [**GetDocumentRedactionAnnotations**](docs/PdfApi.md#getdocumentredactionannotations) | **Get** /pdf/{name}/annotations/redaction | Read document redaction annotations.
104104
*PdfApi* | [**GetDocumentScreenAnnotations**](docs/PdfApi.md#getdocumentscreenannotations) | **Get** /pdf/{name}/annotations/screen | Read document screen annotations.
105+
*PdfApi* | [**GetDocumentSignatureFields**](docs/PdfApi.md#getdocumentsignaturefields) | **Get** /pdf/{name}/fields/signature | Read document signature fields.
105106
*PdfApi* | [**GetDocumentSoundAnnotations**](docs/PdfApi.md#getdocumentsoundannotations) | **Get** /pdf/{name}/annotations/sound | Read document sound annotations.
106107
*PdfApi* | [**GetDocumentSquareAnnotations**](docs/PdfApi.md#getdocumentsquareannotations) | **Get** /pdf/{name}/annotations/square | Read document square annotations.
107108
*PdfApi* | [**GetDocumentSquigglyAnnotations**](docs/PdfApi.md#getdocumentsquigglyannotations) | **Get** /pdf/{name}/annotations/squiggly | Read document squiggly annotations.
@@ -138,6 +139,7 @@ Class | Method | HTTP request | Description
138139
*PdfApi* | [**GetLaTeXInStorageToPdf**](docs/PdfApi.md#getlatexinstoragetopdf) | **Get** /pdf/create/latex | Convert LaTeX file (located on storage) to PDF format and return resulting file in response.
139140
*PdfApi* | [**GetLineAnnotation**](docs/PdfApi.md#getlineannotation) | **Get** /pdf/{name}/annotations/line/{annotationId} | Read document page line annotation by ID.
140141
*PdfApi* | [**GetLinkAnnotation**](docs/PdfApi.md#getlinkannotation) | **Get** /pdf/{name}/links/{linkId} | Read document link annotation by ID.
142+
*PdfApi* | [**GetMarkdownInStorageToPdf**](docs/PdfApi.md#getmarkdowninstoragetopdf) | **Get** /pdf/create/markdown | Convert MD file (located on storage) to PDF format and return resulting file in response.
141143
*PdfApi* | [**GetMhtInStorageToPdf**](docs/PdfApi.md#getmhtinstoragetopdf) | **Get** /pdf/create/mht | Convert MHT file (located on storage) to PDF format and return resulting file in response.
142144
*PdfApi* | [**GetMovieAnnotation**](docs/PdfApi.md#getmovieannotation) | **Get** /pdf/{name}/annotations/movie/{annotationId} | Read document page movie annotation by ID.
143145
*PdfApi* | [**GetPage**](docs/PdfApi.md#getpage) | **Get** /pdf/{name}/pages/{pageNumber} | Read document page info.
@@ -163,6 +165,7 @@ Class | Method | HTTP request | Description
163165
*PdfApi* | [**GetPagePopupAnnotations**](docs/PdfApi.md#getpagepopupannotations) | **Get** /pdf/{name}/pages/{pageNumber}/annotations/popup | Read document page popup annotations.
164166
*PdfApi* | [**GetPageRedactionAnnotations**](docs/PdfApi.md#getpageredactionannotations) | **Get** /pdf/{name}/pages/{pageNumber}/annotations/redaction | Read document page redaction annotations.
165167
*PdfApi* | [**GetPageScreenAnnotations**](docs/PdfApi.md#getpagescreenannotations) | **Get** /pdf/{name}/pages/{pageNumber}/annotations/screen | Read document page screen annotations.
168+
*PdfApi* | [**GetPageSignatureFields**](docs/PdfApi.md#getpagesignaturefields) | **Get** /pdf/{name}/page/{pageNumber}/fields/signature | Read document page signature fields.
166169
*PdfApi* | [**GetPageSoundAnnotations**](docs/PdfApi.md#getpagesoundannotations) | **Get** /pdf/{name}/pages/{pageNumber}/annotations/sound | Read document page sound annotations.
167170
*PdfApi* | [**GetPageSquareAnnotations**](docs/PdfApi.md#getpagesquareannotations) | **Get** /pdf/{name}/pages/{pageNumber}/annotations/square | Read document page square annotations.
168171
*PdfApi* | [**GetPageSquigglyAnnotations**](docs/PdfApi.md#getpagesquigglyannotations) | **Get** /pdf/{name}/pages/{pageNumber}/annotations/squiggly | Read document page squiggly annotations.
@@ -195,6 +198,7 @@ Class | Method | HTTP request | Description
195198
*PdfApi* | [**GetRedactionAnnotation**](docs/PdfApi.md#getredactionannotation) | **Get** /pdf/{name}/annotations/redaction/{annotationId} | Read document page redaction annotation by ID.
196199
*PdfApi* | [**GetScreenAnnotation**](docs/PdfApi.md#getscreenannotation) | **Get** /pdf/{name}/annotations/screen/{annotationId} | Read document page screen annotation by ID.
197200
*PdfApi* | [**GetScreenAnnotationData**](docs/PdfApi.md#getscreenannotationdata) | **Get** /pdf/{name}/annotations/screen/{annotationId}/data | Read document page screen annotation by ID.
201+
*PdfApi* | [**GetSignatureField**](docs/PdfApi.md#getsignaturefield) | **Get** /pdf/{name}/fields/signature/{fieldName} | Read document signature field by name.
198202
*PdfApi* | [**GetSoundAnnotation**](docs/PdfApi.md#getsoundannotation) | **Get** /pdf/{name}/annotations/sound/{annotationId} | Read document page sound annotation by ID.
199203
*PdfApi* | [**GetSoundAnnotationData**](docs/PdfApi.md#getsoundannotationdata) | **Get** /pdf/{name}/annotations/sound/{annotationId}/data | Read document page sound annotation by ID.
200204
*PdfApi* | [**GetSquareAnnotation**](docs/PdfApi.md#getsquareannotation) | **Get** /pdf/{name}/annotations/square/{annotationId} | Read document page square annotation by ID.
@@ -237,6 +241,7 @@ Class | Method | HTTP request | Description
237241
*PdfApi* | [**PostMovePage**](docs/PdfApi.md#postmovepage) | **Post** /pdf/{name}/pages/{pageNumber}/movePage | Move page to new position.
238242
*PdfApi* | [**PostOptimizeDocument**](docs/PdfApi.md#postoptimizedocument) | **Post** /pdf/{name}/optimize | Optimize document.
239243
*PdfApi* | [**PostPageCaretAnnotations**](docs/PdfApi.md#postpagecaretannotations) | **Post** /pdf/{name}/pages/{pageNumber}/annotations/caret | Add document page caret annotations.
244+
*PdfApi* | [**PostPageCertify**](docs/PdfApi.md#postpagecertify) | **Post** /pdf/{name}/pages/{pageNumber}/certify | Certify document page.
240245
*PdfApi* | [**PostPageCircleAnnotations**](docs/PdfApi.md#postpagecircleannotations) | **Post** /pdf/{name}/pages/{pageNumber}/annotations/circle | Add document page circle annotations.
241246
*PdfApi* | [**PostPageFileAttachmentAnnotations**](docs/PdfApi.md#postpagefileattachmentannotations) | **Post** /pdf/{name}/pages/{pageNumber}/annotations/fileattachment | Add document page FileAttachment annotations.
242247
*PdfApi* | [**PostPageFreeTextAnnotations**](docs/PdfApi.md#postpagefreetextannotations) | **Post** /pdf/{name}/pages/{pageNumber}/annotations/freetext | Add document page free text annotations.
@@ -301,6 +306,7 @@ Class | Method | HTTP request | Description
301306
*PdfApi* | [**PutLaTeXInStorageToPdf**](docs/PdfApi.md#putlatexinstoragetopdf) | **Put** /pdf/{name}/create/latex | Convert LaTeX file (located on storage) to PDF format and upload resulting file to storage.
302307
*PdfApi* | [**PutLineAnnotation**](docs/PdfApi.md#putlineannotation) | **Put** /pdf/{name}/annotations/line/{annotationId} | Replace document line annotation
303308
*PdfApi* | [**PutLinkAnnotation**](docs/PdfApi.md#putlinkannotation) | **Put** /pdf/{name}/links/{linkId} | Replace document page link annotations
309+
*PdfApi* | [**PutMarkdownInStorageToPdf**](docs/PdfApi.md#putmarkdowninstoragetopdf) | **Put** /pdf/{name}/create/markdown | Convert MD file (located on storage) to PDF format and upload resulting file to storage.
304310
*PdfApi* | [**PutMergeDocuments**](docs/PdfApi.md#putmergedocuments) | **Put** /pdf/{name}/merge | Merge a list of documents.
305311
*PdfApi* | [**PutMhtInStorageToPdf**](docs/PdfApi.md#putmhtinstoragetopdf) | **Put** /pdf/{name}/create/mht | Convert MHT file (located on storage) to PDF format and upload resulting file to storage.
306312
*PdfApi* | [**PutMovieAnnotation**](docs/PdfApi.md#putmovieannotation) | **Put** /pdf/{name}/annotations/movie/{annotationId} | Replace document movie annotation
@@ -393,6 +399,7 @@ Class | Method | HTTP request | Description
393399
- [CryptoAlgorithm](docs/CryptoAlgorithm.md)
394400
- [DiscUsage](docs/DiscUsage.md)
395401
- [DocFormat](docs/DocFormat.md)
402+
- [DocMdpAccessPermissionType](docs/DocMdpAccessPermissionType.md)
396403
- [DocRecognitionMode](docs/DocRecognitionMode.md)
397404
- [DocumentPrivilege](docs/DocumentPrivilege.md)
398405
- [EpubRecognitionMode](docs/EpubRecognitionMode.md)
@@ -443,6 +450,7 @@ Class | Method | HTTP request | Description
443450
- [Segment](docs/Segment.md)
444451
- [ShapeType](docs/ShapeType.md)
445452
- [Signature](docs/Signature.md)
453+
- [SignatureCustomAppearance](docs/SignatureCustomAppearance.md)
446454
- [SignatureType](docs/SignatureType.md)
447455
- [SoundEncoding](docs/SoundEncoding.md)
448456
- [SoundIcon](docs/SoundIcon.md)
@@ -462,6 +470,7 @@ Class | Method | HTTP request | Description
462470
- [TextReplaceListRequest](docs/TextReplaceListRequest.md)
463471
- [TextState](docs/TextState.md)
464472
- [TextStyle](docs/TextStyle.md)
473+
- [TimestampSettings](docs/TimestampSettings.md)
465474
- [VerticalAlignment](docs/VerticalAlignment.md)
466475
- [WordCount](docs/WordCount.md)
467476
- [WrapMode](docs/WrapMode.md)
@@ -498,6 +507,7 @@ Class | Method | HTTP request | Description
498507
- [FileAttachmentAnnotations](docs/FileAttachmentAnnotations.md)
499508
- [FileAttachmentAnnotationsResponse](docs/FileAttachmentAnnotationsResponse.md)
500509
- [FileVersion](docs/FileVersion.md)
510+
- [FormField](docs/FormField.md)
501511
- [FreeTextAnnotationResponse](docs/FreeTextAnnotationResponse.md)
502512
- [FreeTextAnnotations](docs/FreeTextAnnotations.md)
503513
- [FreeTextAnnotationsResponse](docs/FreeTextAnnotationsResponse.md)
@@ -538,6 +548,9 @@ Class | Method | HTTP request | Description
538548
- [ScreenAnnotationResponse](docs/ScreenAnnotationResponse.md)
539549
- [ScreenAnnotations](docs/ScreenAnnotations.md)
540550
- [ScreenAnnotationsResponse](docs/ScreenAnnotationsResponse.md)
551+
- [SignatureFieldResponse](docs/SignatureFieldResponse.md)
552+
- [SignatureFields](docs/SignatureFields.md)
553+
- [SignatureFieldsResponse](docs/SignatureFieldsResponse.md)
541554
- [SignatureVerifyResponse](docs/SignatureVerifyResponse.md)
542555
- [SoundAnnotationResponse](docs/SoundAnnotationResponse.md)
543556
- [SoundAnnotations](docs/SoundAnnotations.md)
@@ -585,6 +598,7 @@ Class | Method | HTTP request | Description
585598
- [PopupAnnotation](docs/PopupAnnotation.md)
586599
- [RedactionAnnotation](docs/RedactionAnnotation.md)
587600
- [ScreenAnnotation](docs/ScreenAnnotation.md)
601+
- [SignatureField](docs/SignatureField.md)
588602
- [TextFooter](docs/TextFooter.md)
589603
- [TextHeader](docs/TextHeader.md)
590604
- [TextStamp](docs/TextStamp.md)

convert_to_pdf_test.go

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -570,3 +570,49 @@ func TestPutImageInStorageToPdf(t *testing.T) {
570570
fmt.Printf("%d\tTestPutImageInStorageToPdf - %d\n", GetBaseTest().GetTestNumber(), response.Code)
571571
}
572572
}
573+
574+
// from MD
575+
func TestGetMarkdownInStorageToPdf(t *testing.T) {
576+
577+
name := "mixed.md"
578+
srcPath := GetBaseTest().remoteFolder + "/" + name
579+
580+
if err := GetBaseTest().UploadFile(name); err != nil {
581+
t.Error(err)
582+
}
583+
584+
args := make(map[string]interface{})
585+
586+
response, httpResponse, err := GetBaseTest().PdfAPI.GetMarkdownInStorageToPdf(srcPath, args)
587+
if err != nil {
588+
t.Error(err)
589+
} else if httpResponse.StatusCode < 200 || httpResponse.StatusCode > 299 {
590+
t.Fail()
591+
} else {
592+
fmt.Printf("%d\tTestGetMarkdownInStorageToPdf - %db\n", GetBaseTest().GetTestNumber(), len(response))
593+
}
594+
}
595+
596+
func TestPutMarkdownInStorageToPdf(t *testing.T) {
597+
598+
name := "Typography.PS"
599+
resFileName := "mixed.md"
600+
srcPath := GetBaseTest().remoteFolder + "/" + name
601+
602+
if err := GetBaseTest().UploadFile(name); err != nil {
603+
t.Error(err)
604+
}
605+
606+
args := map[string]interface{} {
607+
"folder": GetBaseTest().remoteFolder,
608+
}
609+
610+
response, httpResponse, err := GetBaseTest().PdfAPI.PutMarkdownInStorageToPdf(resFileName, srcPath, args)
611+
if err != nil {
612+
t.Error(err)
613+
} else if httpResponse.StatusCode < 200 || httpResponse.StatusCode > 299 {
614+
t.Fail()
615+
} else {
616+
fmt.Printf("%d\tTestPutMarkdownInStorageToPdf - %d\n", GetBaseTest().GetTestNumber(), response.Code)
617+
}
618+
}

doc_mdp_access_permission_type.go

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/**
2+
*
3+
* Copyright (c) 2019 Aspose.PDF Cloud
4+
* Permission is hereby granted, free of charge, to any person obtaining a copy
5+
* of this software and associated documentation files (the "Software"), to deal
6+
* in the Software without restriction, including without limitation the rights
7+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
* copies of the Software, and to permit persons to whom the Software is
9+
* furnished to do so, subject to the following conditions:
10+
* The above copyright notice and this permission notice shall be included in all
11+
* copies or substantial portions of the Software.
12+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18+
* SOFTWARE.
19+
*
20+
*/
21+
package asposepdfcloud
22+
// DocMdpAccessPermissionType : The access permissions granted for this document. Valid values are: 1 - No changes to the document are permitted; any change to the document invalidates the signature. 2 - Permitted changes are filling in forms, instantiating page templates, and signing; other changes invalidate the signature. 3 - Permitted changes are the same as for 2, as well as annotation creation, deletion, and modification; other changes invalidate the signature.
23+
type DocMdpAccessPermissionType string
24+
25+
// List of DocMDPAccessPermissionType
26+
const (
27+
DocMdpAccessPermissionTypeNoChanges DocMdpAccessPermissionType = "NoChanges"
28+
DocMdpAccessPermissionTypeFillingInForms DocMdpAccessPermissionType = "FillingInForms"
29+
DocMdpAccessPermissionTypeAnnotationModification DocMdpAccessPermissionType = "AnnotationModification"
30+
)

docs/DocMdpAccessPermissionType.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# DocMdpAccessPermissionType
2+
The access permissions granted for this document.
3+
Valid values are:
4+
1 - No changes to the document are permitted; any change to the document invalidates the signature.
5+
2 - Permitted changes are filling in forms, instantiating page templates, and signing; other changes invalidate the signature.
6+
3 - Permitted changes are the same as for 2, as well as annotation creation, deletion, and modification; other changes invalidate the signature.
7+
8+
## Enum
9+
Name | Type | Value | Description
10+
------------ | ------------- | ------------- | -------------
11+
**DocMDPAccessPermissionTypeNoChanges** | **string** | "NoChanges" | No changes to the document are permitted; any change to the document invalidates the signature.
12+
**DocMDPAccessPermissionTypeFillingInForms** | **string** | "FillingInForms" | Permitted changes are filling in forms, instantiating page templates, and signing; other changes invalidate the signature.
13+
**DocMDPAccessPermissionTypeAnnotationModification** | **string** | "AnnotationModification" | Permitted changes are the same as for 2, as well as annotation creation, deletion, and modification; other changes invalidate the signature.
14+
15+
[[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]](../doc_md_paccess_permission_type.go)
16+
17+

docs/FormField.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# FormField
2+
Provides form field.
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**Links** | [**[]Link**](Link.md) | Link to the document. | [optional] [default to null]
8+
**PartialName** | **string** | Field name. | [optional] [default to null]
9+
**Rect** | [***Rectangle**](Rectangle.md) | Field rectangle. | [optional] [default to null]
10+
**Value** | **string** | Field value. | [optional] [default to null]
11+
**PageIndex** | **int32** | Page index. | [default to null]
12+
**Height** | **float64** | Gets or sets height of the field. | [optional] [default to null]
13+
**Width** | **float64** | Gets or sets width of the field. | [optional] [default to null]
14+
**ZIndex** | **int32** | Z index. | [optional] [default to null]
15+
**IsGroup** | **bool** | Is group. | [default to null]
16+
**Parent** | [***FormField**](FormField.md) | Gets field parent. | [optional] [default to null]
17+
**IsSharedField** | **bool** | Property for Generator support. Used when field is added to header or footer. If true, this field will created once and it&#39;s appearance will be visible on all pages of the document. If false, separated field will be created for every document page. | [optional] [default to null]
18+
**Flags** | [**[]AnnotationFlags**](AnnotationFlags.md) | Gets Flags of the field. | [optional] [default to null]
19+
**Color** | [***Color**](Color.md) | Color of the annotation. | [optional] [default to null]
20+
**Contents** | **string** | Get the field content. | [optional] [default to null]
21+
**Margin** | [***MarginInfo**](MarginInfo.md) | Gets or sets a outer margin for paragraph (for pdf generation) | [optional] [default to null]
22+
**Highlighting** | [***LinkHighlightingMode**](LinkHighlightingMode.md) | Field highlighting mode. | [optional] [default to null]
23+
**HorizontalAlignment** | [***HorizontalAlignment**](HorizontalAlignment.md) | Gets HorizontalAlignment of the field. | [optional] [default to null]
24+
**VerticalAlignment** | [***VerticalAlignment**](VerticalAlignment.md) | Gets VerticalAlignment of the field. | [optional] [default to null]
25+
26+
[[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]](../form_field.go)
27+
28+

0 commit comments

Comments
 (0)