Skip to content

Commit c401274

Browse files
authored
Merge pull request #104 from aspose-pdf-cloud/develop
update to 24.11
2 parents f1b8482 + 4f340bb commit c401274

File tree

14 files changed

+486
-14
lines changed

14 files changed

+486
-14
lines changed

README.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,10 @@ XLS, XLSX, PPTX, DOC, DOCX, MobiXML, JPEG, EMF, PNG, BMP, GIF, TIFF, Text
2929
## Read PDF Formats
3030
MHT, PCL, PS, XSLFO, MD
3131

32-
## Enhancements in Version 24.10
33-
- Develop a method to add XMP metadata.
34-
- Develop a method to obtain XMP metadata in the XML form.
35-
- Develop a method to obtain XMP metadata in the JSON form.
32+
## Enhancements in Version 24.11
33+
- Add DocRecognitionMode EnhancedFlow mode.
3634
- A new version of Aspose.PDF Cloud was prepared using the latest version of Aspose.PDF for .NET.
3735

38-
## Bugs fixed in Version 24.10
39-
- PDF XFA form to Acro from conversion API results corrupt PDF.
40-
4136
## Unit Tests
4237
Aspose PDF SDK includes a suite of unit tests. These Unit Tests also serves as examples of how to use the Aspose PDF SDK.
4338

docs/DocRecognitionMode.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Allows to control how a PDF document is converted into a word processing documen
77
------------ | ------------
88
**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.
99
**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.
10+
**EnhancedFlow** | An alternative Flow mode that supports the recognition of tables.
1011

1112

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

