If so you can download any of the below versions for testing. The product will function as normal except for an evaluation limitation. At the time of purchase we provide a license file via email that will allow the product to work in its full capacity. If you would also like an evaluation license to test without any restrictions for 30 days, please follow the directions provided here.
If you experience errors, when you try to download a file, make sure your network policies (enforced by your company or ISP) allow downloading ZIP and/or MSI files.

インストール
パッケージは nuget.org で公開されています。パッケージ マネージャー コンソールで次のコマンドを実行してインストールできます。
NuGet\Install-Package GroupDocs.Annotation-Cloud

要件
- .NET Framework 2.0 または .NET Standard 2.0
- NuGet
- .NET Framework 2.0 を対象とする場合の System.Web
- GroupDocs Cloud の資格情報 — ダッシュボードの Client ID and Client Secret
クイック スタート
API 資格情報を取得する
GroupDocs.Annotation Cloud を使用するには、GroupDocs.Cloud ダッシュボード で登録し、Client ID と Client Secret を取得します。
API を初期化する
次のコードで GroupDocs.Annotation Cloud SDK for .NET の使用を開始します。
using GroupDocs.Annotation.Cloud.Sdk.Api;
using GroupDocs.Annotation.Cloud.Sdk.Client;
string MyClientId = "YourClientId";
string MyClientSecret = "YourClientSecret";
var config = new Configuration(MyClientId, MyClientSecret);
config.ApiBaseUrl = "https://api.groupdocs.cloud";
var apiInstance = new AnnotateApi(config);
完全な例は Constants.cs を参照してください。
テキストの強調表示を追加する
この例では、クラウド ストレージ内の Word 文書にテキストの強調表示を追加します。
using System;
using System.Collections.Generic;
using System.Linq;
using GroupDocs.Annotation.Cloud.Sdk.Api;
using GroupDocs.Annotation.Cloud.Sdk.Client;
using GroupDocs.Annotation.Cloud.Sdk.Model;
using GroupDocs.Annotation.Cloud.Sdk.Model.Requests;
var config = new Configuration("YourClientId", "YourClientSecret");
config.ApiBaseUrl = "https://api.groupdocs.cloud";
var apiInstance = new AnnotateApi(config);
var options = new AnnotateOptions
{
FileInfo = new FileInfo { FilePath = "one-page.docx" },
Annotations = new List<AnnotationInfo>
{
new AnnotationInfo
{
Points = new List<Point>
{
new Point { X = 80, Y = 730 }, new Point { X = 240, Y = 730 },
new Point { X = 80, Y = 650 }, new Point { X = 240, Y = 650 }
},
BackgroundColor = 65535,
PageNumber = 0,
Type = AnnotationInfo.TypeEnum.TextHighlight,
Text = "This is text highlight annotation",
CreatorName = "Anonym A."
}
},
OutputPath = "Output/output.docx"
};
var link = apiInstance.Annotate(new AnnotateRequest(options));
Console.WriteLine("AddTextHighlightAnnotation: Text highlight Annotation added: " + link.Title);
完全な例は AddTextHighlightAnnotation.cs を参照してください。
領域の注釈を追加する
この例では、最初のページに領域の注釈を追加します。
using System.Collections.Generic;
using System.Linq;
using GroupDocs.Annotation.Cloud.Sdk.Api;
using GroupDocs.Annotation.Cloud.Sdk.Client;
using GroupDocs.Annotation.Cloud.Sdk.Model;
using GroupDocs.Annotation.Cloud.Sdk.Model.Requests;
var config = new Configuration("YourClientId", "YourClientSecret");
config.ApiBaseUrl = "https://api.groupdocs.cloud";
var apiInstance = new AnnotateApi(config);
var options = new AnnotateOptions
{
FileInfo = new FileInfo { FilePath = "one-page.docx" },
Annotations = new List<AnnotationInfo>
{
new AnnotationInfo
{
AnnotationPosition = new Point { X = 1, Y = 1 },
Box = new Rectangle { X = 100, Y = 100, Width = 100, Height = 100 },
PageNumber = 0,
Type = AnnotationInfo.TypeEnum.Area,
Text = "This is area annotation",
CreatorName = "Anonym A."
}
},
OutputPath = "Output/output.docx"
};
var link = apiInstance.Annotate(new AnnotateRequest(options));
Console.WriteLine("AddAreaAnnotation: Area Annotation added: " + link.Title);
完全な例は AddAreaAnnotation.cs を参照してください。
注釈を削除する
この例では、注釈 1、2、3 を削除します。
using System.Collections.Generic;
using GroupDocs.Annotation.Cloud.Sdk.Api;
using GroupDocs.Annotation.Cloud.Sdk.Client;
using GroupDocs.Annotation.Cloud.Sdk.Model;
using GroupDocs.Annotation.Cloud.Sdk.Model.Requests;
var config = new Configuration("YourClientId", "YourClientSecret");
config.ApiBaseUrl = "https://api.groupdocs.cloud";
var apiInstance = new AnnotateApi(config);
var options = new RemoveOptions
{
FileInfo = new FileInfo { FilePath = "one-page.docx" },
AnnotationIds = new List<int?> { 1, 2, 3 },
OutputPath = "Output/output.docx"
};
var link = apiInstance.RemoveAnnotations(new RemoveAnnotationsRequest(options));
Console.WriteLine("DeleteAnnotations: Annotations deleted: " + link.Title);
完全な例は DeleteAnnotations.cs を参照してください。
注釈を抽出する
この例では、文書から注釈を読み取ります。
using GroupDocs.Annotation.Cloud.Sdk.Api;
using GroupDocs.Annotation.Cloud.Sdk.Client;
using GroupDocs.Annotation.Cloud.Sdk.Model;
using GroupDocs.Annotation.Cloud.Sdk.Model.Requests;
var config = new Configuration("YourClientId", "YourClientSecret");
config.ApiBaseUrl = "https://api.groupdocs.cloud";
var apiInstance = new AnnotateApi(config);
var response = apiInstance.Extract(new ExtractRequest(new FileInfo { FilePath = "input.docx" }));
Console.WriteLine("ExtractAnnotations: annotations count = " + response.Count);
完全な例は ExtractAnnotations.cs を参照してください。
サポートされるファイル形式を取得する
annotation API が受け付ける形式を取得します。
using GroupDocs.Annotation.Cloud.Sdk.Api;
using GroupDocs.Annotation.Cloud.Sdk.Client;
var config = new Configuration("YourClientId", "YourClientSecret");
config.ApiBaseUrl = "https://api.groupdocs.cloud";
var apiInstance = new InfoApi(config);
var response = apiInstance.GetSupportedFileFormats();
Console.WriteLine("GetSupportedFormats: formats count = " + response.Formats.Count);
完全な例は GetSupportedFormats.cs を参照してください。
GitHub の例
GroupDocs.Annotation Cloud .NET Examples リポジトリには、次を扱うすぐに実行できる例があります。
| Category | Examples |
|---|
| 追加 | 領域、矢印、距離、楕円、画像、リンク、点、折れ線、テキスト強調、下線、取り消し線、墨消し、透かし |
| 管理 | 注釈の削除、注釈の抽出、直接注釈 |
| Info | 文書情報、サポートされる形式 |
| プレビュー | ページの取得、ページの削除 |
例の実行方法
- 例のリポジトリ をクローンまたはダウンロードします
- Visual Studio 2017 以降で
Examples/GroupDocs.Annotation.Cloud.Examples.sln を開きます - ソリューションを右クリックし、Enable NuGet Package Restore を選択します
Examples/GroupDocs.Annotation.Cloud.Examples/Program.cs を編集し、Constants.MyClientId と Constants.MyClientSecret を設定します- ビルドして実行します
詳細は Getting Started を参照してください。
