Skip to content

Commit 919f730

Browse files
author
Kirill Novinskiy
committed
Merge remote-tracking branch 'origin/release_25.9.0' into develop
2 parents 808af27 + 121aa5c commit 919f730

File tree

7 files changed

+299
-9
lines changed

7 files changed

+299
-9
lines changed

README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +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 25.8
33-
- Implement document page resize functionality using the Pdf.Cloud API library.
32+
## Enhancements in Version 25.9
33+
- Implement PDF document page crop functionality using the Pdf.Cloud API library.
3434
- A new version of Aspose.PDF Cloud was prepared using the latest version of Aspose.PDF for .NET.
3535

36-
## Bugs fixed in Version 25.8
37-
- Implement delete watermark from PDF document using the Pdf.Cloud API library.
38-
3936
## Unit Tests
4037
Aspose PDF SDK includes a suite of unit tests. These Unit Tests also serves as examples of how to use the Aspose PDF SDK.
4138

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+
[**PostDocumentPagesCrop**](PdfApi.md#postdocumentpagescrop) | **POST** /pdf/\{name}/crop | Crop PDF document pages.
215216
[**PostDocumentPagesResize**](PdfApi.md#postdocumentpagesresize) | **POST** /pdf/\{name}/resize | Rsize PDF document.
216217
[**PostDocumentPagesRotate**](PdfApi.md#postdocumentpagesrotate) | **POST** /pdf/\{name}/rotate | Rotate PDF document.
217218
[**PostDocumentTextFooter**](PdfApi.md#postdocumenttextfooter) | **POST** /pdf/\{name}/footer/text | Add document text footer.
@@ -6078,6 +6079,35 @@ Name | Type | Description | Notes
60786079

60796080
[[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)
60806081

6082+
<a name="postdocumentpagescrop"></a>
6083+
# **PostDocumentPagesCrop**
6084+
> AsposeResponse PostDocumentPagesCrop (string name, string pages, Rectangle rect, string storage = null, string folder = null, string password = null)
6085+
6086+
Crop PDF document pages.
6087+
6088+
6089+
### Parameters
6090+
6091+
Name | Type | Description | Notes
6092+
------------- | ------------- | ------------- | -------------
6093+
**name** | **string**| The document name. |
6094+
**pages** | **string**| Comma separated list of pages and page ranges. (Example: 1,3-5,8) |
6095+
**rect** | [**Rectangle**](Rectangle.md)| Rectangle of document area. |
6096+
**storage** | **string**| The document storage. | [optional]
6097+
**folder** | **string**| The document folder. | [optional]
6098+
**password** | **string**| Base64 encoded password. | [optional]
6099+
6100+
### Return type
6101+
6102+
[**AsposeResponse**](AsposeResponse.md)
6103+
6104+
### HTTP request headers
6105+
6106+
- **Content-Type**: application/json
6107+
- **Accept**: application/json
6108+
6109+
[[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)
6110+
60816111
<a name="postdocumentpagesresize"></a>
60826112
# **PostDocumentPagesResize**
60836113
> AsposeResponse PostDocumentPagesResize (string name, double? height, double? width, string pages, string storage = null, string folder = null, string password = null)

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,5 +286,18 @@ public void PostDocumentPagesResizeTest()
286286
var response = PdfApi.PostDocumentPagesResize(name1, 100, 200, "2-3", folder: TempFolder);
287287
Assert.That(response.Code, Is.EqualTo(200));
288288
}
289+
290+
/// <summary>
291+
/// Test PostDocumentPagesCrop
292+
/// </summary>
293+
[Test]
294+
public void PostDocumentPagesCropTest()
295+
{
296+
const string name1 = "4pages.pdf";
297+
UploadFile(name1, name1);
298+
299+
var response = PdfApi.PostDocumentPagesCrop(name1, "2-3", new Rectangle(0, 0, 800, 400), folder: TempFolder);
300+
Assert.That(response.Code, Is.EqualTo(200));
301+
}
289302
}
290303
}

0 commit comments

Comments
 (0)