-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
13d6ef5
commit d560e01
Showing
85 changed files
with
196 additions
and
217 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/GroupDocs.Viewer.Cloud.Sdk.Test/Api/ViewerDeleteViewApiTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/GroupDocs.Viewer.Cloud.Sdk.Test/Api/ViewerFormatsApiTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.