aspose_pdf_cloud 24.9.0 → 24.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -4
- data/docs/DocRecognitionMode.md +4 -3
- data/docs/PdfApi.md +106 -0
- data/docs/SvgImages.md +11 -0
- data/docs/XmpMetadata.md +9 -0
- data/docs/XmpMetadataProperty.md +11 -0
- data/lib/aspose_pdf_cloud/api/pdf_api.rb +326 -15
- data/lib/aspose_pdf_cloud/api_client.rb +1 -0
- data/lib/aspose_pdf_cloud/models/doc_recognition_mode.rb +1 -0
- data/lib/aspose_pdf_cloud/models/svg_images.rb +226 -0
- data/lib/aspose_pdf_cloud/models/xmp_metadata.rb +201 -0
- data/lib/aspose_pdf_cloud/models/xmp_metadata_property.rb +243 -0
- data/lib/aspose_pdf_cloud/version.rb +1 -1
- data/lib/aspose_pdf_cloud.rb +3 -0
- data/test/pdf_tests.rb +97 -3
- data/test_data/alfa.pdf +0 -0
- metadata +9 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 969a0f11b81e490f18023f371ba7e5e2d88e6f5e72375561b81f38dbb7177089
|
4
|
+
data.tar.gz: 0df9bf3712af4bbf0bb56aeeb60046e14100ebd1565bd64e4bac508e1709c1f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56dd2d651a376f8dc3dfa7c8cd1fb71d976eb6ff05ba8d765a5e5ec08e31b63804904ec208faf761a6ec06a9f27648cf9991d4c5562fef3f1ce1f46070d9a0b0
|
7
|
+
data.tar.gz: 67e7eb8e0aa070ba84324f799c28a57f6fbddba5f0c357b72bf6ad9ce7c7009eed152f16a4ee29583c5b461cc78840d909b3e2a35e03dd1e9f2c9e272757ad3b
|
data/README.md
CHANGED
@@ -29,7 +29,8 @@ XLS, XLSX, PPTX, DOC, DOCX, MobiXML, JPEG, EMF, PNG, BMP, GIF, TIFF, Text
|
|
29
29
|
## Read PDF Formats
|
30
30
|
MHT, PCL, PS, XSLFO, MD
|
31
31
|
|
32
|
-
## Enhancements in Version 24.
|
32
|
+
## Enhancements in Version 24.11
|
33
|
+
- Add DocRecognitionMode EnhancedFlow mode.
|
33
34
|
- A new version of Aspose.PDF Cloud was prepared using the latest version of Aspose.PDF for .NET.
|
34
35
|
|
35
36
|
## Installation
|
@@ -45,15 +46,15 @@ gem build aspose_pdf_cloud.gemspec
|
|
45
46
|
Then either install the gem locally:
|
46
47
|
|
47
48
|
```shell
|
48
|
-
gem install ./aspose_pdf_cloud-24.
|
49
|
+
gem install ./aspose_pdf_cloud-24.11.0.gem
|
49
50
|
```
|
50
|
-
(for development, run `gem install --dev ./aspose_pdf_cloud-24.
|
51
|
+
(for development, run `gem install --dev ./aspose_pdf_cloud-24.11.0.gem` to install the development dependencies)
|
51
52
|
|
52
53
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
53
54
|
|
54
55
|
Finally add this to the Gemfile:
|
55
56
|
|
56
|
-
gem 'aspose_pdf_cloud', '~> 24.
|
57
|
+
gem 'aspose_pdf_cloud', '~> 24.11.0'
|
57
58
|
|
58
59
|
### Install from Git
|
59
60
|
|
data/docs/DocRecognitionMode.md
CHANGED
@@ -3,9 +3,10 @@ Allows to control how a PDF document is converted into a word processing documen
|
|
3
3
|
|
4
4
|
## Enum
|
5
5
|
Name | Type | Value | Description
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**TEXTBOX** | **String** | 'Textbox' | This mode is fast and good for maximally preserving original look of the PDF file, but editability of the resulting document could be limited.Every visually grouped block of text int the original PDF file is converted into a textbox in the resulting document. This achieves maximal resemblance of the output document to the original PDF file. The output document will look good, but it will consist entirely of textboxes and it could makes further editing of the document in Microsoft Word quite hard.This is the default mode.
|
8
|
-
**FLOW** | **String** | 'Flow' | Full recognition mode, the engine performs grouping and multi-level analysis to restore the original document author's intent and produce a maximally editable document. The downside is that the output document might look different from the original PDF file.
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**TEXTBOX** | **String** | 'Textbox' | This mode is fast and good for maximally preserving original look of the PDF file, but editability of the resulting document could be limited.Every visually grouped block of text int the original PDF file is converted into a textbox in the resulting document. This achieves maximal resemblance of the output document to the original PDF file. The output document will look good, but it will consist entirely of textboxes and it could makes further editing of the document in Microsoft Word quite hard.This is the default mode.
|
8
|
+
**FLOW** | **String** | 'Flow' | Full recognition mode, the engine performs grouping and multi-level analysis to restore the original document author's intent and produce a maximally editable document. The downside is that the output document might look different from the original PDF file.
|
9
|
+
**ENHANCED_FLOW** | **String** | 'EnhancedFlow' | An alternative Flow mode that supports the recognition of tables.
|
9
10
|
|
10
11
|
|
11
12
|
|
data/docs/PdfApi.md
CHANGED
@@ -95,6 +95,7 @@ Method | HTTP request | Description
|
|
95
95
|
[**get_image_extract_as_png**](PdfApi.md#get_image_extract_as_png) | **GET** /pdf/\{name}/images/\{imageId}/extract/png | Extract document image in PNG format
|
96
96
|
[**get_image_extract_as_tiff**](PdfApi.md#get_image_extract_as_tiff) | **GET** /pdf/\{name}/images/\{imageId}/extract/tiff | Extract document image in TIFF format
|
97
97
|
[**get_images**](PdfApi.md#get_images) | **GET** /pdf/\{name}/pages/\{pageNumber}/images | Read document images.
|
98
|
+
[**get_images_extract_svg**](PdfApi.md#get_images_extract_svg) | **GET** /pdf/\{name}/pages/\{pageNumber}/images/extract/svg | Extract SVG images from document page.
|
98
99
|
[**get_import_fields_from_fdf_in_storage**](PdfApi.md#get_import_fields_from_fdf_in_storage) | **GET** /pdf/\{name}/import/fdf | Update fields from FDF file in storage.
|
99
100
|
[**get_import_fields_from_xfdf_in_storage**](PdfApi.md#get_import_fields_from_xfdf_in_storage) | **GET** /pdf/\{name}/import/xfdf | Update fields from XFDF file in storage.
|
100
101
|
[**get_import_fields_from_xml_in_storage**](PdfApi.md#get_import_fields_from_xml_in_storage) | **GET** /pdf/\{name}/import/xml | Import from XML file (located on storage) to PDF format and return resulting file in response.
|
@@ -189,6 +190,8 @@ Method | HTTP request | Description
|
|
189
190
|
[**get_words_per_page**](PdfApi.md#get_words_per_page) | **GET** /pdf/\{name}/pages/wordCount | Get number of words per document page.
|
190
191
|
[**get_xfa_pdf_in_storage_to_acro_form**](PdfApi.md#get_xfa_pdf_in_storage_to_acro_form) | **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
|
191
192
|
[**get_xml_in_storage_to_pdf**](PdfApi.md#get_xml_in_storage_to_pdf) | **GET** /pdf/create/xml | Convert XML file (located on storage) to PDF format and return resulting file in response.
|
193
|
+
[**get_xmp_metadata_json**](PdfApi.md#get_xmp_metadata_json) | **GET** /pdf/\{name}/xmpmetadata/json | Gets document XMP Metadata as JSON.
|
194
|
+
[**get_xmp_metadata_xml**](PdfApi.md#get_xmp_metadata_xml) | **GET** /pdf/\{name}/xmpmetadata/xml | Gets document XMP Metadata as XML file.
|
192
195
|
[**get_xps_in_storage_to_pdf**](PdfApi.md#get_xps_in_storage_to_pdf) | **GET** /pdf/create/xps | Convert XPS file (located on storage) to PDF format and return resulting file in response.
|
193
196
|
[**get_xsl_fo_in_storage_to_pdf**](PdfApi.md#get_xsl_fo_in_storage_to_pdf) | **GET** /pdf/create/xslfo | Convert XslFo file (located on storage) to PDF format and return resulting file in response.
|
194
197
|
[**move_file**](PdfApi.md#move_file) | **PUT** /pdf/storage/file/move/\{srcPath} | Move file
|
@@ -258,6 +261,7 @@ Method | HTTP request | Description
|
|
258
261
|
[**post_split_document**](PdfApi.md#post_split_document) | **POST** /pdf/\{name}/split | Split document to parts.
|
259
262
|
[**post_split_range_pdf_document**](PdfApi.md#post_split_range_pdf_document) | **POST** /pdf/\{name}/splitrangepdf | Split document into ranges.
|
260
263
|
[**post_text_box_fields**](PdfApi.md#post_text_box_fields) | **POST** /pdf/\{name}/fields/textbox | Add document text box fields.
|
264
|
+
[**post_xmp_metadata**](PdfApi.md#post_xmp_metadata) | **POST** /pdf/\{name}/xmpmetadata | Add or remove XMP Metadata properties.
|
261
265
|
[**put_add_new_page**](PdfApi.md#put_add_new_page) | **PUT** /pdf/\{name}/pages | Add new page to end of the document.
|
262
266
|
[**put_add_text**](PdfApi.md#put_add_text) | **PUT** /pdf/\{name}/pages/\{pageNumber}/text | Add text to PDF document page.
|
263
267
|
[**put_annotations_flatten**](PdfApi.md#put_annotations_flatten) | **PUT** /pdf/\{name}/annotations/flatten | Flattens the annotations of the specified types
|
@@ -2623,6 +2627,32 @@ Name | Type | Description | Notes
|
|
2623
2627
|
|
2624
2628
|
|
2625
2629
|
|
2630
|
+
# **get_images_extract_svg**
|
2631
|
+
> SvgImages get_images_extract_svg(name, page_number, opts)
|
2632
|
+
|
2633
|
+
Extract SVG images from document page.
|
2634
|
+
|
2635
|
+
### Parameters
|
2636
|
+
|
2637
|
+
Name | Type | Description | Notes
|
2638
|
+
------------- | ------------- | ------------- | -------------
|
2639
|
+
**name** | **String**| The document name. |
|
2640
|
+
**page_number** | **Integer**| The page number. |
|
2641
|
+
**storage** | **String**| The document storage. | [optional]
|
2642
|
+
**folder** | **String**| The document folder. | [optional]
|
2643
|
+
**pass_base64** | **String**| The password (Base64). | [optional]
|
2644
|
+
|
2645
|
+
### Return type
|
2646
|
+
|
2647
|
+
[**SvgImages**](SvgImages.md)
|
2648
|
+
|
2649
|
+
### HTTP request headers
|
2650
|
+
|
2651
|
+
- **Content-Type**: application/json
|
2652
|
+
- **Accept**: application/json
|
2653
|
+
|
2654
|
+
|
2655
|
+
|
2626
2656
|
# **get_import_fields_from_fdf_in_storage**
|
2627
2657
|
> File get_import_fields_from_fdf_in_storage(name, fdf_file_path, opts)
|
2628
2658
|
|
@@ -5059,6 +5089,56 @@ Name | Type | Description | Notes
|
|
5059
5089
|
|
5060
5090
|
|
5061
5091
|
|
5092
|
+
# **get_xmp_metadata_json**
|
5093
|
+
> XmpMetadata get_xmp_metadata_json(name, opts)
|
5094
|
+
|
5095
|
+
Gets document XMP Metadata as JSON.
|
5096
|
+
|
5097
|
+
### Parameters
|
5098
|
+
|
5099
|
+
Name | Type | Description | Notes
|
5100
|
+
------------- | ------------- | ------------- | -------------
|
5101
|
+
**name** | **String**| The document name. |
|
5102
|
+
**folder** | **String**| The document folder. | [optional]
|
5103
|
+
**storage** | **String**| The document storage. | [optional]
|
5104
|
+
**pass_base64** | **String**| The password (Base64). | [optional]
|
5105
|
+
|
5106
|
+
### Return type
|
5107
|
+
|
5108
|
+
[**XmpMetadata**](XmpMetadata.md)
|
5109
|
+
|
5110
|
+
### HTTP request headers
|
5111
|
+
|
5112
|
+
- **Content-Type**: application/json
|
5113
|
+
- **Accept**: application/json
|
5114
|
+
|
5115
|
+
|
5116
|
+
|
5117
|
+
# **get_xmp_metadata_xml**
|
5118
|
+
> File get_xmp_metadata_xml(name, opts)
|
5119
|
+
|
5120
|
+
Gets document XMP Metadata as XML file.
|
5121
|
+
|
5122
|
+
### Parameters
|
5123
|
+
|
5124
|
+
Name | Type | Description | Notes
|
5125
|
+
------------- | ------------- | ------------- | -------------
|
5126
|
+
**name** | **String**| The document name. |
|
5127
|
+
**folder** | **String**| The document folder. | [optional]
|
5128
|
+
**storage** | **String**| The document storage. | [optional]
|
5129
|
+
**pass_base64** | **String**| The password (Base64). | [optional]
|
5130
|
+
|
5131
|
+
### Return type
|
5132
|
+
|
5133
|
+
**File**
|
5134
|
+
|
5135
|
+
### HTTP request headers
|
5136
|
+
|
5137
|
+
- **Content-Type**: application/json
|
5138
|
+
- **Accept**: multipart/form-data
|
5139
|
+
|
5140
|
+
|
5141
|
+
|
5062
5142
|
# **get_xps_in_storage_to_pdf**
|
5063
5143
|
> File get_xps_in_storage_to_pdf(src_path, opts)
|
5064
5144
|
|
@@ -6855,6 +6935,32 @@ Name | Type | Description | Notes
|
|
6855
6935
|
|
6856
6936
|
|
6857
6937
|
|
6938
|
+
# **post_xmp_metadata**
|
6939
|
+
> AsposeResponse post_xmp_metadata(name, metadata, opts)
|
6940
|
+
|
6941
|
+
Add or remove XMP Metadata properties.
|
6942
|
+
|
6943
|
+
### Parameters
|
6944
|
+
|
6945
|
+
Name | Type | Description | Notes
|
6946
|
+
------------- | ------------- | ------------- | -------------
|
6947
|
+
**name** | **String**| The document name. |
|
6948
|
+
**metadata** | [**XmpMetadata**](XmpMetadata.md)| XmpMetadata instance. |
|
6949
|
+
**folder** | **String**| The document folder. | [optional]
|
6950
|
+
**storage** | **String**| The document storage. | [optional]
|
6951
|
+
**pass_base64** | **String**| The password (Base64). | [optional]
|
6952
|
+
|
6953
|
+
### Return type
|
6954
|
+
|
6955
|
+
[**AsposeResponse**](AsposeResponse.md)
|
6956
|
+
|
6957
|
+
### HTTP request headers
|
6958
|
+
|
6959
|
+
- **Content-Type**: application/json
|
6960
|
+
- **Accept**: application/json
|
6961
|
+
|
6962
|
+
|
6963
|
+
|
6858
6964
|
# **put_add_new_page**
|
6859
6965
|
> DocumentPagesResponse put_add_new_page(name, opts)
|
6860
6966
|
|
data/docs/SvgImages.md
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
# AsposePdfCloud::SvgImages
|
2
|
+
SvgImages class
|
3
|
+
|
4
|
+
## Properties
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**code** | **Integer** | Response status code. |
|
8
|
+
**status** | **String** | Response status. | [optional]
|
9
|
+
**list** | **Array<String>** | List of SVG images | [optional]
|
10
|
+
|
11
|
+
|
data/docs/XmpMetadata.md
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
# AsposePdfCloud::XmpMetadata
|
2
|
+
Document Xmp Metadata.
|
3
|
+
|
4
|
+
## Properties
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**properties** | [**Array<XmpMetadataProperty>**](XmpMetadataProperty.md) | List of document Xmp Metadata default properties. | [optional]
|
8
|
+
|
9
|
+
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# AsposePdfCloud::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. |
|
8
|
+
**value** | **String** | Xmp Metadata Property Value. Null for delete property. | [optional]
|
9
|
+
**namespace_uri** | **String** | Namespace Uri. For user defined properties only. | [optional]
|
10
|
+
|
11
|
+
|