Skip to content

Commit 18bf8cf

Browse files
authored
Merge pull request #21 from kaferi/master
Update to v20.7
2 parents eaf4dcb + 22ac6ef commit 18bf8cf

14 files changed

+280
-48
lines changed

README.md

Lines changed: 9 additions & 5 deletions
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.6.0
3+
- Package version: 20.7.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

@@ -78,6 +78,7 @@ Class | Method | HTTP request | Description
7878
*PdfApi* | [**DeleteStamp**](docs/PdfApi.md#deletestamp) | **Delete** /pdf/{name}/stamps/{stampId} | Delete document stamp by ID
7979
*PdfApi* | [**DeleteTable**](docs/PdfApi.md#deletetable) | **Delete** /pdf/{name}/tables/{tableId} | Delete document table by ID
8080
*PdfApi* | [**DownloadFile**](docs/PdfApi.md#downloadfile) | **Get** /pdf/storage/file/{path} | Download file
81+
*PdfApi* | [**GetApiInfo**](docs/PdfApi.md#getapiinfo) | **Get** /pdf/info |
8182
*PdfApi* | [**GetBookmark**](docs/PdfApi.md#getbookmark) | **Get** /pdf/{name}/bookmarks/bookmark/{bookmarkPath} | Read document bookmark.
8283
*PdfApi* | [**GetBookmarks**](docs/PdfApi.md#getbookmarks) | **Get** /pdf/{name}/bookmarks/list/{bookmarkPath} | Read document bookmarks node list.
8384
*PdfApi* | [**GetCaretAnnotation**](docs/PdfApi.md#getcaretannotation) | **Get** /pdf/{name}/annotations/caret/{annotationId} | Read document page caret annotation by ID.
@@ -86,7 +87,7 @@ Class | Method | HTTP request | Description
8687
*PdfApi* | [**GetComboBoxField**](docs/PdfApi.md#getcomboboxfield) | **Get** /pdf/{name}/fields/combobox/{fieldName} | Read document combobox field by name.
8788
*PdfApi* | [**GetDiscUsage**](docs/PdfApi.md#getdiscusage) | **Get** /pdf/storage/disc | Get disc usage
8889
*PdfApi* | [**GetDocument**](docs/PdfApi.md#getdocument) | **Get** /pdf/{name} | Read common document info.
89-
*PdfApi* | [**GetDocumentAnnotations**](docs/PdfApi.md#getdocumentannotations) | **Get** /pdf/{name}/annotations | Read documant page annotations. Returns only FreeTextAnnotations, TextAnnotations, other annotations will implemented next releases.
90+
*PdfApi* | [**GetDocumentAnnotations**](docs/PdfApi.md#getdocumentannotations) | **Get** /pdf/{name}/annotations | Read document page annotations. Returns only FreeTextAnnotations, TextAnnotations, other annotations will implemented next releases.
9091
*PdfApi* | [**GetDocumentAttachmentByIndex**](docs/PdfApi.md#getdocumentattachmentbyindex) | **Get** /pdf/{name}/attachments/{attachmentIndex} | Read document attachment info by its index.
9192
*PdfApi* | [**GetDocumentAttachments**](docs/PdfApi.md#getdocumentattachments) | **Get** /pdf/{name}/attachments | Read document attachments info.
9293
*PdfApi* | [**GetDocumentBookmarks**](docs/PdfApi.md#getdocumentbookmarks) | **Get** /pdf/{name}/bookmarks/tree | Read document bookmarks tree.
@@ -235,7 +236,7 @@ Class | Method | HTTP request | Description
235236
*PdfApi* | [**GetVerifySignature**](docs/PdfApi.md#getverifysignature) | **Get** /pdf/{name}/verifySignature | Verify signature document.
236237
*PdfApi* | [**GetWebInStorageToPdf**](docs/PdfApi.md#getwebinstoragetopdf) | **Get** /pdf/create/web | Convert web page to PDF format and return resulting file in response.
237238
*PdfApi* | [**GetWordsPerPage**](docs/PdfApi.md#getwordsperpage) | **Get** /pdf/{name}/pages/wordCount | Get number of words per document page.
238-
*PdfApi* | [**GetXfaPdfInStorageToAcroForm**](docs/PdfApi.md#getxfapdfinstoragetoacroform) | **Get** /pdf/{name}/convert/xfatoacroform | Converts PDF document which contatins XFA form (located on storage) to PDF with AcroForm and returns resulting file response content
239+
*PdfApi* | [**GetXfaPdfInStorageToAcroForm**](docs/PdfApi.md#getxfapdfinstoragetoacroform) | **Get** /pdf/{name}/convert/xfatoacroform | Converts PDF document which contains XFA form (located on storage) to PDF with AcroForm and returns resulting file response content
239240
*PdfApi* | [**GetXmlInStorageToPdf**](docs/PdfApi.md#getxmlinstoragetopdf) | **Get** /pdf/create/xml | Convert XML file (located on storage) to PDF format and return resulting file in response.
240241
*PdfApi* | [**GetXpsInStorageToPdf**](docs/PdfApi.md#getxpsinstoragetopdf) | **Get** /pdf/create/xps | Convert XPS file (located on storage) to PDF format and return resulting file in response.
241242
*PdfApi* | [**GetXslFoInStorageToPdf**](docs/PdfApi.md#getxslfoinstoragetopdf) | **Get** /pdf/create/xslfo | Convert XslFo file (located on storage) to PDF format and return resulting file in response.
@@ -408,8 +409,8 @@ Class | Method | HTTP request | Description
408409
*PdfApi* | [**PutUpdateField**](docs/PdfApi.md#putupdatefield) | **Put** /pdf/{name}/fields/{fieldName} | Update field.
409410
*PdfApi* | [**PutUpdateFields**](docs/PdfApi.md#putupdatefields) | **Put** /pdf/{name}/fields | Update fields.
410411
*PdfApi* | [**PutWebInStorageToPdf**](docs/PdfApi.md#putwebinstoragetopdf) | **Put** /pdf/{name}/create/web | Convert web page to PDF format and upload resulting file to storage.
411-
*PdfApi* | [**PutXfaPdfInRequestToAcroForm**](docs/PdfApi.md#putxfapdfinrequesttoacroform) | **Put** /pdf/convert/xfatoacroform | Converts PDF document which contatins XFA form (in request content) to PDF with AcroForm and uploads resulting file to storage.
412-
*PdfApi* | [**PutXfaPdfInStorageToAcroForm**](docs/PdfApi.md#putxfapdfinstoragetoacroform) | **Put** /pdf/{name}/convert/xfatoacroform | Converts PDF document which contatins XFA form (located on storage) to PDF with AcroForm and uploads resulting file to storage
412+
*PdfApi* | [**PutXfaPdfInRequestToAcroForm**](docs/PdfApi.md#putxfapdfinrequesttoacroform) | **Put** /pdf/convert/xfatoacroform | Converts PDF document which contains XFA form (in request content) to PDF with AcroForm and uploads resulting file to storage.
413+
*PdfApi* | [**PutXfaPdfInStorageToAcroForm**](docs/PdfApi.md#putxfapdfinstoragetoacroform) | **Put** /pdf/{name}/convert/xfatoacroform | Converts PDF document which contains XFA form (located on storage) to PDF with AcroForm and uploads resulting file to storage
413414
*PdfApi* | [**PutXmlInStorageToPdf**](docs/PdfApi.md#putxmlinstoragetopdf) | **Put** /pdf/{name}/create/xml | Convert XML file (located on storage) to PDF format and upload resulting file to storage.
414415
*PdfApi* | [**PutXpsInStorageToPdf**](docs/PdfApi.md#putxpsinstoragetopdf) | **Put** /pdf/{name}/create/xps | Convert XPS file (located on storage) to PDF format and upload resulting file to storage.
415416
*PdfApi* | [**PutXslFoInStorageToPdf**](docs/PdfApi.md#putxslfoinstoragetopdf) | **Put** /pdf/{name}/create/xslfo | Convert XslFo file (located on storage) to PDF format and upload resulting file to storage.
@@ -423,6 +424,7 @@ Class | Method | HTTP request | Description
423424
- [AnnotationState](docs/AnnotationState.md)
424425
- [AnnotationType](docs/AnnotationType.md)
425426
- [AntialiasingProcessingType](docs/AntialiasingProcessingType.md)
427+
- [ApiInfo](docs/ApiInfo.md)
426428
- [AsposeResponse](docs/AsposeResponse.md)
427429
- [Border](docs/Border.md)
428430
- [BorderCornerStyle](docs/BorderCornerStyle.md)
@@ -464,6 +466,8 @@ Class | Method | HTTP request | Description
464466
- [HorizontalAlignment](docs/HorizontalAlignment.md)
465467
- [HtmlDocumentType](docs/HtmlDocumentType.md)
466468
- [HtmlMarkupGenerationModes](docs/HtmlMarkupGenerationModes.md)
469+
- [ImageCompressionVersion](docs/ImageCompressionVersion.md)
470+
- [ImageEncoding](docs/ImageEncoding.md)
467471
- [ImageFragment](docs/ImageFragment.md)
468472
- [ImageSrcType](docs/ImageSrcType.md)
469473
- [ImageTemplate](docs/ImageTemplate.md)

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.6.0"
178+
headerParams["x-aspose-client-version"] = "20.7.0"
179179

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

api_info.go

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/**
2+
*
3+
* Copyright (c) 2020 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+
23+
// Represents response for ApiInfo DTO
24+
type ApiInfo struct {
25+
// Product name.
26+
Name string `json:"Name,omitempty"`
27+
// API version.
28+
Version string `json:"Version,omitempty"`
29+
}

docs/ApiInfo.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# ApiInfo
2+
Represents response for ApiInfo DTO
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**Name** | **string** | Product name. | [optional] [default to null]
8+
**Version** | **string** | API version. | [optional] [default to null]
9+
10+
[[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]](../api_info.go)
11+
12+

docs/ImageCompressionVersion.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# ImageCompressionVersion
2+
Describes versions of image compression algorithm.
3+
4+
## Enum
5+
Name | Type | Value | Description
6+
------------ | ------------- | ------------- | -------------
7+
**ImageCompressionVersionStandard** | **string** | "Standard" | Standard algorithm. Default value.
8+
**ImageCompressionVersionFast** | **string** | "Fast" | Improved algorithm faster then standard but applicable not for all cases.
9+
**ImageCompressionVersionMixed** | **string** | "Mixed" | Use fast algorithm when possible and standard for other cases. May be slower then "Fast" but may produce better compression.
10+
11+
[[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]](../image_compression_version.go)
12+
13+

docs/ImageEncoding.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# ImageEncoding
2+
Image encoding type.
3+
4+
## Enum
5+
Name | Type | Value | Description
6+
------------ | ------------- | ------------- | -------------
7+
**ImageEncodingUnchanged** | **string** | "Unchanged" | Don't change encoding.
8+
**ImageEncodingJpeg** | **string** | "Jpeg" | JPEG (DCT) encoding.
9+
**ImageEncodingFlate** | **string** | "Flate" | Flate encoding.
10+
**ImageEncodingJpeg2000** | **string** | "Jpeg2000" | JPEG2000 (JPX) encoding.
11+
12+
[[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]](../image_encoding.go)
13+
14+

docs/OptimizeOptions.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,19 @@ Represents Pdf optimize options.
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**AllowReusePageContent** | **bool** | If true page contents will be reused when document is optimized for equal pages. | [default to null]
8-
**CompressImages** | **bool** | If this flag is set to true images will be compressed in the document. compression level is specfied with ImageQuality property. | [default to null]
9-
**ImageQuality** | **int32** | Specifie slevel of image compression when CompressIamges flag is used. | [default to null]
10-
**LinkDuplcateStreams** | **bool** | If this flag is set to true, Resource streams will be analyzed. If duplicate streams are found (i.e. if stream contents is equal), then thes streams will be stored as one object. This allows to decrease document size in some cases (for example, when same document was concatenedted multiple times). | [default to null]
11-
**RemoveUnusedObjects** | **bool** | If this flag is set to true, all document objects will be checked and unused objects (i.e. objects which does not have any reference) are removed from document. | [default to null]
12-
**RemoveUnusedStreams** | **bool** | If this flag set to true, every resource is checked on it's usage. If resource is never used, then resources is removed. This may decrease document size for example when pages were extracted from document. | [default to null]
13-
**UnembedFonts** | **bool** | Make fonts not embedded if set to true. | [default to null]
7+
**AllowReusePageContent** | **bool** | If true page contents will be reused when document is optimized for equal pages. | [optional] [default to null]
8+
**CompressImages** | **bool** | If this flag is set to true images will be compressed in the document. Compression level is specified with ImageQuality property. | [optional] [default to null]
9+
**ImageQuality** | **int32** | Specifies level of image compression when CompressImages flag is used. | [optional] [default to null]
10+
**LinkDuplcateStreams** | **bool** | If this flag is set to true, Resource streams will be analyzed. If duplicate streams are found (i.e. if stream contents is equal), then thees streams will be stored as one object. This allows to decrease document size in some cases (for example, when same document was concatenated multiple times). | [optional] [default to null]
11+
**RemoveUnusedObjects** | **bool** | If this flag is set to true, all document objects will be checked and unused objects (i.e. objects which does not have any reference) are removed from document. | [optional] [default to null]
12+
**RemoveUnusedStreams** | **bool** | If this flag set to true, every resource is checked on it's usage. If resource is never used, then resources is removed. This may decrease document size for example when pages were extracted from document. | [optional] [default to null]
13+
**UnembedFonts** | **bool** | Make fonts not embedded if set to true. | [optional] [default to null]
14+
**ResizeImages** | **bool** | If this flag set to true and CompressImages is true images will be resized if image resolution is greater then specified MaxResolution parameter. | [optional] [default to null]
15+
**MaxResolution** | **int32** | Specifies maximum resolution of images. If image has higher resolution it will be scaled. | [optional] [default to null]
16+
**SubsetFonts** | **bool** | Fonts will be converted into subsets if set to true. | [optional] [default to null]
17+
**RemovePrivateInfo** | **bool** | Remove private information (page piece info). | [optional] [default to null]
18+
**ImageEncoding** | [***ImageEncoding**](ImageEncoding.md) | Image encode which will be used. | [optional] [default to null]
19+
**ImageCompressionVersion** | [***ImageCompressionVersion**](ImageCompressionVersion.md) | Version of compression algorithm. Possible values are: "Standard" - standard compression, "Fast" - fast (improved compression which is faster then standard but may be applicable not for all images), "Mixed" - mixed (standard compression is applied to images which can not be compressed by faster algorithm, this may give best compression but more slow then "Fast" algorithm. Version "Fast" is not applicable for resizing images (standard method will be used). Default is "Standard". | [optional] [default to null]
1420

1521
[[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]](../optimize_options.go)
1622

docs/PdfAType.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ Allows to specify PdfA file format.
44
## Enum
55
Name | Type | Value | Description
66
------------ | ------------- | ------------- | -------------
7-
**PdfATypePDFA1A** | **string** | "PDFA1A" |
8-
**PdfATypePDFA1B** | **string** | "PDFA1B" |
7+
**PdfATypePDFA1A** | **string** | "PDFA1A" | Pdf/A-1a format
8+
**PdfATypePDFA1B** | **string** | "PDFA1B" | Pdf/A-1b format
9+
**PdfATypePDFA3A** | **string** | "PDFA3A" | Pdf/A-3a format
910

1011
[[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]](../pdf_atype.go)
1112

0 commit comments

Comments
 (0)