Skip to content

Commit bfb64f7

Browse files
committed
Updated sources
1 parent 3872965 commit bfb64f7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+2286
-871
lines changed

README.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
# GroupDocs.Annotation Cloud SDK for .NET
2+
23
This repository contains GroupDocs.Annotation Cloud SDK for .NET source code. This SDK allows you to work with GroupDocs.Annotation Cloud REST APIs in your .NET applications.
34

4-
## How to use the SDK?
5-
The complete source code is available in this repository folder, you can either directly use it in your project via NuGet package manager. For more details, please visit our [documentation website](https://docs.groupdocs.cloud/).
5+
## How to use the SDK
6+
7+
The complete source code is available in this repository folder, you can either directly use it in your project via NuGet package manager. For more details, please visit our [documentation website](https://docs.groupdocs.cloud/annotation/).
68

79
## Dependencies
8-
- [Json.NET](https://www.nuget.org/packages/Newtonsoft.Json)
10+
11+
+[Json.NET](https://www.nuget.org/packages/Newtonsoft.Json)
912

1013
## Getting Started
1114

@@ -46,6 +49,17 @@ namespace Example
4649
```
4750

4851
## Licensing
52+
4953
All GroupDocs.Annotation Cloud SDKs are licensed under [MIT License](LICENSE).
5054

51-
[Home](https://www.groupdocs.cloud/) | [Product Page](https://products.groupdocs.cloud/annotation/net) | [Docs](https://docs.groupdocs.cloud/annotation/) | [API Reference](https://apireference.groupdocs.cloud/annotation/) | [Examples](https://github.com/groupdocs-annotation-cloud/groupdocs-annotation-cloud-dotnet) | [Blog](https://blog.groupdocs.cloud/category/annotation/) | [Free Support](https://forum.groupdocs.cloud/c/annotation) | [Free Trial](https://purchase.groupdocs.cloud/trial)
55+
## Resources
56+
57+
+[**Website**](https://www.groupdocs.cloud)
58+
+[**Product Home**](https://products.groupdocs.cloud/annotation)
59+
+[**Documentation**](https://docs.groupdocs.cloud/annotation/)
60+
+[**Free Support Forum**](https://forum.groupdocs.cloud/c/annotation)
61+
+[**Blog**](https://blog.groupdocs.cloud/category/annotation)
62+
63+
## Contact Us
64+
65+
Your feedback is very important to us. Please feel free to contact us using our [Support Forums](https://forum.groupdocs.cloud/c/annotation).

src/GroupDocs.Annotation.Cloud.Sdk.Test/Api/AnnotationApiTests.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// --------------------------------------------------------------------------------------------------------------------
22
// <copyright company="Aspose Pty Ltd">
3-
// Copyright (c) 2003-2019 Aspose Pty Ltd
3+
// Copyright (c) 2003-2020 Aspose Pty Ltd
44
// </copyright>
55
// <summary>
66
// Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -58,19 +58,19 @@ public void TestGetImport(string filePath)
5858
Assert.IsInstanceOf(typeof(AnnotationInfo), annotations[0]);
5959
}
6060

61-
[TestCase(@"cells\one-page.xlsx", Ignore = "")]
61+
[TestCase(@"cells\one-page.xlsx")]
6262
[TestCase(@"diagram\one-page.vsd")]
6363
[TestCase(@"email\one-page.emlx")]
6464
[TestCase(@"images\one-page.png")]
6565
[TestCase(@"pdf\one-page.pdf")]
6666
[TestCase(@"slides\one-page.pptx")]
6767
[TestCase(@"words\one-page.docx")]
68-
[TestCase(@"cells\ten-pages.xlsx", "Area,Point", true, 2, 5, Ignore = "")]
68+
[TestCase(@"cells\ten-pages.xlsx", "Area,Point", true, 2, 5)]
6969
[TestCase(@"diagram\ten-pages.vsd", "Area,Point", true, 2, 5)]
70-
[TestCase(@"pdf\ten-pages.pdf", "Area,Point", true, 2, 5)]
70+
[TestCase(@"pdf\ten-pages.pdf", "Area,Point", true, 1, 2)]
7171
[TestCase(@"slides\ten-pages.pptx", "Area,Point", true, 2, 5)]
7272
[TestCase(@"words\ten-pages.docx", "Area,Point", true, 2, 5)]
73-
[TestCase(@"cells\one-page-password.xlsx", null, false, -1, -1, "password", Ignore = "")]
73+
[TestCase(@"cells\one-page-password.xlsx", null, false, -1, -1, "password")]
7474
[TestCase(@"pdf\one-page-password.pdf", null, false, -1, -1, "password")]
7575
[TestCase(@"slides\one-page-password.pptx", null, false, -1, -1, "password")]
7676
[TestCase(@"words\one-page-password.docx", null, false, -1, -1, "password")]
@@ -135,7 +135,7 @@ public void TestPostAnnotationsManyPages(string filePath)
135135
AnnotateApi.PostAnnotations(request);
136136
}
137137

138-
private List<AnnotationInfo> GetAnnotationsTestBody()
138+
private static List<AnnotationInfo> GetAnnotationsTestBody()
139139
{
140140
AnnotationInfo[] annotations = {
141141
new AnnotationInfo

src/GroupDocs.Annotation.Cloud.Sdk.Test/Api/AnnotationFormatsApiTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// --------------------------------------------------------------------------------------------------------------------
22
// <copyright company="Aspose Pty Ltd">
3-
// Copyright (c) 2003-2019 Aspose Pty Ltd
3+
// Copyright (c) 2003-2020 Aspose Pty Ltd
44
// </copyright>
55
// <summary>
66
// Permission is hereby granted, free of charge, to any person obtaining a copy

src/GroupDocs.Annotation.Cloud.Sdk.Test/Api/AnnotationInfoApiTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// --------------------------------------------------------------------------------------------------------------------
22
// <copyright company="Aspose Pty Ltd">
3-
// Copyright (c) 2003-2019 Aspose Pty Ltd
3+
// Copyright (c) 2003-2020 Aspose Pty Ltd
44
// </copyright>
55
// <summary>
66
// Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -42,9 +42,9 @@ public class AnnotationInfoApiTests : BaseApiTest
4242
[TestCase(@"pdf\ten-pages.pdf")]
4343
[TestCase(@"slides\ten-pages.pptx")]
4444
[TestCase(@"words\ten-pages.docx")]
45-
[TestCase(@"cells\one-page-password.xlsx", "password", Ignore = "")]
45+
[TestCase(@"cells\one-page-password.xlsx", "password")]
4646
[TestCase(@"pdf\one-page-password.pdf", "password")]
47-
[TestCase(@"slides\one-page-password.pptx", "password", Ignore = "")]
47+
[TestCase(@"slides\one-page-password.pptx", "password")]
4848
[TestCase(@"words\one-page-password.docx", "password")]
4949
public void TestGetInfo(string filePath, string password = null)
5050
{

src/GroupDocs.Annotation.Cloud.Sdk.Test/Api/AnnotationPagesApiTests.cs

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// --------------------------------------------------------------------------------------------------------------------
22
// <copyright company="Aspose Pty Ltd">
3-
// Copyright (c) 2003-2019 Aspose Pty Ltd
3+
// Copyright (c) 2003-2020 Aspose Pty Ltd
44
// </copyright>
55
// <summary>
66
// Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -38,19 +38,22 @@ public class AnnotationPagesApiTests : BaseApiTest
3838
[TestCase(@"pdf\one-page.pdf")]
3939
[TestCase(@"slides\one-page.pptx")]
4040
[TestCase(@"words\one-page.docx")]
41-
[TestCase(@"cells\ten-pages.xlsx", 8, 0)]
42-
[TestCase(@"diagram\ten-pages.vsd", 3, 5)]
43-
[TestCase(@"pdf\ten-pages.pdf", 8, 0)]
44-
[TestCase(@"slides\ten-pages.pptx", 3, 5)]
45-
[TestCase(@"words\ten-pages.docx", 0, 10)]
46-
[TestCase(@"cells\one-page-password.xlsx", 0, 0, null, false, false, null, "password", Ignore = "")]
47-
[TestCase(@"pdf\one-page-password.pdf", 0, 0, null, false, false, null, "password")]
48-
[TestCase(@"slides\one-page-password.pptx", 0, 0, null, false, false, null, "password", Ignore = "")]
49-
[TestCase(@"words\one-page-password.docx", 0, 0, null, false, false, null, "password", Ignore = "")]
41+
[TestCase(@"cells\ten-pages.xlsx", "JPEG")]
42+
[TestCase(@"diagram\ten-pages.vsd")]
43+
[TestCase(@"pdf\ten-pages.pdf")]
44+
[TestCase(@"slides\ten-pages.pptx")]
45+
[TestCase(@"words\ten-pages.docx")]
46+
[TestCase(@"cells\one-page-password.xlsx", null, null, false, 0, 0, false, "password")]
47+
[TestCase(@"pdf\one-page-password.pdf", "PNG", null, false, 0, 0, false, "password")]
48+
[TestCase(@"slides\one-page-password.pptx", null, null, false, 0, 0, false, "password")]
49+
[TestCase(@"words\one-page-password.docx", null, null, false, 0, 0, false, "password")]
5050
[Order(0)]
51-
public void TestGetPages(string filePath, int countPagesToConvert = 0, int pageNumber = 0, List<int?> pageNumbersToConvert = null, bool withoutAnnotations = false, bool enableCaching = false, string cacheStoragePath = null, string password = null)
51+
public void TestGetPages(string filePath, string format=null, List<int?> pageNumbersToConvert = null,
52+
bool withoutAnnotations = false, int width = 0, int height = 0,
53+
bool renderComments = false, string password = null)
5254
{
53-
GetPagesRequest request = new GetPagesRequest(filePath, countPagesToConvert, pageNumber, pageNumbersToConvert, withoutAnnotations, enableCaching, cacheStoragePath, password);
55+
var request = new GetPagesRequest(filePath, pageNumbersToConvert, format, width, height,
56+
withoutAnnotations, renderComments, password);
5457
var imagePages = PreviewApi.GetPages(request);
5558
Assert.NotNull(imagePages);
5659
}
@@ -67,10 +70,10 @@ public void TestGetPages(string filePath, int countPagesToConvert = 0, int pageN
6770
[TestCase(@"pdf\ten-pages.pdf")]
6871
[TestCase(@"slides\ten-pages.pptx")]
6972
[TestCase(@"words\ten-pages.docx")]
70-
[TestCase(@"cells\one-page-password.xlsx", Ignore = "")]
73+
[TestCase(@"cells\one-page-password.xlsx")]
7174
[TestCase(@"pdf\one-page-password.pdf")]
72-
[TestCase(@"slides\one-page-password.pptx", Ignore = "")]
73-
[TestCase(@"words\one-page-password.docx", Ignore = "")]
75+
[TestCase(@"slides\one-page-password.pptx")]
76+
[TestCase(@"words\one-page-password.docx")]
7477
[Order(2)]
7578
public void TestDeletePages(string filePath)
7679
{

src/GroupDocs.Annotation.Cloud.Sdk.Test/Api/AnnotationPdfFileTests.cs

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

src/GroupDocs.Annotation.Cloud.Sdk.Test/Api/AuthApiTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// --------------------------------------------------------------------------------------------------------------------
22
// <copyright company="Aspose Pty Ltd">
3-
// Copyright (c) 2003-2019 Aspose Pty Ltd
3+
// Copyright (c) 2003-2020 Aspose Pty Ltd
44
// </copyright>
55
// <summary>
66
// Permission is hereby granted, free of charge, to any person obtaining a copy

src/GroupDocs.Annotation.Cloud.Sdk.Test/Api/BaseApiTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// --------------------------------------------------------------------------------------------------------------------
22
// <copyright company="Aspose Pty Ltd">
3-
// Copyright (c) 2003-2019 Aspose Pty Ltd
3+
// Copyright (c) 2003-2020 Aspose Pty Ltd
44
// </copyright>
55
// <summary>
66
// Permission is hereby granted, free of charge, to any person obtaining a copy

src/GroupDocs.Annotation.Cloud.Sdk.Test/Api/FileApiTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// --------------------------------------------------------------------------------------------------------------------
22
// <copyright company="Aspose Pty Ltd">
3-
// Copyright (c) 2003-2019 Aspose Pty Ltd
3+
// Copyright (c) 2003-2020 Aspose Pty Ltd
44
// </copyright>
55
// <summary>
66
// Permission is hereby granted, free of charge, to any person obtaining a copy

src/GroupDocs.Annotation.Cloud.Sdk.Test/Api/FolderApiTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// --------------------------------------------------------------------------------------------------------------------
22
// <copyright company="Aspose Pty Ltd">
3-
// Copyright (c) 2003-2019 Aspose Pty Ltd
3+
// Copyright (c) 2003-2020 Aspose Pty Ltd
44
// </copyright>
55
// <summary>
66
// Permission is hereby granted, free of charge, to any person obtaining a copy

0 commit comments

Comments
 (0)