Skip to content

Commit d47aa94

Browse files
authored
Merge pull request #116 from aspose-pdf-cloud/develop
update to 25.6
2 parents a06939c + d4b3333 commit d47aa94

21 files changed

+358
-989
lines changed

Aspose.Pdf.Cloud.Sdk.Core.sln

Lines changed: 0 additions & 31 deletions
This file was deleted.

LICENSE.TXT renamed to LICENSE.txt

File renamed without changes.

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

build.bat

Lines changed: 0 additions & 16 deletions
This file was deleted.

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.Examples/Aspose.PDF.Cloud.Examples.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp3.0</TargetFramework>
5+
<TargetFrameworks>net8.0;net452</TargetFrameworks>
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<ProjectReference Include="..\Aspose.Pdf.Cloud.Sdk\Aspose.Pdf.Cloud.Sdk.csproj" />
9+
<PackageReference Include="Aspose.Pdf-Cloud" Version="25.5.1" />
1010
</ItemGroup>
1111

1212
</Project>

src/Aspose.Pdf.Cloud.Sdk.Test/Aspose.Pdf.Cloud.Sdk.Test.Core.csproj

Lines changed: 0 additions & 73 deletions
This file was deleted.
Lines changed: 16 additions & 118 deletions
Original file line numberDiff line numberDiff line change
@@ -1,126 +1,24 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<!--
3-
Aspose.Pdf for Cloud API Reference
4-
5-
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
6-
7-
OpenAPI spec version: 1.1
8-
9-
-->
10-
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
1+
<Project Sdk="Microsoft.NET.Sdk">
112
<PropertyGroup>
12-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
13-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
14-
<ProjectGuid>{19F1DEBC-DE5E-4517-8062-F000CD499087}</ProjectGuid>
3+
<TargetFrameworks>net452;net8.0</TargetFrameworks>
154
<OutputType>Library</OutputType>
16-
<AppDesignerFolder>Properties</AppDesignerFolder>
17-
<RootNamespace>Aspose.Pdf.Cloud.Sdk.Test</RootNamespace>
18-
<AssemblyName>Aspose.Pdf.Cloud.Sdk.Test</AssemblyName>
19-
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
20-
<FileAlignment>512</FileAlignment>
21-
<TargetFrameworkProfile />
5+
<AssemblyName>Aspose.Pdf.Cloud.Sdk.Test</AssemblyName>
6+
<RootNamespace>Aspose.Pdf.Cloud.Sdk.Test</RootNamespace>
7+
<OutDir>bin\$(Configuration)\$(TargetFramework)</OutDir>
228
</PropertyGroup>
23-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
24-
<DebugSymbols>true</DebugSymbols>
25-
<DebugType>full</DebugType>
26-
<Optimize>false</Optimize>
27-
<OutputPath>bin\Debug\</OutputPath>
28-
<DefineConstants>DEBUG;TRACE</DefineConstants>
29-
<ErrorReport>prompt</ErrorReport>
30-
<WarningLevel>4</WarningLevel>
31-
</PropertyGroup>
32-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
33-
<DebugType>pdbonly</DebugType>
34-
<Optimize>true</Optimize>
35-
<OutputPath>bin\Release\</OutputPath>
36-
<DefineConstants>TRACE</DefineConstants>
37-
<ErrorReport>prompt</ErrorReport>
38-
<WarningLevel>4</WarningLevel>
39-
</PropertyGroup>
40-
<ItemGroup>
41-
<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
42-
<HintPath>..\..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
43-
</Reference>
44-
<Reference Include="System" />
45-
<Reference Include="System.Core" />
46-
<Reference Include="System.Net.Http" />
47-
<Reference Include="System.Xml.Linq" />
48-
<Reference Include="System.Data.DataSetExtensions" />
49-
<Reference Include="System.ComponentModel.DataAnnotations" />
50-
<Reference Include="Microsoft.CSharp" />
51-
<Reference Include="System.Data" />
52-
<Reference Include="System.Runtime.Serialization" />
53-
<Reference Include="System.Xml" />
54-
<Reference Include="nunit.framework">
55-
<HintPath Condition="Exists('$(SolutionDir)\packages')">$(SolutionDir)\packages\NUnit.2.6.4\lib\nunit.framework.dll</HintPath>
56-
<HintPath Condition="Exists('..\packages')">..\packages\NUnit.2.6.4\lib\nunit.framework.dll</HintPath>
57-
<HintPath Condition="Exists('..\..\packages')">..\..\packages\NUnit.2.6.4\lib\nunit.framework.dll</HintPath>
58-
<HintPath Condition="Exists('..\..\vendor')">..\..\vendor\NUnit.2.6.4\lib\nunit.framework.dll</HintPath>
59-
</Reference>
60-
</ItemGroup>
61-
<ItemGroup>
62-
<Compile Include="AnnotationsTests.cs" />
63-
<Compile Include="AppendTests.cs" />
64-
<Compile Include="AttachmentsTests.cs" />
65-
<Compile Include="BookmarksTests.cs" />
66-
<Compile Include="CaretAnnotationsTests.cs" />
67-
<Compile Include="CircleAnnotationsTests.cs" />
68-
<Compile Include="ConvertTests.cs" />
69-
<Compile Include="ConvertToPdfTests.cs" />
70-
<Compile Include="DocumentTests.cs" />
71-
<Compile Include="EncryptDecryptTests.cs" />
72-
<Compile Include="FieldsTests.cs" />
73-
<Compile Include="FileAttachmentAnnotationsTests.cs" />
74-
<Compile Include="FreeTextAnnotationsTests.cs" />
75-
<Compile Include="HeaderFooterTests.cs" />
76-
<Compile Include="HighlightAnnotationsTests.cs" />
77-
<Compile Include="ImagesTests.cs" />
78-
<Compile Include="ImportExportTests.cs" />
79-
<Compile Include="InkAnnotationsTests.cs" />
80-
<Compile Include="LayersTests.cs" />
81-
<Compile Include="LineAnnotationsTests.cs" />
82-
<Compile Include="LinkAnnotationsTests.cs" />
83-
<Compile Include="MergeTests.cs" />
84-
<Compile Include="MovieAnnotationsTests.cs" />
85-
<Compile Include="OrganizeTests.cs" />
86-
<Compile Include="PageConvertToImageTests.cs" />
87-
<Compile Include="PolygonAnnotationsTests.cs" />
88-
<Compile Include="PolyLineAnnotationsTests.cs" />
89-
<Compile Include="PopupAnnotationsTests.cs" />
90-
<Compile Include="PrivilegesTests.cs" />
91-
<Compile Include="RedactionAnnotationsTests.cs" />
92-
<Compile Include="ScreenAnnotationsTests.cs" />
93-
<Compile Include="SoundAnnotationsTests.cs" />
94-
<Compile Include="SquareAnnotationsTests.cs" />
95-
<Compile Include="SquigglyAnnotationsTests.cs" />
96-
<Compile Include="StampAnnotationsTests.cs" />
97-
<Compile Include="StampsTests.cs" />
98-
<Compile Include="StrikeOutAnnotationsTests.cs" />
99-
<Compile Include="TablesTests.cs" />
100-
<Compile Include="TextAnnotationsTests.cs" />
101-
<Compile Include="TextTests.cs" />
102-
<Compile Include="OcrTests.cs" />
103-
<Compile Include="PagesTests.cs" />
104-
<Compile Include="TextReplaceTests.cs" />
105-
<Compile Include="PropertiesTests.cs" />
106-
<Compile Include="SignTests.cs" />
107-
<Compile Include="TestBase.cs" />
108-
<Compile Include="UnderlineAnnotationsTests.cs" />
109-
<Compile Include="XmpMetadataTests.cs" />
110-
<Compile Include="StorageTests.cs" />
111-
</ItemGroup>
112-
<ItemGroup>
113-
<None Include="app.config" />
114-
<None Include="packages.config" />
115-
</ItemGroup>
1169
<ItemGroup>
117-
<ProjectReference Include="..\Aspose.Pdf.Cloud.Sdk\Aspose.Pdf.Cloud.Sdk.csproj">
118-
<Project>{ef4ce7ef-dd3c-4654-8b0a-4bf813184ee4}</Project>
119-
<Name>Aspose.Pdf.Cloud.Sdk</Name>
120-
</ProjectReference>
10+
<ProjectReference Include="..\Aspose.Pdf.Cloud.Sdk\Aspose.Pdf.Cloud.Sdk.csproj" />
12111
</ItemGroup>
12212
<ItemGroup>
123-
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
13+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.3" />
14+
<PackageReference Include="NUnit" Version="3.14.0" />
15+
<PackageReference Include="NUnit3TestAdapter" Version="5.0.0" />
16+
<PackageReference Include="NUnit.ConsoleRunner" Version="3.20.1" />
12417
</ItemGroup>
125-
<Import Project="$(MsBuildToolsPath)\Microsoft.CSharp.targets" />
18+
<Target Name="CopyNUnitConsole" AfterTargets="Build">
19+
<ItemGroup>
20+
<NUnitConsoleFiles Include="$(NuGetPackageRoot)\nunit.consolerunner\3.20.1\tools\**\*" />
21+
</ItemGroup>
22+
<Copy SourceFiles="@(NUnitConsoleFiles)" DestinationFiles="@(NUnitConsoleFiles->'$(OutDir)\nunit\%(RecursiveDir)%(Filename)%(Extension)')" SkipUnchangedFiles="true" />
23+
</Target>
12624
</Project>

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,5 +259,19 @@ public void PostOrganizeDocumentsTest()
259259
);
260260
Assert.That(response.Code, Is.EqualTo(200));
261261
}
262+
263+
/// <summary>
264+
/// Test PostDocumentPagesRotate
265+
/// </summary>
266+
[Test]
267+
268+
public void PostDocumentPagesRotateTest()
269+
{
270+
const string name1 = "4pages.pdf";
271+
UploadFile(name1, name1);
272+
273+
var response = PdfApi.PostDocumentPagesRotate(name1, Rotation.On90.ToString(), "2-3", folder: TempFolder);
274+
Assert.That(response.Code, Is.EqualTo(200));
275+
}
262276
}
263277
}

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

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,19 @@ public void PutReplaceMultipleImageTest()
114114
const string name = "PdfWithImages.pdf";
115115
UploadFile(name, name);
116116
const string imageName = "butterfly.jpg";
117-
UploadFile(imageName, imageName);
117+
UploadFile(imageName, imageName);
118+
119+
var imagesResponse1 = PdfApi.GetImages(name, pageNumber: 1, folder: TempFolder);
120+
Assert.That(imagesResponse1.Code, Is.EqualTo(200));
121+
var imageId1 = imagesResponse1.Images.List[0].Id;
122+
123+
var imagesResponse2 = PdfApi.GetImages(name, pageNumber: 16, folder: TempFolder);
124+
Assert.That(imagesResponse2.Code, Is.EqualTo(200));
125+
var imageId2 = imagesResponse2.Images.List[0].Id;
126+
118127
var response = PdfApi.PutReplaceMultipleImage(
119128
name: name,
120-
imageIds: new List<string>{"GE5TENJVGQZTWMJYGQWDINRUFQ2DCMRMGY4TC", "GE5TIMJSGY3TWMJXG4WDIMBZFQ2DCOJMGQ3DK"},
129+
imageIds: new List<string>{imageId1, imageId2},
121130
imageFilePath: Path.Combine(TempFolder, imageName),
122131
folder: TempFolder);
123132
Assert.That(response.Code, Is.EqualTo(200));

0 commit comments

Comments
 (0)