<dependency>
    <groupId>com.groupdocs</groupId>
    <artifactId>groupdocs-annotation-cloud</artifactId>
    <version>21.2</version>
</dependency>
copied!  
compile(group: 'com.groupdocs', name: 'groupdocs-annotation-cloud', version: '21.2')
copied!  
<dependency org="com.groupdocs" name="groupdocs-annotation-cloud" rev="21.2">
    <artifact name="groupdocs-annotation-cloud" ext="jar"/>
</dependency>
copied!  
libraryDependencies += "com.groupdocs" % "groupdocs-annotation-cloud" % "21.2"
copied!  

ドキュメント注釈 Java Cloud REST API

banner

Product Page | Docs | Live Demos | Swagger UI | Code Samples | Blog | Free Support | {{ハイパーリンク8}}

GroupDocs.Annotation Cloud SDK for Java は、サードパーティ ソフトウェアをインストールしなくても動作するクラウド Document Annotator Java アプリを構築するのに役立ちます。 GroupDocs.Annotation Cloud REST APIs のラッパーです。

クラウド ドキュメントの注釈機能

サポートされているクラウド アノテーションのタイプ

  • Area Annotation: クラウド ドキュメント内のページで四角形を使用して領域をマークします
  • Distance Annotation: クラウド ドキュメント内の注釈としてマークされた直線上の 2 点間の距離。
  • Ellipse Annotation: ドキュメントの一部に楕円形の注釈を付けます。
  • Image Annotation: 目的のクラウド ドキュメント ページのコンテンツに注釈を付けるための画像オーバーレイ 注釈。
  • Link Annotation: リモート リソースに向けられたハイパーリンク アノテーション。
  • Multiple Annotation: 複数の注釈を同じクラウド ドキュメントに追加します。
  • Point Annotation: クラウド ドキュメント内の目的のポイントに注釈メモ/付箋を追加します。
  • Polyline Annotation: 図形またはフリーハンドの線を使用して描画できる注釈。
  • Resource Redaction Annotation: クラウド ドキュメント内のテキストを非表示/編集するために追加できる固定位置の黒い四角形。
  • Squiggly Annotation: 注目を集めたいテキストの下に波線を追加します。

サポートされている Cloud Annotation ドキュメント形式

Microsoft Word®: DOC、DOCX、DOCM、DOT、DOTX、DOTM、RTF、TXT
OpenOffice Writer®: ODT、OTT
Microsoft Excel®: XLS、XLSX、XLSB
Microsoft PowerPoint®: PPT、PPTX、PPSX
OpenOffice Impress®: ODP、OTP
Microsoft Visio®: VSD、VDX、VSS、VSDM
Microsoft Outlook®: MSG、EML、EMLX
AutoCAD: CAD
画像: DJVU、JPEG、TIFF、BMP、GIF (アニメーションなしの静止画像)
医用画像処理: DICOM
マークアップ: HTML、MHTML
固定レイアウト: PDF
メタ ファイル: EMF、WMF

要件

API クライアント ライブラリを構築するには、次のものが必要です。

  1. Java 1.7+
  2. メイヴン

前提条件

GroupDocs.Annotation Cloud SDK for Java を使用するには、GroupDocs Cloud でアカウントを登録し、Cloud Dashboard でクライアント ID とクライアント シークレットを検索/作成する必要があります。無料枠あります。詳細については、GroupDocs Cloud Pricing を参照してください。

Maven から GroupDocs.Annotation-Cloud をインストールします

GroupDocs Cloud リポジトリをアプリケーションの pom.xml に追加します

<repository>
    <id>repository.groupdocs.cloud</id>
    <name>repository.groupdocs.cloud</name>
    <url>https://releases.groupdocs.cloud/java/repo/</url>
</repository>

ソースからインストール

API クライアント ライブラリをローカルの Maven リポジトリにインストールするには、次のコマンドを実行するだけです。

mvn clean install

代わりにリモートの Maven リポジトリにデプロイするには、リポジトリの設定を構成し、次を実行します。

mvn clean deploy

詳細については、OSSRH Guide を参照してください。

Maven ユーザー

この依存関係をプロジェクトの POM に追加します。

<dependency>
    <groupId>com.groupdocs</groupId>
    <artifactId>groupdocs-annotation-cloud</artifactId>
    <version>22.2</version>
    <type>pom</type>
</dependency>

その他

最初に、次を実行して JAR を生成します。

mvn clean package

次に、次の JAR を手動でインストールします。

  • target/groupdocs-annotation-cloud-22.2.jar
  • target/lib/*.jar

始めましょう

Quick Startの指示に従ってください。

ポイント注釈を追加するサンプル Java コード

// For complete examples and data files, please go to https://github.com/groupdocs-annotation-cloud/groupdocs-annotation-cloud-java-samples
String MyAppKey = ""; // Get AppKey and AppSID from https://dashboard.groupdocs.cloud
String MyAppSid = ""; // Get AppKey and AppSID from https://dashboard.groupdocs.cloud
  
Configuration configuration = new Configuration(MyAppSid, MyAppKey);
  
AnnotateApi apiInstance = new AnnotateApi(configuration);
 
// Create annotation/s.
AnnotationInfo[] annotations = new AnnotationInfo[1];
annotations[0] = new AnnotationInfo();
 
Point pt = new Point();
pt.setX(1.0);
pt.setY(1.0);
annotations[0].setAnnotationPosition(pt);
 
Rectangle r = new Rectangle();
r.setX(100.0);
r.setY(100.0);
r.setWidth(200.0);
r.setHeight(100.0);
 
annotations[0].setBox(r);
annotations[0].setPageNumber(0);
annotations[0].setType(TypeEnum.POINT);
annotations[0].setText("This is point annotation");
annotations[0].setCreatorName("Anonym A.");
 
// Create request object.
FileInfo fileInfo = new FileInfo();
fileInfo.setFilePath("Annotationdocs\\one-page.docx");
 
AnnotateOptions options = new AnnotateOptions();
options.setFileInfo(fileInfo);
options.setAnnotations(Arrays.asList(annotations));
options.setOutputPath("Output/one-page-annotated.docx");
 
AnnotateRequest request = new AnnotateRequest(options);
 
// Executing api method.
AnnotationApiLink result = apiInstance.annotate(request);
 
System.out.println("AddPointAnnotation: Point Annotation added: " + result.getTitle());

承認と認証

API 用に定義された Authentication schemes は次のとおりです。

JWT

Product Page | Docs | Live Demos | Swagger UI | Code Samples | Blog | Free Support | {{ハイパーリンク8}}

VersionRelease Date
22.22022年2月7日
18.42022年1月25日
18.72022年1月25日
21.22022年1月25日
21.62022年1月25日
20.102020年10月14日
19.52019年5月15日