@@ -5809,6 +5809,37 @@ public interface IPdfApi : IApiAccessor
5809
5809
/// <returns>ApiResponse of AsposeResponse</returns>
5810
5810
ApiResponse<AsposeResponse> PostDocumentPageNumberStampsWithHttpInfo (string name, PageNumberStamp stamp, int? startPageNumber = null, int? endPageNumber = null, string storage = null, string folder = null, string password = null);
5811
5811
/// <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>
5812
5843
/// Add document text footer.
5813
5844
/// </summary>
5814
5845
/// <remarks>
@@ -16778,6 +16809,37 @@ public interface IPdfApi : IApiAccessor
16778
16809
/// <returns>Task of ApiResponse (AsposeResponse)</returns>
16779
16810
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);
16780
16811
/// <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>
16781
16843
/// Add document text footer.
16782
16844
/// </summary>
16783
16845
/// <remarks>
@@ -54738,6 +54800,180 @@ public async System.Threading.Tasks.Task<ApiResponse<AsposeResponse>> PostDocume
54738
54800
(AsposeResponse) ApiClient.Deserialize(localVarResponse, typeof(AsposeResponse)));
54739
54801
}
54740
54802
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
+
54741
54977
/// Add document text footer.
54742
54978
/// </summary>
54743
54979
/// <exception cref="Aspose.Pdf.Cloud.Sdk.Client.ApiException">Thrown when fails to make API call</exception>
0 commit comments