Skip to content

Commit a93502e

Browse files
authored
Merge pull request #61 from aspose-pdf-cloud/develop
update to 24.10
2 parents bccbeb3 + 057d87f commit a93502e

15 files changed

+657
-28
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,15 @@ These SDKs are now fully supported. If you have any questions, see any bugs or h
99

1010
Extract Text & Images of a PDF document online https://products.aspose.app/pdf/parser.
1111

12-
## Enhancements in Version 24.9
13-
- Develop DeleteDocumentLayer Method.
14-
- Develop GetDocumentLayers Method.
15-
- How to extract PDF layer elements and create a new PDF
12+
## Enhancements in Version 24.10
13+
- Develop a method to add XMP metadata.
14+
- Develop a method to obtain XMP metadata in the XML form.
15+
- Develop a method to obtain XMP metadata in the JSON form.
1616
- A new version of Aspose.PDF Cloud was prepared using the latest version of Aspose.PDF for .NET.
1717

18+
## Bugs fixed in Version 24.10
19+
- PDF XFA form to Acro from conversion API results corrupt PDF.
20+
1821
## Installation
1922
```
2023
go get -u github.com/aspose-pdf-cloud/aspose-pdf-cloud-go/v24

api_client.go

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

177177
// set custom header
178178
headerParams["x-aspose-client"] = "go sdk"
179-
headerParams["x-aspose-client-version"] = "24.9.0"
179+
headerParams["x-aspose-client-version"] = "24.10.0"
180180

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

docs/PdfApi.md

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,8 @@ Method | HTTP request | Description
189189
[**GetWordsPerPage**](PdfApi.md#GetWordsPerPage) | **Get** /pdf/{name}/pages/wordCount | Get number of words per document page.
190190
[**GetXfaPdfInStorageToAcroForm**](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
191191
[**GetXmlInStorageToPdf**](PdfApi.md#GetXmlInStorageToPdf) | **Get** /pdf/create/xml | Convert XML file (located on storage) to PDF format and return resulting file in response.
192+
[**GetXmpMetadataJson**](PdfApi.md#GetXmpMetadataJson) | **Get** /pdf/{name}/xmpmetadata/json | Gets document XMP Metadata as JSON.
193+
[**GetXmpMetadataXml**](PdfApi.md#GetXmpMetadataXml) | **Get** /pdf/{name}/xmpmetadata/xml | Gets document XMP Metadata as XML file.
192194
[**GetXpsInStorageToPdf**](PdfApi.md#GetXpsInStorageToPdf) | **Get** /pdf/create/xps | Convert XPS file (located on storage) to PDF format and return resulting file in response.
193195
[**GetXslFoInStorageToPdf**](PdfApi.md#GetXslFoInStorageToPdf) | **Get** /pdf/create/xslfo | Convert XslFo file (located on storage) to PDF format and return resulting file in response.
194196
[**MoveFile**](PdfApi.md#MoveFile) | **Put** /pdf/storage/file/move/{srcPath} | Move file
@@ -258,6 +260,7 @@ Method | HTTP request | Description
258260
[**PostSplitDocument**](PdfApi.md#PostSplitDocument) | **Post** /pdf/{name}/split | Split document to parts.
259261
[**PostSplitRangePdfDocument**](PdfApi.md#PostSplitRangePdfDocument) | **Post** /pdf/{name}/splitrangepdf | Split document into ranges.
260262
[**PostTextBoxFields**](PdfApi.md#PostTextBoxFields) | **Post** /pdf/{name}/fields/textbox | Add document text box fields.
263+
[**PostXmpMetadata**](PdfApi.md#PostXmpMetadata) | **Post** /pdf/{name}/xmpmetadata | Add or remove XMP Metadata properties.
261264
[**PutAddNewPage**](PdfApi.md#PutAddNewPage) | **Put** /pdf/{name}/pages | Add new page to end of the document.
262265
[**PutAddText**](PdfApi.md#PutAddText) | **Put** /pdf/{name}/pages/{pageNumber}/text | Add text to PDF document page.
263266
[**PutAnnotationsFlatten**](PdfApi.md#PutAnnotationsFlatten) | **Put** /pdf/{name}/annotations/flatten | Flattens the annotations of the specified types
@@ -6468,6 +6471,70 @@ Name | Type | Description | Notes
64686471

64696472
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
64706473

6474+
# **GetXmpMetadataJson**
6475+
> XmpMetadata GetXmpMetadataJson(name, optional)
6476+
Gets document XMP Metadata as JSON.
6477+
6478+
### Required Parameters
6479+
6480+
Name | Type | Description | Notes
6481+
------------- | ------------- | ------------- | -------------
6482+
**name** | **string**| The document name. |
6483+
**optional** | **map[string]interface{}** | optional parameters | nil if no parameters
6484+
6485+
### Optional Parameters
6486+
Optional parameters are passed through a map[string]interface{}.
6487+
6488+
Name | Type | Description | Notes
6489+
------------- | ------------- | ------------- | -------------
6490+
**name** | **string**| The document name. |
6491+
**folder** | **string**| The document folder. |
6492+
**storage** | **string**| The document storage. |
6493+
**passBase64** | **string**| The password (Base64). |
6494+
6495+
### Return type
6496+
6497+
[**XmpMetadata**](XmpMetadata.md)
6498+
6499+
### HTTP request headers
6500+
6501+
- **Content-Type**: application/json
6502+
- **Accept**: application/json
6503+
6504+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
6505+
6506+
# **GetXmpMetadataXml**
6507+
> []byte GetXmpMetadataXml(name, optional)
6508+
Gets document XMP Metadata as XML file.
6509+
6510+
### Required Parameters
6511+
6512+
Name | Type | Description | Notes
6513+
------------- | ------------- | ------------- | -------------
6514+
**name** | **string**| The document name. |
6515+
**optional** | **map[string]interface{}** | optional parameters | nil if no parameters
6516+
6517+
### Optional Parameters
6518+
Optional parameters are passed through a map[string]interface{}.
6519+
6520+
Name | Type | Description | Notes
6521+
------------- | ------------- | ------------- | -------------
6522+
**name** | **string**| The document name. |
6523+
**folder** | **string**| The document folder. |
6524+
**storage** | **string**| The document storage. |
6525+
**passBase64** | **string**| The password (Base64). |
6526+
6527+
### Return type
6528+
6529+
**[]byte**
6530+
6531+
### HTTP request headers
6532+
6533+
- **Content-Type**: application/json
6534+
- **Accept**: multipart/form-data
6535+
6536+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
6537+
64716538
# **GetXpsInStorageToPdf**
64726539
> []byte GetXpsInStorageToPdf(srcPath, optional)
64736540
Convert XPS file (located on storage) to PDF format and return resulting file in response.
@@ -8845,6 +8912,40 @@ Name | Type | Description | Notes
88458912

88468913
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
88478914

8915+
# **PostXmpMetadata**
8916+
> AsposeResponse PostXmpMetadata(name, metadata, optional)
8917+
Add or remove XMP Metadata properties.
8918+
8919+
### Required Parameters
8920+
8921+
Name | Type | Description | Notes
8922+
------------- | ------------- | ------------- | -------------
8923+
**name** | **string**| The document name. |
8924+
**metadata** | [**XmpMetadata**](XmpMetadata.md)| XmpMetadata instance. |
8925+
**optional** | **map[string]interface{}** | optional parameters | nil if no parameters
8926+
8927+
### Optional Parameters
8928+
Optional parameters are passed through a map[string]interface{}.
8929+
8930+
Name | Type | Description | Notes
8931+
------------- | ------------- | ------------- | -------------
8932+
**name** | **string**| The document name. |
8933+
**metadata** | [**XmpMetadata**](XmpMetadata.md)| XmpMetadata instance. |
8934+
**folder** | **string**| The document folder. |
8935+
**storage** | **string**| The document storage. |
8936+
**passBase64** | **string**| The password (Base64). |
8937+
8938+
### Return type
8939+
8940+
[**AsposeResponse**](AsposeResponse.md)
8941+
8942+
### HTTP request headers
8943+
8944+
- **Content-Type**: application/json
8945+
- **Accept**: application/json
8946+
8947+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
8948+
88488949
# **PutAddNewPage**
88498950
> DocumentPagesResponse PutAddNewPage(name, optional)
88508951
Add new page to end of the document.

docs/PolyAnnotation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Name | Type | Description | Notes
2020
**Subject** | **string** | Get the annotation subject. | [optional] [default to null]
2121
**Title** | **string** | Get the annotation title. | [optional] [default to null]
2222
**RichText** | **string** | Get the annotation RichText. | [optional] [default to null]
23-
**InteriorColor** | [***Color**](Color.md) | Gets or sets the interior color with which to fill the annotation???s line endings. | [optional] [default to null]
23+
**InteriorColor** | [***Color**](Color.md) | Gets or sets the interior color with which to fill the annotations line endings. | [optional] [default to null]
2424
**StartingStyle** | [***LineEnding**](LineEnding.md) | Gets or sets the style of first line ending. | [optional] [default to null]
2525
**EndingStyle** | [***LineEnding**](LineEnding.md) | Gets or sets the style of second line ending. | [optional] [default to null]
2626
**Intent** | [***PolyIntent**](PolyIntent.md) | Gets or sets the intent of the polygon or polyline annotation. | [optional] [default to null]

docs/PolyLineAnnotation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Name | Type | Description | Notes
2020
**Subject** | **string** | Get the annotation subject. | [optional] [default to null]
2121
**Title** | **string** | Get the annotation title. | [optional] [default to null]
2222
**RichText** | **string** | Get the annotation RichText. | [optional] [default to null]
23-
**InteriorColor** | [***Color**](Color.md) | Gets or sets the interior color with which to fill the annotation???s line endings. | [optional] [default to null]
23+
**InteriorColor** | [***Color**](Color.md) | Gets or sets the interior color with which to fill the annotations line endings. | [optional] [default to null]
2424
**StartingStyle** | [***LineEnding**](LineEnding.md) | Gets or sets the style of first line ending. | [optional] [default to null]
2525
**EndingStyle** | [***LineEnding**](LineEnding.md) | Gets or sets the style of second line ending. | [optional] [default to null]
2626
**Intent** | [***PolyIntent**](PolyIntent.md) | Gets or sets the intent of the polygon or polyline annotation. | [optional] [default to null]

docs/PolygonAnnotation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Name | Type | Description | Notes
2020
**Subject** | **string** | Get the annotation subject. | [optional] [default to null]
2121
**Title** | **string** | Get the annotation title. | [optional] [default to null]
2222
**RichText** | **string** | Get the annotation RichText. | [optional] [default to null]
23-
**InteriorColor** | [***Color**](Color.md) | Gets or sets the interior color with which to fill the annotation???s line endings. | [optional] [default to null]
23+
**InteriorColor** | [***Color**](Color.md) | Gets or sets the interior color with which to fill the annotations line endings. | [optional] [default to null]
2424
**StartingStyle** | [***LineEnding**](LineEnding.md) | Gets or sets the style of first line ending. | [optional] [default to null]
2525
**EndingStyle** | [***LineEnding**](LineEnding.md) | Gets or sets the style of second line ending. | [optional] [default to null]
2626
**Intent** | [***PolyIntent**](PolyIntent.md) | Gets or sets the intent of the polygon or polyline annotation. | [optional] [default to null]

docs/XmpMetadata.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# XmpMetadata
2+
Document Xmp Metadata.
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**Properties** | [**[]XmpMetadataProperty**](XmpMetadataProperty.md) | List of document Xmp Metadata default properties. | [optional] [default to null]
8+
9+
[[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]](../xmp_metadata.go)
10+
11+

docs/XmpMetadataProperty.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# XmpMetadataProperty
2+
Xmp Metadata Property.
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**Key** | **string** | Xmp Metadata Property Key. Can take the form for default keys: xmp:DefaultKeyName or DefaultKeyName. Form for user defined properties: customNamespace:UserPropertyName. | [default to null]
8+
**Value** | **string** | Xmp Metadata Property Value. Null for delete property. | [optional] [default to null]
9+
**NamespaceUri** | **string** | Namespace Uri. For user defined properties only. | [optional] [default to null]
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]](../xmp_metadata_property.go)
12+
13+

0 commit comments

Comments
 (0)