From d560e013e919d2451146607c73be22e72751cfd5 Mon Sep 17 00:00:00 2001 From: product-team Date: Thu, 18 Mar 2021 02:52:07 -0500 Subject: [PATCH] Updated sources --- LICENSE | 2 +- README.md | 126 ++++++++---------- .../Api/AuthApiTests.cs | 2 +- .../Api/BaseApiTest.cs | 2 +- .../Api/FileApiTests.cs | 2 +- .../Api/FolderApiTests.cs | 2 +- .../Api/Internal/TestFile.cs | 2 +- .../Api/Internal/TestFiles.cs | 2 +- .../Api/StorageApiTests.cs | 2 +- .../Api/ViewerCreateViewApiTests.cs | 29 +++- .../Api/ViewerDeleteViewApiTests.cs | 2 +- .../Api/ViewerFormatsApiTests.cs | 2 +- .../Api/ViewerGetInfoApiTests.cs | 4 +- src/GroupDocs.Viewer.Cloud.Sdk.Test/Config.cs | 2 +- src/GroupDocs.Viewer.Cloud.Sdk/Api/FileApi.cs | 12 +- .../Api/FolderApi.cs | 12 +- src/GroupDocs.Viewer.Cloud.Sdk/Api/InfoApi.cs | 4 +- .../Api/StorageApi.cs | 10 +- src/GroupDocs.Viewer.Cloud.Sdk/Api/ViewApi.cs | 6 +- .../Client/ApiException.cs | 2 +- .../Client/ApiInvoker.cs | 3 +- .../Client/Configuration.cs | 2 +- .../Client/FileInfo.cs | 2 +- .../Client/IRequestHandler.cs | 2 +- .../Client/NeedRepeatRequestException.cs | 2 +- .../RequestHandlers/ApiErrorResponse.cs | 2 +- .../ApiExceptionRequestHandler.cs | 14 +- .../RequestHandlers/AuthErrorResponse.cs | 2 +- .../RequestHandlers/AuthRequestHandler.cs | 2 +- .../RequestHandlers/DebugLogRequestHandler.cs | 2 +- .../Client/RequestHandlers/Error.cs | 2 +- .../Client/SerializationHelper.cs | 2 +- .../Client/StreamHelper.cs | 2 +- .../Client/UrlHelper.cs | 2 +- .../Model/ArchiveOptions.cs | 2 +- .../Model/ArchiveViewInfo.cs | 2 +- .../Model/AttachmentInfo.cs | 2 +- .../Model/AttachmentView.cs | 2 +- .../Model/CadOptions.cs | 2 +- .../Model/CadViewInfo.cs | 2 +- .../Model/Character.cs | 2 +- .../Model/DeleteViewOptions.cs | 2 +- .../Model/DiscUsage.cs | 2 +- .../Model/EmailOptions.cs | 2 +- src/GroupDocs.Viewer.Cloud.Sdk/Model/Error.cs | 2 +- .../Model/ErrorDetails.cs | 2 +- .../Model/FieldLabel.cs | 2 +- .../Model/FileInfo.cs | 2 +- .../Model/FileVersion.cs | 2 +- .../Model/FileVersions.cs | 2 +- .../Model/FilesList.cs | 2 +- .../Model/FilesUploadResult.cs | 2 +- .../Model/Format.cs | 2 +- .../Model/FormatsResult.cs | 2 +- .../Model/HtmlOptions.cs | 2 +- .../Model/HtmlResource.cs | 2 +- .../Model/ImageOptions.cs | 2 +- .../Model/InfoResult.cs | 2 +- src/GroupDocs.Viewer.Cloud.Sdk/Model/Layer.cs | 2 +- .../Model/Layout.cs | 2 +- src/GroupDocs.Viewer.Cloud.Sdk/Model/Line.cs | 2 +- .../Model/ObjectExist.cs | 2 +- .../Model/OutlookOptions.cs | 2 +- .../Model/OutlookViewInfo.cs | 2 +- .../Model/PageInfo.cs | 2 +- .../Model/PageRotation.cs | 2 +- .../Model/PageView.cs | 2 +- .../Model/PdfDocumentOptions.cs | 2 +- .../Model/PdfOptions.cs | 45 +------ .../Model/PdfViewInfo.cs | 2 +- .../Model/ProjectManagementOptions.cs | 2 +- .../Model/ProjectManagementViewInfo.cs | 2 +- .../Model/RenderOptions.cs | 2 +- .../Model/Resource.cs | 2 +- .../Model/SpreadsheetOptions.cs | 2 +- .../Model/StorageExist.cs | 2 +- .../Model/StorageFile.cs | 2 +- .../Model/TextElement.cs | 2 +- src/GroupDocs.Viewer.Cloud.Sdk/Model/Tile.cs | 2 +- .../Model/ViewOptions.cs | 2 +- .../Model/ViewResult.cs | 2 +- .../Model/Watermark.cs | 2 +- src/GroupDocs.Viewer.Cloud.Sdk/Model/Word.cs | 2 +- .../Model/WordProcessingOptions.cs | 2 +- .../Properties/AssemblyInfo.cs | 2 +- 85 files changed, 196 insertions(+), 217 deletions(-) diff --git a/LICENSE b/LICENSE index 1b682e9..26b9bf3 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2003-2020 Aspose Pty Ltd +Copyright (c) 2003-2019 Aspose Pty Ltd Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index c5d2c18..742ddc2 100644 --- a/README.md +++ b/README.md @@ -1,91 +1,79 @@ -![](https://img.shields.io/badge/api-v2.0-lightgrey) ![Nuget](https://img.shields.io/nuget/v/GroupDocs.Viewer-Cloud) ![Nuget](https://img.shields.io/nuget/dt/GroupDocs.Viewer-Cloud) [![GitHub license](https://img.shields.io/github/license/groupdocs-viewer-cloud/groupdocs-viewer-cloud-dotnet)](https://github.com/groupdocs-viewer-cloud/groupdocs-viewer-cloud-dotnet/blob/master/LICENSE) +# GroupDocs.Viewer Cloud SDK for .NET +This repository contains GroupDocs.Viewer Cloud SDK for .NET source code. This SDK allows you to work with GroupDocs.Viewer Cloud REST APIs in your .NET applications. -# .NET SDK to View Documents in the Cloud +## How to use the SDK? +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/display/viewercloud/Available+SDKs#AvailableSDKs-.NET). -[GroupDocs.Viewer Cloud SDK for .NET](https://products.groupdocs.cloud/viewer/net) wraps GroupDocs.Viewer RESTful APIs so you may integrate Document Viewing features in your own apps with zero initial cost. +## Installation -GroupDocs.Viewer Cloud API allows the developers to view & render a number of document formats including Word documents, Excel spreadsheets, PowerPoint presentations, PDF, OpenDocument formats, emails, CAD files & images. +Install GroupDocs.Viewer-Cloud via NuGet -## Document Viewer Services in REST +From the command line: -- 90+ supported file formats. -- View documents as PDF, HTML or images. -- Render documents as raster & vector images. -- Render documents with comments & notes. -- Flip/rotate documents pages at 90, 180 or 270 degrees. -- Reorder document pages. -- Render hidden, consecutive or selected document pages. -- Watermark PDF, image or HTML output pages. -- Render with custom fonts as well as replace any missing fonts. -- Load password-protected documents. -- Extract attachment information such as attachment count & names. -- Extract document information like file format, page count, size and visibility, text coordinates, and so on. -- Integrated storage API. + nuget install GroupDocs.Viewer-Cloud -Check out the [Developer's Guide](https://docs.groupdocs.cloud/viewer/developer-guide/) to know more about GroupDocs.Viewer REST API. +From Package Manager: -## Microsoft File Formats + PM> Install-Package GroupDocs.Viewer-Cloud -**Microsoft Word:** DOC, DOCM, DOCX, DOT, DOTM, DOTX\ -**Microsoft Excel:** XLS, XLSX, XLSB, XLSM\ -**Microsoft PowerPoint:** PPTX, PPTM, PPT, PPSX, PPSM, PPS, POTX, POTM\ -**Microsoft Project:** MPP, MPT\ -**Microsoft Outlook:** MSG, OST, PST\ -**Microsoft Visio:** VDW, VDX, VSD, VSDM, VSDX, VSS, VSSM, VSSX, VST, VSTM, VSTX, VSX, VTX\ -**Microsoft OneNote:** ONE +From within Visual Studio: -## Other Formats - -**Page Layout Formats:** PDF, XPS, TEX\ -**OpenDocument:** ODT, OTT, ODS, OTS, ODP, OTP\ -**CAD:** DNG, DWF, DWG, DXF, IDC, STL\ -**Images:** BMP, CGM, DCM, DJVU, EMP, EPS, GIF, ICO, JP2, JPG, ODG, PCL, PNG, PS, PSD, SVG, TIFF, WEBP, WMF\ -**Web:** HTML, MHT, MHTML\ -**Emails:** EML, EMLX\ -**eBooks:** EPUB, MOBI\ -**Others:** TXT, RTF, CSV, TSV - -## Get Started with GroupDocs.Viewer Cloud SDK for .NET - -First create an account at [GroupDocs for Cloud](https://dashboard.groupdocs.cloud/) and get your application information. Next, execute `Install-Package GroupDocs.Viewer-Cloud` from Package Manager Console in Visual Studio to fetch & reference the SDK in your project. If you already have the package and wish to upgrade it, please execute `Update-Package GroupDocs.Viewer-Cloud` to get the latest version. - -### Dependencies +1. Open the Solution Explorer. +2. Right-click on a project within your solution. +3. Click on *Manage NuGet Packages...* +4. Click on the *Browse* tab and search for "GroupDocs.Viewer-Cloud". +5. Click on the GroupDocs.Viewer-Cloud package, select the appropriate version in the right-tab and click *Install*. +## Dependencies - [Json.NET](https://www.nuget.org/packages/Newtonsoft.Json) -## Add Watermark to DOCX Pages before Rendering +## Getting Started ```csharp -// For complete examples and data files, please go to https://github.com/groupdocs-viewer-cloud/groupdocs-viewer-cloud-dotnet-samples -// Get Client Id and Client Secret from https://dashboard.groupdocs.cloud -string MyClientSecret = ""; -string MyClientId = ""; +using System; +using System.Diagnostics; +using GroupDocs.Viewer.Cloud.Sdk.Api; -var configuration = new Configuration(MyClientId, MyClientSecret); -var apiInstance = new ViewApi(configuration); - -var viewOptions = new ViewOptions +namespace Example { - FileInfo = new FileInfo - { - FilePath = "SampleFiles/sample.docx" - }, - ViewFormat = ViewOptions.ViewFormatEnum.HTML, - - Watermark = new Watermark + public class Example { - Text = "This is a watermark" + public void Main() + { + //TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required). + var appSid = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"; + var appKey = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; + + var api = new InfoApi(appSid, appKey); + + try + { + // Get supported file formats + var response = api.GetSupportedFileFormats(); + + foreach (var format in response.Formats) + { + Debug.Print(format.ToString()); + } + } + catch (Exception e) + { + Debug.Print("Something went wrong: " + e.Message); + } + } } -}; - -var response = apiInstance.CreateView(new CreateViewRequest(viewOptions)); +} ``` -## GroupDocs.Viewer Cloud SDKs in Popular Languages +## Licensing +All GroupDocs.Viewer Cloud SDKs are licensed under [MIT License](LICENSE). -| .NET | Java | PHP | Python | Ruby | Node.js | Android | -|---|---|---|---|---|---|---| -| [GitHub](https://github.com/groupdocs-viewer-cloud/groupdocs-viewer-cloud-dotnet) | [GitHub](https://github.com/groupdocs-viewer-cloud/groupdocs-viewer-cloud-java) | [GitHub](https://github.com/groupdocs-viewer-cloud/groupdocs-viewer-cloud-php) | [GitHub](https://github.com/groupdocs-viewer-cloud/groupdocs-viewer-cloud-python) | [GitHub](https://github.com/groupdocs-viewer-cloud/groupdocs-viewer-cloud-ruby) | [GitHub](https://github.com/groupdocs-viewer-cloud/groupdocs-viewer-cloud-node) | [GitHub](https://github.com/groupdocs-viewer-cloud/groupdocs-viewer-cloud-android) | -| [NuGet](https://www.nuget.org/packages/GroupDocs.Viewer-Cloud/) | [Maven](https://repository.groupdocs.cloud/webapp/#/artifacts/browse/tree/General/repo/com/groupdocs/groupdocs-viewer-cloud) | [Composer](https://packagist.org/packages/groupdocscloud/groupdocs-viewer-cloud) | [PIP](https://pypi.org/project/groupdocs-viewer-cloud/) | [GEM](https://rubygems.org/gems/groupdocs_viewer_cloud) | [NPM](https://www.npmjs.com/package/groupdocs-viewer-cloud) | [Maven](https://repository.groupdocs.cloud/webapp/#/artifacts/browse/tree/General/repo/com/groupdocs/groupdocs-viewer-cloud-android) | +## Resources ++ [**Website**](https://www.groupdocs.cloud) ++ [**Product Home**](https://products.groupdocs.cloud/viewer) ++ [**Documentation**](https://docs.groupdocs.cloud/display/viewercloud/Home) ++ [**Free Support Forum**](https://forum.groupdocs.cloud/c/viewer) ++ [**Blog**](https://blog.groupdocs.cloud/category/viewer) -[Home](https://www.groupdocs.cloud/) | [Product Page](https://products.groupdocs.cloud/viewer/net) | [Documentation](https://docs.groupdocs.cloud/viewer/) | [Live Demo](https://products.groupdocs.app/viewer/total) | [API Reference](https://apireference.groupdocs.cloud/viewer/) | [Code Samples](https://github.com/groupdocs-viewer-cloud/groupdocs-viewer-cloud-dotnet-samples) | [Blog](https://blog.groupdocs.cloud/category/viewer/) | [Free Support](https://forum.groupdocs.cloud/c/viewer) | [Free Trial](https://dashboard.groupdocs.cloud) +## Contact Us +Your feedback is very important to us. Please feel free to contact us using our [Support Forums](https://forum.groupdocs.cloud/c/viewer). \ No newline at end of file diff --git a/src/GroupDocs.Viewer.Cloud.Sdk.Test/Api/AuthApiTests.cs b/src/GroupDocs.Viewer.Cloud.Sdk.Test/Api/AuthApiTests.cs index d196115..6fb238d 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk.Test/Api/AuthApiTests.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk.Test/Api/AuthApiTests.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk.Test/Api/BaseApiTest.cs b/src/GroupDocs.Viewer.Cloud.Sdk.Test/Api/BaseApiTest.cs index aff1cc3..a5ed4db 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk.Test/Api/BaseApiTest.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk.Test/Api/BaseApiTest.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk.Test/Api/FileApiTests.cs b/src/GroupDocs.Viewer.Cloud.Sdk.Test/Api/FileApiTests.cs index c09340d..a010943 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk.Test/Api/FileApiTests.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk.Test/Api/FileApiTests.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk.Test/Api/FolderApiTests.cs b/src/GroupDocs.Viewer.Cloud.Sdk.Test/Api/FolderApiTests.cs index 8d095c7..6b96e0e 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk.Test/Api/FolderApiTests.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk.Test/Api/FolderApiTests.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk.Test/Api/Internal/TestFile.cs b/src/GroupDocs.Viewer.Cloud.Sdk.Test/Api/Internal/TestFile.cs index 7534887..0f3cd2d 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk.Test/Api/Internal/TestFile.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk.Test/Api/Internal/TestFile.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk.Test/Api/Internal/TestFiles.cs b/src/GroupDocs.Viewer.Cloud.Sdk.Test/Api/Internal/TestFiles.cs index ad81949..42ea5a0 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk.Test/Api/Internal/TestFiles.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk.Test/Api/Internal/TestFiles.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk.Test/Api/StorageApiTests.cs b/src/GroupDocs.Viewer.Cloud.Sdk.Test/Api/StorageApiTests.cs index 5800102..31376bf 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk.Test/Api/StorageApiTests.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk.Test/Api/StorageApiTests.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk.Test/Api/ViewerCreateViewApiTests.cs b/src/GroupDocs.Viewer.Cloud.Sdk.Test/Api/ViewerCreateViewApiTests.cs index eb6862f..fa880e7 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk.Test/Api/ViewerCreateViewApiTests.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk.Test/Api/ViewerCreateViewApiTests.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy @@ -24,6 +24,7 @@ // -------------------------------------------------------------------------------------------------------------------- using System; +using System.Collections.Generic; using GroupDocs.Viewer.Cloud.Sdk.Client; using GroupDocs.Viewer.Cloud.Sdk.Model; using GroupDocs.Viewer.Cloud.Sdk.Model.Requests; @@ -195,7 +196,7 @@ public void TestCreateViewWithSpreadsheetPaginateSheetsOption() // Act & Assert var viewResult = ViewApi.CreateView(request); - Assert.AreEqual(2, viewResult.Pages.Count); + Assert.AreEqual(3, viewResult.Pages.Count); } [Test] @@ -370,5 +371,29 @@ private void TestCompareOptions(TestFile testFile, RenderOptions options1, Rende Assert.AreNotEqual(response1.Length, response2.Length); } + + [Test] + public void TestCreateViewWithPdfViewOptions() + { + // Arrange + var testFile = TestFiles.OnePageDocx; + var viewOptions = new ViewOptions + { + FileInfo = testFile.ToFileInfo(), + ViewFormat = ViewOptions.ViewFormatEnum.PDF, + RenderOptions = new PdfOptions + { + PermissionsPassword = "12345", + Permissions = new List { "DenyPrinting" } + } + }; + + var request = new CreateViewRequest(viewOptions); + + // Act & Assert + var viewResult = ViewApi.CreateView(request); + + Assert.NotNull(viewResult.File.DownloadUrl); + } } } diff --git a/src/GroupDocs.Viewer.Cloud.Sdk.Test/Api/ViewerDeleteViewApiTests.cs b/src/GroupDocs.Viewer.Cloud.Sdk.Test/Api/ViewerDeleteViewApiTests.cs index cd0fa57..1f46a27 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk.Test/Api/ViewerDeleteViewApiTests.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk.Test/Api/ViewerDeleteViewApiTests.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk.Test/Api/ViewerFormatsApiTests.cs b/src/GroupDocs.Viewer.Cloud.Sdk.Test/Api/ViewerFormatsApiTests.cs index c668b45..40818f8 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk.Test/Api/ViewerFormatsApiTests.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk.Test/Api/ViewerFormatsApiTests.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk.Test/Api/ViewerGetInfoApiTests.cs b/src/GroupDocs.Viewer.Cloud.Sdk.Test/Api/ViewerGetInfoApiTests.cs index ecfb003..9081c8d 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk.Test/Api/ViewerGetInfoApiTests.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk.Test/Api/ViewerGetInfoApiTests.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy @@ -191,7 +191,7 @@ public void TestGetInfoWithSpreadsheetPaginateSheetsOption() // Act & Assert var infoResult = InfoApi.GetInfo(request); - Assert.AreEqual(2, infoResult.Pages.Count); + Assert.AreEqual(3, infoResult.Pages.Count); } [Test] diff --git a/src/GroupDocs.Viewer.Cloud.Sdk.Test/Config.cs b/src/GroupDocs.Viewer.Cloud.Sdk.Test/Config.cs index 45e1a40..4b9068e 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk.Test/Config.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk.Test/Config.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Api/FileApi.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Api/FileApi.cs index 0926dc1..24e3023 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Api/FileApi.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Api/FileApi.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy @@ -254,7 +254,7 @@ public FilesUploadResult UploadFile(UploadFileRequest request) } // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy @@ -338,7 +338,7 @@ public CopyFileRequest(string srcPath, string destPath, string srcStorageName = } // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy @@ -408,7 +408,7 @@ public DeleteFileRequest(string path, string storageName = null, string versionI } // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy @@ -478,7 +478,7 @@ public DownloadFileRequest(string path, string storageName = null, string versio } // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy @@ -562,7 +562,7 @@ public MoveFileRequest(string srcPath, string destPath, string srcStorageName = } // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Api/FolderApi.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Api/FolderApi.cs index bb21f93..49d33b2 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Api/FolderApi.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Api/FolderApi.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy @@ -238,7 +238,7 @@ public void MoveFolder(MoveFolderRequest request) } // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy @@ -315,7 +315,7 @@ public CopyFolderRequest(string srcPath, string destPath, string srcStorageName } // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy @@ -378,7 +378,7 @@ public CreateFolderRequest(string path, string storageName = null) } // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy @@ -448,7 +448,7 @@ public DeleteFolderRequest(string path, string storageName = null, bool? recursi } // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy @@ -511,7 +511,7 @@ public GetFilesListRequest(string path, string storageName = null) } // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Api/InfoApi.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Api/InfoApi.cs index 2da5ee0..55dbcae 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Api/InfoApi.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Api/InfoApi.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy @@ -131,7 +131,7 @@ public FormatsResult GetSupportedFileFormats() } // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Api/StorageApi.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Api/StorageApi.cs index bc20368..e7f2107 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Api/StorageApi.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Api/StorageApi.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy @@ -209,7 +209,7 @@ public StorageExist StorageExists(StorageExistsRequest request) } // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy @@ -265,7 +265,7 @@ public GetDiscUsageRequest(string storageName = null) } // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy @@ -328,7 +328,7 @@ public GetFileVersionsRequest(string path, string storageName = null) } // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy @@ -398,7 +398,7 @@ public ObjectExistsRequest(string path, string storageName = null, string versio } // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Api/ViewApi.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Api/ViewApi.cs index b35c7d4..0042b9d 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Api/ViewApi.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Api/ViewApi.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy @@ -130,7 +130,7 @@ public void DeleteView(DeleteViewRequest request) } // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy @@ -186,7 +186,7 @@ public CreateViewRequest(ViewOptions viewOptions) } // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Client/ApiException.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Client/ApiException.cs index a6bbe01..be3ff5b 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Client/ApiException.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Client/ApiException.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Client/ApiInvoker.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Client/ApiInvoker.cs index 1c19f88..054ea8b 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Client/ApiInvoker.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Client/ApiInvoker.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy @@ -46,6 +46,7 @@ public ApiInvoker(List requestHandlers, int timeout) this.AddDefaultHeader(GroupDocsClientVersionHeaderName, string.Format("{0}.{1}", sdkVersion.Major, sdkVersion.Minor)); this.requestHandlers = requestHandlers; this._timeout = timeout; + ServicePointManager.SecurityProtocol = (SecurityProtocolType) (0xc0 | 0x300 | 0xc00); } public string InvokeApi( diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Client/Configuration.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Client/Configuration.cs index f4865bb..aa2d356 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Client/Configuration.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Client/Configuration.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Client/FileInfo.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Client/FileInfo.cs index c25a3e1..17bdc88 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Client/FileInfo.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Client/FileInfo.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Client/IRequestHandler.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Client/IRequestHandler.cs index 887d0e1..dac5e47 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Client/IRequestHandler.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Client/IRequestHandler.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Client/NeedRepeatRequestException.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Client/NeedRepeatRequestException.cs index 4657c46..400056c 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Client/NeedRepeatRequestException.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Client/NeedRepeatRequestException.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Client/RequestHandlers/ApiErrorResponse.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Client/RequestHandlers/ApiErrorResponse.cs index 05b0a10..019496b 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Client/RequestHandlers/ApiErrorResponse.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Client/RequestHandlers/ApiErrorResponse.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Client/RequestHandlers/ApiExceptionRequestHandler.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Client/RequestHandlers/ApiExceptionRequestHandler.cs index 7e51325..6855a78 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Client/RequestHandlers/ApiExceptionRequestHandler.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Client/RequestHandlers/ApiExceptionRequestHandler.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy @@ -77,18 +77,16 @@ private void ThrowApiException(HttpWebResponse webResponse, Stream resultStream) { var responseData = responseReader.ReadToEnd(); - var authErrorResponse = SerializationHelper - .Deserialize(responseData, typeof(AuthErrorResponse)) as AuthErrorResponse; - if (authErrorResponse != null && authErrorResponse.ErrorMessage != null) + if (SerializationHelper + .Deserialize(responseData, typeof(AuthErrorResponse)) is AuthErrorResponse authErrorResponse && authErrorResponse.ErrorMessage != null) { throw new ApiException(statusCode, authErrorResponse.ErrorMessage); } - var apiErrorResponse = SerializationHelper - .Deserialize(responseData, typeof(ApiErrorResponse)) as ApiErrorResponse; - if (apiErrorResponse != null) + if (SerializationHelper + .Deserialize(responseData, typeof(Error)) is Error apiError) { - throw new ApiException(statusCode, apiErrorResponse.Error.Message); + throw new ApiException(statusCode, apiError.Message); } } diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Client/RequestHandlers/AuthErrorResponse.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Client/RequestHandlers/AuthErrorResponse.cs index 339f501..4f877d1 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Client/RequestHandlers/AuthErrorResponse.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Client/RequestHandlers/AuthErrorResponse.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Client/RequestHandlers/AuthRequestHandler.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Client/RequestHandlers/AuthRequestHandler.cs index 7c5b36a..0eef390 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Client/RequestHandlers/AuthRequestHandler.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Client/RequestHandlers/AuthRequestHandler.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Client/RequestHandlers/DebugLogRequestHandler.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Client/RequestHandlers/DebugLogRequestHandler.cs index 8e0d2be..47e68e8 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Client/RequestHandlers/DebugLogRequestHandler.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Client/RequestHandlers/DebugLogRequestHandler.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Client/RequestHandlers/Error.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Client/RequestHandlers/Error.cs index e4d7bb1..cf52a7b 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Client/RequestHandlers/Error.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Client/RequestHandlers/Error.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Client/SerializationHelper.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Client/SerializationHelper.cs index e40258d..96a3edb 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Client/SerializationHelper.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Client/SerializationHelper.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Client/StreamHelper.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Client/StreamHelper.cs index a38e009..0b368cc 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Client/StreamHelper.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Client/StreamHelper.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Client/UrlHelper.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Client/UrlHelper.cs index b4d1904..fe4703a 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Client/UrlHelper.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Client/UrlHelper.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Model/ArchiveOptions.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Model/ArchiveOptions.cs index 20d2986..dfc3cf1 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Model/ArchiveOptions.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Model/ArchiveOptions.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Model/ArchiveViewInfo.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Model/ArchiveViewInfo.cs index c464761..d4406b5 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Model/ArchiveViewInfo.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Model/ArchiveViewInfo.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Model/AttachmentInfo.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Model/AttachmentInfo.cs index 5f21a70..fe877cf 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Model/AttachmentInfo.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Model/AttachmentInfo.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Model/AttachmentView.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Model/AttachmentView.cs index 1d3d3b1..4f8f48a 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Model/AttachmentView.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Model/AttachmentView.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Model/CadOptions.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Model/CadOptions.cs index 745fe7e..1679219 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Model/CadOptions.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Model/CadOptions.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Model/CadViewInfo.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Model/CadViewInfo.cs index 492c0e9..fc04d39 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Model/CadViewInfo.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Model/CadViewInfo.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Model/Character.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Model/Character.cs index 4148fc2..8894ab6 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Model/Character.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Model/Character.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Model/DeleteViewOptions.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Model/DeleteViewOptions.cs index 2ba1956..1cf8c93 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Model/DeleteViewOptions.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Model/DeleteViewOptions.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Model/DiscUsage.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Model/DiscUsage.cs index bfdde0a..941b75b 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Model/DiscUsage.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Model/DiscUsage.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Model/EmailOptions.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Model/EmailOptions.cs index 0a1e741..683ded7 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Model/EmailOptions.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Model/EmailOptions.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Model/Error.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Model/Error.cs index 6581178..485b9dc 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Model/Error.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Model/Error.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Model/ErrorDetails.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Model/ErrorDetails.cs index 89a45e6..f0144bf 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Model/ErrorDetails.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Model/ErrorDetails.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Model/FieldLabel.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Model/FieldLabel.cs index e2be0cd..d731414 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Model/FieldLabel.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Model/FieldLabel.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Model/FileInfo.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Model/FileInfo.cs index f33ed24..80b78e3 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Model/FileInfo.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Model/FileInfo.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Model/FileVersion.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Model/FileVersion.cs index bbc9b99..be1f535 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Model/FileVersion.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Model/FileVersion.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Model/FileVersions.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Model/FileVersions.cs index 8e25587..63d826c 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Model/FileVersions.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Model/FileVersions.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Model/FilesList.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Model/FilesList.cs index 7985440..3c32022 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Model/FilesList.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Model/FilesList.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Model/FilesUploadResult.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Model/FilesUploadResult.cs index 2ab3374..463c4c1 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Model/FilesUploadResult.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Model/FilesUploadResult.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Model/Format.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Model/Format.cs index 30003ce..1cf6eee 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Model/Format.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Model/Format.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Model/FormatsResult.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Model/FormatsResult.cs index 53afd9a..98af27d 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Model/FormatsResult.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Model/FormatsResult.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Model/HtmlOptions.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Model/HtmlOptions.cs index 6571a3f..d2093a2 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Model/HtmlOptions.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Model/HtmlOptions.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Model/HtmlResource.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Model/HtmlResource.cs index 6c7b4e0..d170c50 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Model/HtmlResource.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Model/HtmlResource.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Model/ImageOptions.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Model/ImageOptions.cs index 345bf0b..4d71062 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Model/ImageOptions.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Model/ImageOptions.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Model/InfoResult.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Model/InfoResult.cs index 0f5da01..00f82ca 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Model/InfoResult.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Model/InfoResult.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Model/Layer.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Model/Layer.cs index 5a5e578..0a4543d 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Model/Layer.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Model/Layer.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Model/Layout.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Model/Layout.cs index b8f5fe0..59adb04 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Model/Layout.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Model/Layout.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Model/Line.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Model/Line.cs index 29be2e7..0ca8586 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Model/Line.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Model/Line.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Model/ObjectExist.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Model/ObjectExist.cs index b06eaae..4366bf1 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Model/ObjectExist.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Model/ObjectExist.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Model/OutlookOptions.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Model/OutlookOptions.cs index 60fca93..e6b33a2 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Model/OutlookOptions.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Model/OutlookOptions.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Model/OutlookViewInfo.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Model/OutlookViewInfo.cs index 5dc47a4..fd3ed0f 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Model/OutlookViewInfo.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Model/OutlookViewInfo.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Model/PageInfo.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Model/PageInfo.cs index 4479dde..ff169a8 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Model/PageInfo.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Model/PageInfo.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Model/PageRotation.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Model/PageRotation.cs index 3416422..3457008 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Model/PageRotation.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Model/PageRotation.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Model/PageView.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Model/PageView.cs index 90244f9..b3a6cad 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Model/PageView.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Model/PageView.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Model/PdfDocumentOptions.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Model/PdfDocumentOptions.cs index b609c77..7cbee59 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Model/PdfDocumentOptions.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Model/PdfDocumentOptions.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Model/PdfOptions.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Model/PdfOptions.cs index 5a355f6..5783c1b 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Model/PdfOptions.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Model/PdfOptions.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy @@ -38,44 +38,6 @@ namespace GroupDocs.Viewer.Cloud.Sdk.Model /// public class PdfOptions : RenderOptions { - /// - /// The PDF document permissions such as printing, modification and data extraction - /// - /// The PDF document permissions such as printing, modification and data extraction - [JsonConverter(typeof(StringEnumConverter))] - public enum PermissionsEnum - { - /// - /// Enum AllowAll for "AllowAll" - /// - AllowAll, - - /// - /// Enum DenyPrinting for "DenyPrinting" - /// - DenyPrinting, - - /// - /// Enum DenyModification for "DenyModification" - /// - DenyModification, - - /// - /// Enum DenyDataExtraction for "DenyDataExtraction" - /// - DenyDataExtraction, - - /// - /// Enum DenyAll for "DenyAll" - /// - DenyAll - } - - /// - /// The PDF document permissions such as printing, modification and data extraction - /// - public PermissionsEnum? Permissions { get; set; } - /// /// The quality of the JPG images contained by output PDF document; Valid values are between 1 and 100; Default value is 90 /// @@ -91,6 +53,11 @@ public enum PermissionsEnum /// public string PermissionsPassword { get; set; } + /// + /// The array of PDF document permissions. Allowed values are: AllowAll, DenyPrinting, DenyModification, DenyDataExtraction, DenyAll Default value is AllowAll, if now permissions are set. + /// + public List Permissions { get; set; } + /// /// Get the string presentation of the object /// diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Model/PdfViewInfo.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Model/PdfViewInfo.cs index 4c3e26f..bcb980c 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Model/PdfViewInfo.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Model/PdfViewInfo.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Model/ProjectManagementOptions.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Model/ProjectManagementOptions.cs index 34a616f..cd39612 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Model/ProjectManagementOptions.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Model/ProjectManagementOptions.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Model/ProjectManagementViewInfo.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Model/ProjectManagementViewInfo.cs index e75a293..3e7d03c 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Model/ProjectManagementViewInfo.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Model/ProjectManagementViewInfo.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Model/RenderOptions.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Model/RenderOptions.cs index 3b2a2e2..ff2ce3e 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Model/RenderOptions.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Model/RenderOptions.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Model/Resource.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Model/Resource.cs index d9e4dab..bd9481b 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Model/Resource.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Model/Resource.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Model/SpreadsheetOptions.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Model/SpreadsheetOptions.cs index fda427d..49c5359 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Model/SpreadsheetOptions.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Model/SpreadsheetOptions.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Model/StorageExist.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Model/StorageExist.cs index d4eac67..f51b28f 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Model/StorageExist.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Model/StorageExist.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Model/StorageFile.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Model/StorageFile.cs index 62c7fd3..d1b196f 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Model/StorageFile.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Model/StorageFile.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Model/TextElement.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Model/TextElement.cs index fb64189..6105fe1 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Model/TextElement.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Model/TextElement.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Model/Tile.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Model/Tile.cs index 31c0878..ea0ca6b 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Model/Tile.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Model/Tile.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Model/ViewOptions.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Model/ViewOptions.cs index c28cf9c..0645515 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Model/ViewOptions.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Model/ViewOptions.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Model/ViewResult.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Model/ViewResult.cs index 092209a..4926c62 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Model/ViewResult.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Model/ViewResult.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Model/Watermark.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Model/Watermark.cs index 94cee44..c74990e 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Model/Watermark.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Model/Watermark.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Model/Word.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Model/Word.cs index 77e51e1..3c2566f 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Model/Word.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Model/Word.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Model/WordProcessingOptions.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Model/WordProcessingOptions.cs index 261c0df..1f429b9 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Model/WordProcessingOptions.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Model/WordProcessingOptions.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/src/GroupDocs.Viewer.Cloud.Sdk/Properties/AssemblyInfo.cs b/src/GroupDocs.Viewer.Cloud.Sdk/Properties/AssemblyInfo.cs index 2ceb7e7..fdc9c0d 100644 --- a/src/GroupDocs.Viewer.Cloud.Sdk/Properties/AssemblyInfo.cs +++ b/src/GroupDocs.Viewer.Cloud.Sdk/Properties/AssemblyInfo.cs @@ -1,6 +1,6 @@ // -------------------------------------------------------------------------------------------------------------------- // -// Copyright (c) 2003-2020 Aspose Pty Ltd +// Copyright (c) 2003-2021 Aspose Pty Ltd // // // Permission is hereby granted, free of charge, to any person obtaining a copy