docs/PdfApi.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ Method | HTTP request | Description
9595
[**GetImageExtractAsPng**](PdfApi.md#getimageextractaspng) | **GET** /pdf/\{name}/images/\{imageId}/extract/png | Extract document image in PNG format
9696
[**GetImageExtractAsTiff**](PdfApi.md#getimageextractastiff) | **GET** /pdf/\{name}/images/\{imageId}/extract/tiff | Extract document image in TIFF format
9797
[**GetImages**](PdfApi.md#getimages) | **GET** /pdf/\{name}/pages/\{pageNumber}/images | Read document images.
98+
[**GetImagesExtractSvg**](PdfApi.md#getimagesextractsvg) | **GET** /pdf/\{name}/pages/\{pageNumber}/images/extract/svg | Extract SVG images from document page.
9899
[**GetImportFieldsFromFdfInStorage**](PdfApi.md#getimportfieldsfromfdfinstorage) | **GET** /pdf/\{name}/import/fdf | Update fields from FDF file in storage.
99100
[**GetImportFieldsFromXfdfInStorage**](PdfApi.md#getimportfieldsfromxfdfinstorage) | **GET** /pdf/\{name}/import/xfdf | Update fields from XFDF file in storage.
100101
[**GetImportFieldsFromXmlInStorage**](PdfApi.md#getimportfieldsfromxmlinstorage) | **GET** /pdf/\{name}/import/xml | Import from XML file (located on storage) to PDF format and return resulting file in response.
@@ -2808,6 +2809,34 @@ Name | Type | Description | Notes
28082809

28092810
[[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)
28102811

2812+
<a name="getimagesextractsvg"></a>
2813+
# **GetImagesExtractSvg**
2814+
> SvgImages GetImagesExtractSvg (string name, int? pageNumber, string storage = null, string folder = null, string passBase64 = null)
2815+
2816+
Extract SVG images from document page.
2817+
2818+
2819+
### Parameters
2820+
2821+
Name | Type | Description | Notes
2822+
------------- | ------------- | ------------- | -------------
2823+
**name** | **string**| The document name. |
2824+
**pageNumber** | **int?**| The page number. |
2825+
**storage** | **string**| The document storage. | [optional]
2826+
**folder** | **string**| The document folder. | [optional]
2827+
**passBase64** | **string**| The password (Base64). | [optional]
2828+
2829+
### Return type
2830+
2831+
[**SvgImages**](SvgImages.md)
2832+
2833+
### HTTP request headers
2834+
2835+
- **Content-Type**: application/json
2836+
- **Accept**: application/json
2837+
2838+
[[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)
2839+
28112840
<a name="getimportfieldsfromfdfinstorage"></a>
28122841
# **GetImportFieldsFromFdfInStorage**
28132842
> System.IO.Stream GetImportFieldsFromFdfInStorage (string name, string fdfFilePath, string storage = null, string folder = null)

docs/SvgImages.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Aspose.Pdf.Cloud.Sdk.Model.SvgImages
2+
SvgImages class
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**Code** | **int?** | Response status code. |
9+
**Status** | **string** | Response status. | [optional]
10+
**List** | **List&lt;string&gt;** | List of SVG images | [optional]
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)
13+

src/Aspose.Pdf.Cloud.Sdk.Test/ImagesTests.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,5 +276,19 @@ public void GetImageExtractAsPngTest()
276276
var response = PdfApi.GetImageExtractAsPng(Name, ImageId, folder: TempFolder);
277277
Assert.That(response.Length, Is.GreaterThan(0));
278278
}
279+
280+
/// <summary>
281+
/// Test GetImageExtractAsSvg
282+
/// </summary>
283+
[Test]
284+
public void GetImageExtractAsSvgTest()
285+
{
286+
const string FileName = "Alfa.pdf";
287+
288+
UploadFile(FileName, FileName);
289+
290+
var response = PdfApi.GetImagesExtractSvg(FileName, 1, folder: TempFolder);
291+
Assert.That(response.List.Count, Is.GreaterThan(0));
292+
}
279293
}
280294
}

src/Aspose.Pdf.Cloud.Sdk/Api/PdfApi.cs

Lines changed: 220 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2440,6 +2440,35 @@ public interface IPdfApi : IApiAccessor
24402440
/// <returns>ApiResponse of ImagesResponse</returns>
24412441
ApiResponse<ImagesResponse> GetImagesWithHttpInfo (string name, int? pageNumber, string storage = null, string folder = null);
24422442
/// <summary>
2443+
/// Extract SVG images from document page.
2444+
/// </summary>
2445+
/// <remarks>
2446+
///
2447+
/// </remarks>
2448+
/// <exception cref="Aspose.Pdf.Cloud.Sdk.Client.ApiException">Thrown when fails to make API call</exception>
2449+
/// <param name="name">The document name.</param>
2450+
/// <param name="pageNumber">The page number.</param>
2451+
/// <param name="storage">The document storage. (optional)</param>
2452+
/// <param name="folder">The document folder. (optional)</param>
2453+
/// <param name="passBase64">The password (Base64). (optional)</param>
2454+
/// <returns>SvgImages</returns>
2455+
SvgImages GetImagesExtractSvg (string name, int? pageNumber, string storage = null, string folder = null, string passBase64 = null);
2456+
2457+
/// <summary>
2458+
/// Extract SVG images from document page.
2459+
/// </summary>
2460+
/// <remarks>
2461+
///
2462+
/// </remarks>
2463+
/// <exception cref="Aspose.Pdf.Cloud.Sdk.Client.ApiException">Thrown when fails to make API call</exception>
2464+
/// <param name="name">The document name.</param>
2465+
/// <param name="pageNumber">The page number.</param>
2466+
/// <param name="storage">The document storage. (optional)</param>
2467+
/// <param name="folder">The document folder. (optional)</param>
2468+
/// <param name="passBase64">The password (Base64). (optional)</param>
2469+
/// <returns>ApiResponse of SvgImages</returns>
2470+
ApiResponse<SvgImages> GetImagesExtractSvgWithHttpInfo (string name, int? pageNumber, string storage = null, string folder = null, string passBase64 = null);
2471+
/// <summary>
24432472
/// Update fields from FDF file in storage.
24442473
/// </summary>
24452474
/// <remarks>
@@ -13271,6 +13300,35 @@ public interface IPdfApi : IApiAccessor
1327113300
/// <returns>Task of ApiResponse (ImagesResponse)</returns>
1327213301
System.Threading.Tasks.Task<ApiResponse<ImagesResponse>> GetImagesAsyncWithHttpInfo (string name, int? pageNumber, string storage = null, string folder = null);
1327313302
/// <summary>
13303+
/// Extract SVG images from document page.
13304+
/// </summary>
13305+
/// <remarks>
13306+
///
13307+
/// </remarks>
13308+
/// <exception cref="Aspose.Pdf.Cloud.Sdk.Client.ApiException">Thrown when fails to make API call</exception>
13309+
/// <param name="name">The document name.</param>
13310+
/// <param name="pageNumber">The page number.</param>
13311+
/// <param name="storage">The document storage. (optional)</param>
13312+
/// <param name="folder">The document folder. (optional)</param>
13313+
/// <param name="passBase64">The password (Base64). (optional)</param>
13314+
/// <returns>Task of SvgImages</returns>
13315+
System.Threading.Tasks.Task<SvgImages> GetImagesExtractSvgAsync (string name, int? pageNumber, string storage = null, string folder = null, string passBase64 = null);
13316+
13317+
/// <summary>
13318+
/// Extract SVG images from document page.
13319+
/// </summary>
13320+
/// <remarks>
13321+
///
13322+
/// </remarks>
13323+
/// <exception cref="Aspose.Pdf.Cloud.Sdk.Client.ApiException">Thrown when fails to make API call</exception>
13324+
/// <param name="name">The document name.</param>
13325+
/// <param name="pageNumber">The page number.</param>
13326+
/// <param name="storage">The document storage. (optional)</param>
13327+
/// <param name="folder">The document folder. (optional)</param>
13328+
/// <param name="passBase64">The password (Base64). (optional)</param>
13329+
/// <returns>Task of ApiResponse (SvgImages)</returns>
13330+
System.Threading.Tasks.Task<ApiResponse<SvgImages>> GetImagesExtractSvgAsyncWithHttpInfo (string name, int? pageNumber, string storage = null, string folder = null, string passBase64 = null);
13331+
/// <summary>
1327413332
/// Update fields from FDF file in storage.
1327513333
/// </summary>
1327613334
/// <remarks>
@@ -35514,6 +35572,168 @@ public async System.Threading.Tasks.Task<ApiResponse<ImagesResponse>> GetImagesA
3551435572
(ImagesResponse) ApiClient.Deserialize(localVarResponse, typeof(ImagesResponse)));
3551535573
}
3551635574

35575+
/// Extract SVG images from document page.
35576+
/// </summary>
35577+
/// <exception cref="Aspose.Pdf.Cloud.Sdk.Client.ApiException">Thrown when fails to make API call</exception>
35578+
/// <param name="name">The document name.</param>
35579+
/// <param name="pageNumber">The page number.</param>
35580+
/// <param name="storage">The document storage. (optional)</param>
35581+
/// <param name="folder">The document folder. (optional)</param>
35582+
/// <param name="passBase64">The password (Base64). (optional)</param>
35583+
/// <returns>SvgImages</returns>
35584+
public SvgImages GetImagesExtractSvg (string name, int? pageNumber, string storage = null, string folder = null, string passBase64 = null)
35585+
{
35586+
ApiResponse<SvgImages> localVarResponse = GetImagesExtractSvgWithHttpInfo(name, pageNumber, storage, folder, passBase64);
35587+
return localVarResponse.Data;
35588+
}
35589+
35590+
/// <summary>
35591+
/// Extract SVG images from document page.
35592+
/// </summary>
35593+
/// <exception cref="Aspose.Pdf.Cloud.Sdk.Client.ApiException">Thrown when fails to make API call</exception>
35594+
/// <param name="name">The document name.</param>
35595+
/// <param name="pageNumber">The page number.</param>
35596+
/// <param name="storage">The document storage. (optional)</param>
35597+
/// <param name="folder">The document folder. (optional)</param>
35598+
/// <param name="passBase64">The password (Base64). (optional)</param>
35599+
/// <returns>ApiResponse of SvgImages</returns>
35600+
public ApiResponse< SvgImages > GetImagesExtractSvgWithHttpInfo (string name, int? pageNumber, string storage = null, string folder = null, string passBase64 = null)
35601+
{
35602+
// verify the required parameter 'name' is set
35603+
if (name == null)
35604+
throw new ApiException(400, "Missing required parameter 'name' when calling PdfApi->GetImagesExtractSvg");
35605+
// verify the required parameter 'pageNumber' is set
35606+
if (pageNumber == null)
35607+
throw new ApiException(400, "Missing required parameter 'pageNumber' when calling PdfApi->GetImagesExtractSvg");
35608+
35609+
var localVarPath = "/pdf/{name}/pages/{pageNumber}/images/extract/svg";
35610+
var localVarPathParams = new Dictionary<String, String>();
35611+
var localVarQueryParams = new List<KeyValuePair<String, String>>();
35612+
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
35613+
var localVarFormParams = new Dictionary<String, String>();
35614+
var localVarFileParams = new Dictionary<String, FileParameter>();
35615+
Object localVarPostBody = null;
35616+
35617+
// to determine the Content-Type header
35618+
String[] localVarHttpContentTypes = new String[] {
35619+
"application/json"
35620+
};
35621+
String localVarHttpContentType = ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
35622+
35623+
// to determine the Accept header
35624+
String[] localVarHttpHeaderAccepts = new String[] {
35625+
"application/json"
35626+
};
35627+
String localVarHttpHeaderAccept = ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
35628+
if (localVarHttpHeaderAccept != null)
35629+
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
35630+
35631+
if (name != null) localVarPathParams.Add("name", ApiClient.ParameterToString(name)); // path parameter
35632+
if (pageNumber != null) localVarPathParams.Add("pageNumber", ApiClient.ParameterToString(pageNumber)); // path parameter
35633+
if (storage != null) localVarQueryParams.Add("storage", ApiClient.ParameterToString(storage)); // query parameter
35634+
if (folder != null) localVarQueryParams.Add("folder", ApiClient.ParameterToString(folder)); // query parameter
35635+
if (passBase64 != null) localVarQueryParams.Add("passBase64", ApiClient.ParameterToString(passBase64)); // query parameter
35636+
35637+
// make the HTTP request
35638+
IRestResponse localVarResponse = (IRestResponse) ApiClient.CallApi(localVarPath,
35639+
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
35640+
localVarPathParams, localVarHttpContentType);
35641+
35642+
int localVarStatusCode = (int) localVarResponse.StatusCode;
35643+
35644+
if (ExceptionFactory != null)
35645+
{
35646+
Exception exception = ExceptionFactory("GetImagesExtractSvg", localVarResponse);
35647+
if (exception != null) throw exception;
35648+
}
35649+
35650+
return new ApiResponse<SvgImages>(localVarStatusCode,
35651+
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
35652+
(SvgImages) ApiClient.Deserialize(localVarResponse, typeof(SvgImages)));
35653+
}
35654+
35655+
/// <summary>
35656+
/// Extract SVG images from document page.
35657+
/// </summary>
35658+
/// <exception cref="Aspose.Pdf.Cloud.Sdk.Client.ApiException">Thrown when fails to make API call</exception>
35659+
/// <param name="name">The document name.</param>
35660+
/// <param name="pageNumber">The page number.</param>
35661+
/// <param name="storage">The document storage. (optional)</param>
35662+
/// <param name="folder">The document folder. (optional)</param>
35663+
/// <param name="passBase64">The password (Base64). (optional)</param>
35664+
/// <returns>Task of SvgImages</returns>
35665+
public async System.Threading.Tasks.Task<SvgImages> GetImagesExtractSvgAsync (string name, int? pageNumber, string storage = null, string folder = null, string passBase64 = null)
35666+
{
35667+
ApiResponse<SvgImages> localVarResponse = await GetImagesExtractSvgAsyncWithHttpInfo(name, pageNumber, storage, folder, passBase64);
35668+
return localVarResponse.Data;
35669+
35670+
}
35671+
35672+
/// <summary>
35673+
/// Extract SVG images from document page.
35674+
/// </summary>
35675+
/// <exception cref="Aspose.Pdf.Cloud.Sdk.Client.ApiException">Thrown when fails to make API call</exception>
35676+
/// <param name="name">The document name.</param>
35677+
/// <param name="pageNumber">The page number.</param>
35678+
/// <param name="storage">The document storage. (optional)</param>
35679+
/// <param name="folder">The document folder. (optional)</param>
35680+
/// <param name="passBase64">The password (Base64). (optional)</param>
35681+
/// <returns>Task of ApiResponse (SvgImages)</returns>
35682+
public async System.Threading.Tasks.Task<ApiResponse<SvgImages>> GetImagesExtractSvgAsyncWithHttpInfo (string name, int? pageNumber, string storage = null, string folder = null, string passBase64 = null)
35683+
{
35684+
// verify the required parameter 'name' is set
35685+
if (name == null)
35686+
throw new ApiException(400, "Missing required parameter 'name' when calling PdfApi->GetImagesExtractSvg");
35687+
// verify the required parameter 'pageNumber' is set
35688+
if (pageNumber == null)
35689+
throw new ApiException(400, "Missing required parameter 'pageNumber' when calling PdfApi->GetImagesExtractSvg");
35690+
35691+
var localVarPath = "/pdf/{name}/pages/{pageNumber}/images/extract/svg";
35692+
var localVarPathParams = new Dictionary<String, String>();
35693+
var localVarQueryParams = new Dictionary<String, String>();
35694+
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
35695+
var localVarFormParams = new Dictionary<String, String>();
35696+
var localVarFileParams = new Dictionary<String, FileParameter>();
35697+
Object localVarPostBody = null;
35698+
35699+
// to determine the Content-Type header
35700+
String[] localVarHttpContentTypes = new String[] {
35701+
"application/json"
35702+
};
35703+
String localVarHttpContentType = ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
35704+
35705+
// to determine the Accept header
35706+
String[] localVarHttpHeaderAccepts = new String[] {
35707+
"application/json"
35708+
};
35709+
String localVarHttpHeaderAccept = ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
35710+
if (localVarHttpHeaderAccept != null)
35711+
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
35712+
35713+
if (name != null) localVarPathParams.Add("name", ApiClient.ParameterToString(name)); // path parameter
35714+
if (pageNumber != null) localVarPathParams.Add("pageNumber", ApiClient.ParameterToString(pageNumber)); // path parameter
35715+
if (storage != null) localVarQueryParams.Add("storage", ApiClient.ParameterToString(storage)); // query parameter
35716+
if (folder != null) localVarQueryParams.Add("folder", ApiClient.ParameterToString(folder)); // query parameter
35717+
if (passBase64 != null) localVarQueryParams.Add("passBase64", ApiClient.ParameterToString(passBase64)); // query parameter
35718+
35719+
// make the HTTP request
35720+
IRestResponse localVarResponse = (IRestResponse) await ApiClient.CallApiAsync(localVarPath,
35721+
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
35722+
localVarPathParams, localVarHttpContentType);
35723+
35724+
int localVarStatusCode = (int) localVarResponse.StatusCode;
35725+
35726+
if (ExceptionFactory != null)
35727+
{
35728+
Exception exception = ExceptionFactory("GetImagesExtractSvg", localVarResponse);
35729+
if (exception != null) throw exception;
35730+
}
35731+
35732+
return new ApiResponse<SvgImages>(localVarStatusCode,
35733+
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
35734+
(SvgImages) ApiClient.Deserialize(localVarResponse, typeof(SvgImages)));
35735+
}
35736+
3551735737
/// Update fields from FDF file in storage.
3551835738
/// </summary>
3551935739
/// <exception cref="Aspose.Pdf.Cloud.Sdk.Client.ApiException">Thrown when fails to make API call</exception>

0 commit comments

Comments
 (0)