Skip to content

Commit 319a3d4

Browse files
author
Kirill Novinskiy
committed
update to 25.6.0
1 parent 0ba9f60 commit 319a3d4

File tree

6 files changed

+272
-6
lines changed

6 files changed

+272
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ 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 25.5
33-
- Add a method for comparing pdf files.
32+
## Enhancements in Version 25.6
33+
- Develop Rotate Document Pages method.
3434
- A new version of Aspose.PDF Cloud was prepared using the latest version of Aspose.PDF for .NET.
3535

3636
## Unit Tests

docs/PdfApi.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ Method | HTTP request | Description
212212
[**PostDocumentImageStamps**](PdfApi.md#postdocumentimagestamps) | **POST** /pdf/\{name}/stamps/image | Add document pages image stamps.
213213
[**PostDocumentImageStampsPageSpecified**](PdfApi.md#postdocumentimagestampspagespecified) | **POST** /pdf/\{name}/stamps/image/pagespecified | Add document image stamps to specified pages.
214214
[**PostDocumentPageNumberStamps**](PdfApi.md#postdocumentpagenumberstamps) | **POST** /pdf/\{name}/stamps/pagenumber | Add document page number stamps.
215+
[**PostDocumentPagesRotate**](PdfApi.md#postdocumentpagesrotate) | **POST** /pdf/\{name}/rotate | Rotate PDF document.
215216
[**PostDocumentTextFooter**](PdfApi.md#postdocumenttextfooter) | **POST** /pdf/\{name}/footer/text | Add document text footer.
216217
[**PostDocumentTextHeader**](PdfApi.md#postdocumenttextheader) | **POST** /pdf/\{name}/header/text | Add document text header.
217218
[**PostDocumentTextReplace**](PdfApi.md#postdocumenttextreplace) | **POST** /pdf/\{name}/text/replace | Document's replace text method.
@@ -6076,6 +6077,35 @@ Name | Type | Description | Notes
60766077

60776078
[[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)
60786079

6080+
<a name="postdocumentpagesrotate"></a>
6081+
# **PostDocumentPagesRotate**
6082+
> AsposeResponse PostDocumentPagesRotate (string name, string rotationAngle, string pages, string storage = null, string folder = null, string password = null)
6083+
6084+
Rotate PDF document.
6085+
6086+
6087+
### Parameters
6088+
6089+
Name | Type | Description | Notes
6090+
------------- | ------------- | ------------- | -------------
6091+
**name** | **string**| The document name. |
6092+
**rotationAngle** | **string**| Rotation Angle (CKW). Can be 90, 180, 270. |
6093+
**pages** | **string**| Comma separated list of pages and page ranges. (Example: 1,3-5,8) |
6094+
**storage** | **string**| The document storage. | [optional]
6095+
**folder** | **string**| The document folder. | [optional]
6096+
**password** | **string**| Base64 encoded password. | [optional]
6097+
6098+
### Return type
6099+
6100+
[**AsposeResponse**](AsposeResponse.md)
6101+
6102+
### HTTP request headers
6103+
6104+
- **Content-Type**: application/json
6105+
- **Accept**: application/json
6106+
6107+
[[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)
6108+
60796109
<a name="postdocumenttextfooter"></a>
60806110
# **PostDocumentTextFooter**
60816111
> AsposeResponse PostDocumentTextFooter (string name, TextFooter textFooter, int? startPageNumber = null, int? endPageNumber = null, string storage = null, string folder = null)

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

Lines changed: 236 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5809,6 +5809,37 @@ public interface IPdfApi : IApiAccessor
58095809
/// <returns>ApiResponse of AsposeResponse</returns>
58105810
ApiResponse<AsposeResponse> PostDocumentPageNumberStampsWithHttpInfo (string name, PageNumberStamp stamp, int? startPageNumber = null, int? endPageNumber = null, string storage = null, string folder = null, string password = null);
58115811
/// <summary>
5812+
/// Rotate PDF document.
5813+
/// </summary>
5814+
/// <remarks>
5815+
///
5816+
/// </remarks>
5817+
/// <exception cref="Aspose.Pdf.Cloud.Sdk.Client.ApiException">Thrown when fails to make API call</exception>
5818+
/// <param name="name">The document name.</param>
5819+
/// <param name="rotationAngle">Rotation Angle (CKW). Can be 90, 180, 270.</param>
5820+
/// <param name="pages">Comma separated list of pages and page ranges. (Example: 1,3-5,8)</param>
5821+
/// <param name="storage">The document storage. (optional)</param>
5822+
/// <param name="folder">The document folder. (optional)</param>
5823+
/// <param name="password">Base64 encoded password. (optional)</param>
5824+
/// <returns>AsposeResponse</returns>
5825+
AsposeResponse PostDocumentPagesRotate (string name, string rotationAngle, string pages, string storage = null, string folder = null, string password = null);
5826+
5827+
/// <summary>
5828+
/// Rotate PDF document.
5829+
/// </summary>
5830+
/// <remarks>
5831+
///
5832+
/// </remarks>
5833+
/// <exception cref="Aspose.Pdf.Cloud.Sdk.Client.ApiException">Thrown when fails to make API call</exception>
5834+
/// <param name="name">The document name.</param>
5835+
/// <param name="rotationAngle">Rotation Angle (CKW). Can be 90, 180, 270.</param>
5836+
/// <param name="pages">Comma separated list of pages and page ranges. (Example: 1,3-5,8)</param>
5837+
/// <param name="storage">The document storage. (optional)</param>
5838+
/// <param name="folder">The document folder. (optional)</param>
5839+
/// <param name="password">Base64 encoded password. (optional)</param>
5840+
/// <returns>ApiResponse of AsposeResponse</returns>
5841+
ApiResponse<AsposeResponse> PostDocumentPagesRotateWithHttpInfo (string name, string rotationAngle, string pages, string storage = null, string folder = null, string password = null);
5842+
/// <summary>
58125843
/// Add document text footer.
58135844
/// </summary>
58145845
/// <remarks>
@@ -16778,6 +16809,37 @@ public interface IPdfApi : IApiAccessor
1677816809
/// <returns>Task of ApiResponse (AsposeResponse)</returns>
1677916810
System.Threading.Tasks.Task<ApiResponse<AsposeResponse>> PostDocumentPageNumberStampsAsyncWithHttpInfo (string name, PageNumberStamp stamp, int? startPageNumber = null, int? endPageNumber = null, string storage = null, string folder = null, string password = null);
1678016811
/// <summary>
16812+
/// Rotate PDF document.
16813+
/// </summary>
16814+
/// <remarks>
16815+
///
16816+
/// </remarks>
16817+
/// <exception cref="Aspose.Pdf.Cloud.Sdk.Client.ApiException">Thrown when fails to make API call</exception>
16818+
/// <param name="name">The document name.</param>
16819+
/// <param name="rotationAngle">Rotation Angle (CKW). Can be 90, 180, 270.</param>
16820+
/// <param name="pages">Comma separated list of pages and page ranges. (Example: 1,3-5,8)</param>
16821+
/// <param name="storage">The document storage. (optional)</param>
16822+
/// <param name="folder">The document folder. (optional)</param>
16823+
/// <param name="password">Base64 encoded password. (optional)</param>
16824+
/// <returns>Task of AsposeResponse</returns>
16825+
System.Threading.Tasks.Task<AsposeResponse> PostDocumentPagesRotateAsync (string name, string rotationAngle, string pages, string storage = null, string folder = null, string password = null);
16826+
16827+
/// <summary>
16828+
/// Rotate PDF document.
16829+
/// </summary>
16830+
/// <remarks>
16831+
///
16832+
/// </remarks>
16833+
/// <exception cref="Aspose.Pdf.Cloud.Sdk.Client.ApiException">Thrown when fails to make API call</exception>
16834+
/// <param name="name">The document name.</param>
16835+
/// <param name="rotationAngle">Rotation Angle (CKW). Can be 90, 180, 270.</param>
16836+
/// <param name="pages">Comma separated list of pages and page ranges. (Example: 1,3-5,8)</param>
16837+
/// <param name="storage">The document storage. (optional)</param>
16838+
/// <param name="folder">The document folder. (optional)</param>
16839+
/// <param name="password">Base64 encoded password. (optional)</param>
16840+
/// <returns>Task of ApiResponse (AsposeResponse)</returns>
16841+
System.Threading.Tasks.Task<ApiResponse<AsposeResponse>> PostDocumentPagesRotateAsyncWithHttpInfo (string name, string rotationAngle, string pages, string storage = null, string folder = null, string password = null);
16842+
/// <summary>
1678116843
/// Add document text footer.
1678216844
/// </summary>
1678316845
/// <remarks>
@@ -54738,6 +54800,180 @@ public async System.Threading.Tasks.Task<ApiResponse<AsposeResponse>> PostDocume
5473854800
(AsposeResponse) ApiClient.Deserialize(localVarResponse, typeof(AsposeResponse)));
5473954801
}
5474054802

54803+
/// Rotate PDF document.
54804+
/// </summary>
54805+
/// <exception cref="Aspose.Pdf.Cloud.Sdk.Client.ApiException">Thrown when fails to make API call</exception>
54806+
/// <param name="name">The document name.</param>
54807+
/// <param name="rotationAngle">Rotation Angle (CKW). Can be 90, 180, 270.</param>
54808+
/// <param name="pages">Comma separated list of pages and page ranges. (Example: 1,3-5,8)</param>
54809+
/// <param name="storage">The document storage. (optional)</param>
54810+
/// <param name="folder">The document folder. (optional)</param>
54811+
/// <param name="password">Base64 encoded password. (optional)</param>
54812+
/// <returns>AsposeResponse</returns>
54813+
public AsposeResponse PostDocumentPagesRotate (string name, string rotationAngle, string pages, string storage = null, string folder = null, string password = null)
54814+
{
54815+
ApiResponse<AsposeResponse> localVarResponse = PostDocumentPagesRotateWithHttpInfo(name, rotationAngle, pages, storage, folder, password);
54816+
return localVarResponse.Data;
54817+
}
54818+
54819+
/// <summary>
54820+
/// Rotate PDF document.
54821+
/// </summary>
54822+
/// <exception cref="Aspose.Pdf.Cloud.Sdk.Client.ApiException">Thrown when fails to make API call</exception>
54823+
/// <param name="name">The document name.</param>
54824+
/// <param name="rotationAngle">Rotation Angle (CKW). Can be 90, 180, 270.</param>
54825+
/// <param name="pages">Comma separated list of pages and page ranges. (Example: 1,3-5,8)</param>
54826+
/// <param name="storage">The document storage. (optional)</param>
54827+
/// <param name="folder">The document folder. (optional)</param>
54828+
/// <param name="password">Base64 encoded password. (optional)</param>
54829+
/// <returns>ApiResponse of AsposeResponse</returns>
54830+
public ApiResponse< AsposeResponse > PostDocumentPagesRotateWithHttpInfo (string name, string rotationAngle, string pages, string storage = null, string folder = null, string password = null)
54831+
{
54832+
// verify the required parameter 'name' is set
54833+
if (name == null)
54834+
throw new ApiException(400, "Missing required parameter 'name' when calling PdfApi->PostDocumentPagesRotate");
54835+
// verify the required parameter 'rotationAngle' is set
54836+
if (rotationAngle == null)
54837+
throw new ApiException(400, "Missing required parameter 'rotationAngle' when calling PdfApi->PostDocumentPagesRotate");
54838+
// verify the required parameter 'pages' is set
54839+
if (pages == null)
54840+
throw new ApiException(400, "Missing required parameter 'pages' when calling PdfApi->PostDocumentPagesRotate");
54841+
54842+
var localVarPath = "/pdf/{name}/rotate";
54843+
var localVarPathParams = new Dictionary<String, String>();
54844+
var localVarQueryParams = new List<KeyValuePair<String, String>>();
54845+
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
54846+
var localVarFormParams = new Dictionary<String, String>();
54847+
var localVarFileParams = new Dictionary<String, FileParameter>();
54848+
Object localVarPostBody = null;
54849+
54850+
// to determine the Content-Type header
54851+
String[] localVarHttpContentTypes = new String[] {
54852+
"application/json"
54853+
};
54854+
String localVarHttpContentType = ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
54855+
54856+
// to determine the Accept header
54857+
String[] localVarHttpHeaderAccepts = new String[] {
54858+
"application/json"
54859+
};
54860+
String localVarHttpHeaderAccept = ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
54861+
if (localVarHttpHeaderAccept != null)
54862+
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
54863+
54864+
if (name != null) localVarPathParams.Add("name", ApiClient.ParameterToString(name)); // path parameter
54865+
if (rotationAngle != null) localVarQueryParams.Add("rotationAngle", ApiClient.ParameterToString(rotationAngle)); // query parameter
54866+
if (pages != null) localVarQueryParams.Add("pages", ApiClient.ParameterToString(pages)); // query parameter
54867+
if (storage != null) localVarQueryParams.Add("storage", ApiClient.ParameterToString(storage)); // query parameter
54868+
if (folder != null) localVarQueryParams.Add("folder", ApiClient.ParameterToString(folder)); // query parameter
54869+
if (password != null) localVarQueryParams.Add("password", ApiClient.ParameterToString(password)); // query parameter
54870+
54871+
// make the HTTP request
54872+
IRestResponse localVarResponse = (IRestResponse) ApiClient.CallApi(localVarPath,
54873+
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
54874+
localVarPathParams, localVarHttpContentType);
54875+
54876+
int localVarStatusCode = (int) localVarResponse.StatusCode;
54877+
54878+
if (ExceptionFactory != null)
54879+
{
54880+
Exception exception = ExceptionFactory("PostDocumentPagesRotate", localVarResponse);
54881+
if (exception != null) throw exception;
54882+
}
54883+
54884+
return new ApiResponse<AsposeResponse>(localVarStatusCode,
54885+
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
54886+
(AsposeResponse) ApiClient.Deserialize(localVarResponse, typeof(AsposeResponse)));
54887+
}
54888+
54889+
/// <summary>
54890+
/// Rotate PDF document.
54891+
/// </summary>
54892+
/// <exception cref="Aspose.Pdf.Cloud.Sdk.Client.ApiException">Thrown when fails to make API call</exception>
54893+
/// <param name="name">The document name.</param>
54894+
/// <param name="rotationAngle">Rotation Angle (CKW). Can be 90, 180, 270.</param>
54895+
/// <param name="pages">Comma separated list of pages and page ranges. (Example: 1,3-5,8)</param>
54896+
/// <param name="storage">The document storage. (optional)</param>
54897+
/// <param name="folder">The document folder. (optional)</param>
54898+
/// <param name="password">Base64 encoded password. (optional)</param>
54899+
/// <returns>Task of AsposeResponse</returns>
54900+
public async System.Threading.Tasks.Task<AsposeResponse> PostDocumentPagesRotateAsync (string name, string rotationAngle, string pages, string storage = null, string folder = null, string password = null)
54901+
{
54902+
ApiResponse<AsposeResponse> localVarResponse = await PostDocumentPagesRotateAsyncWithHttpInfo(name, rotationAngle, pages, storage, folder, password);
54903+
return localVarResponse.Data;
54904+
54905+
}
54906+
54907+
/// <summary>
54908+
/// Rotate PDF document.
54909+
/// </summary>
54910+
/// <exception cref="Aspose.Pdf.Cloud.Sdk.Client.ApiException">Thrown when fails to make API call</exception>
54911+
/// <param name="name">The document name.</param>
54912+
/// <param name="rotationAngle">Rotation Angle (CKW). Can be 90, 180, 270.</param>
54913+
/// <param name="pages">Comma separated list of pages and page ranges. (Example: 1,3-5,8)</param>
54914+
/// <param name="storage">The document storage. (optional)</param>
54915+
/// <param name="folder">The document folder. (optional)</param>
54916+
/// <param name="password">Base64 encoded password. (optional)</param>
54917+
/// <returns>Task of ApiResponse (AsposeResponse)</returns>
54918+
public async System.Threading.Tasks.Task<ApiResponse<AsposeResponse>> PostDocumentPagesRotateAsyncWithHttpInfo (string name, string rotationAngle, string pages, string storage = null, string folder = null, string password = null)
54919+
{
54920+
// verify the required parameter 'name' is set
54921+
if (name == null)
54922+
throw new ApiException(400, "Missing required parameter 'name' when calling PdfApi->PostDocumentPagesRotate");
54923+
// verify the required parameter 'rotationAngle' is set
54924+
if (rotationAngle == null)
54925+
throw new ApiException(400, "Missing required parameter 'rotationAngle' when calling PdfApi->PostDocumentPagesRotate");
54926+
// verify the required parameter 'pages' is set
54927+
if (pages == null)
54928+
throw new ApiException(400, "Missing required parameter 'pages' when calling PdfApi->PostDocumentPagesRotate");
54929+
54930+
var localVarPath = "/pdf/{name}/rotate";
54931+
var localVarPathParams = new Dictionary<String, String>();
54932+
var localVarQueryParams = new Dictionary<String, String>();
54933+
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
54934+
var localVarFormParams = new Dictionary<String, String>();
54935+
var localVarFileParams = new Dictionary<String, FileParameter>();
54936+
Object localVarPostBody = null;
54937+
54938+
// to determine the Content-Type header
54939+
String[] localVarHttpContentTypes = new String[] {
54940+
"application/json"
54941+
};
54942+
String localVarHttpContentType = ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
54943+
54944+
// to determine the Accept header
54945+
String[] localVarHttpHeaderAccepts = new String[] {
54946+
"application/json"
54947+
};
54948+
String localVarHttpHeaderAccept = ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
54949+
if (localVarHttpHeaderAccept != null)
54950+
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
54951+
54952+
if (name != null) localVarPathParams.Add("name", ApiClient.ParameterToString(name)); // path parameter
54953+
if (rotationAngle != null) localVarQueryParams.Add("rotationAngle", ApiClient.ParameterToString(rotationAngle)); // query parameter
54954+
if (pages != null) localVarQueryParams.Add("pages", ApiClient.ParameterToString(pages)); // query parameter
54955+
if (storage != null) localVarQueryParams.Add("storage", ApiClient.ParameterToString(storage)); // query parameter
54956+
if (folder != null) localVarQueryParams.Add("folder", ApiClient.ParameterToString(folder)); // query parameter
54957+
if (password != null) localVarQueryParams.Add("password", ApiClient.ParameterToString(password)); // query parameter
54958+
54959+
// make the HTTP request
54960+
IRestResponse localVarResponse = (IRestResponse) await ApiClient.CallApiAsync(localVarPath,
54961+
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
54962+
localVarPathParams, localVarHttpContentType);
54963+
54964+
int localVarStatusCode = (int) localVarResponse.StatusCode;
54965+
54966+
if (ExceptionFactory != null)
54967+
{
54968+
Exception exception = ExceptionFactory("PostDocumentPagesRotate", localVarResponse);
54969+
if (exception != null) throw exception;
54970+
}
54971+
54972+
return new ApiResponse<AsposeResponse>(localVarStatusCode,
54973+
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
54974+
(AsposeResponse) ApiClient.Deserialize(localVarResponse, typeof(AsposeResponse)));
54975+
}
54976+
5474154977
/// Add document text footer.
5474254978
/// </summary>
5474354979
/// <exception cref="Aspose.Pdf.Cloud.Sdk.Client.ApiException">Thrown when fails to make API call</exception>

src/Aspose.Pdf.Cloud.Sdk/Client/ApiClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ private RestRequest PrepareRequest(
241241

242242
// add custom header
243243
request.AddHeader(AsposeClientHeaderName, ".net sdk");
244-
request.AddHeader(AsposeClientVersionHeaderName, "25.5.0");
244+
request.AddHeader(AsposeClientVersionHeaderName, "25.6.0");
245245

246246
// add header parameter, if any
247247
foreach(var param in headerParams)

0 commit comments

Comments
 (0)