Skip to content

Commit be836d3

Browse files
author
Kirill Novinskiy
committed
update to 25.8.0
1 parent 227d9c0 commit be836d3

File tree

8 files changed

+315
-19
lines changed

8 files changed

+315
-19
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ 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.7
33-
- Add possibility to hide subject field in signature appearance.
32+
## Enhancements in Version 25.8
33+
- Implement document page resize 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.7
37-
- PostDeleteStamps removing stamps from PDF page is incorrect.
36+
## Bugs fixed in Version 25.8
37+
- Implement delete watermark from PDF document using the Pdf.Cloud API library.
3838

3939
## Unit Tests
4040
Aspose PDF SDK includes a suite of unit tests. These Unit Tests also serves as examples of how to use the Aspose PDF SDK.

docs/PdfApi.md

Lines changed: 31 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+
[**PostDocumentPagesResize**](PdfApi.md#postdocumentpagesresize) | **POST** /pdf/\{name}/resize | Rsize PDF document.
215216
[**PostDocumentPagesRotate**](PdfApi.md#postdocumentpagesrotate) | **POST** /pdf/\{name}/rotate | Rotate PDF document.
216217
[**PostDocumentTextFooter**](PdfApi.md#postdocumenttextfooter) | **POST** /pdf/\{name}/footer/text | Add document text footer.
217218
[**PostDocumentTextHeader**](PdfApi.md#postdocumenttextheader) | **POST** /pdf/\{name}/header/text | Add document text header.
@@ -6077,6 +6078,36 @@ Name | Type | Description | Notes
60776078

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

6081+
<a name="postdocumentpagesresize"></a>
6082+
# **PostDocumentPagesResize**
6083+
> AsposeResponse PostDocumentPagesResize (string name, double? height, double? width, string pages, string storage = null, string folder = null, string password = null)
6084+
6085+
Rsize PDF document.
6086+
6087+
6088+
### Parameters
6089+
6090+
Name | Type | Description | Notes
6091+
------------- | ------------- | ------------- | -------------
6092+
**name** | **string**| The document name. |
6093+
**height** | **double?**| Page Height |
6094+
**width** | **double?**| Page width |
6095+
**pages** | **string**| Comma separated list of pages and page ranges. (Example: 1,3-5,8) |
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+
60806111
<a name="postdocumentpagesrotate"></a>
60816112
# **PostDocumentPagesRotate**
60826113
> AsposeResponse PostDocumentPagesRotate (string name, string rotationAngle, string pages, string storage = null, string folder = null, string password = null)

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

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ namespace Aspose.Pdf.Cloud.Sdk.Test
4040
[TestFixture]
4141
public class DocumentTests : TestsBase
4242
{
43-
43+
4444
/// <summary>
4545
/// Test GetDocument
4646
/// </summary>
@@ -74,7 +74,7 @@ public void PostOptimizeDocumentTest()
7474
var response = PdfApi.PostOptimizeDocument(name, options, folder: TempFolder);
7575
Assert.That(response.Code, Is.EqualTo(200));
7676
}
77-
77+
7878
/// <summary>
7979
/// Test PostOptimizeDocument with password
8080
/// </summary>
@@ -95,7 +95,7 @@ public void PostOptimizeDocumentWithPasswordTest()
9595
var response = PdfApi.PostOptimizeDocument(name, options, folder: TempFolder);
9696
Assert.That(response.Code, Is.EqualTo(200));
9797
}
98-
98+
9999
/// <summary>
100100
/// Test PostSplitDocument
101101
/// </summary>
@@ -118,7 +118,7 @@ public void PostSplitRangePdfDocumentTest()
118118
UploadFile(name, name);
119119
SplitRangePdfOptions options = new SplitRangePdfOptions
120120
{
121-
PageRanges = new List<PageRange>
121+
PageRanges = new List<PageRange>
122122
{
123123
new PageRange { To = 2 },
124124
new PageRange { From = 3 },
@@ -273,5 +273,18 @@ public void PostDocumentPagesRotateTest()
273273
var response = PdfApi.PostDocumentPagesRotate(name1, Rotation.On90.ToString(), "2-3", folder: TempFolder);
274274
Assert.That(response.Code, Is.EqualTo(200));
275275
}
276+
277+
/// <summary>
278+
/// Test PostDocumentPagesResize
279+
/// </summary>
280+
[Test]
281+
public void PostDocumentPagesResizeTest()
282+
{
283+
const string name1 = "4pages.pdf";
284+
UploadFile(name1, name1);
285+
286+
var response = PdfApi.PostDocumentPagesResize(name1, 100, 200, "2-3", folder: TempFolder);
287+
Assert.That(response.Code, Is.EqualTo(200));
288+
}
276289
}
277290
}

0 commit comments

Comments
 (0)