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

Belge Açıklama Java Cloud REST API

main-banner

Product Page | Docs | Live Demos | Swagger UI | Code Samples | Blog | Free Support | Free Trial

GroupDocs.Annotation Cloud SDK for Java, herhangi bir 3. taraf yazılımı yüklemeden çalışan bulut Document Annotator Java Uygulamaları oluşturmanıza yardımcı olur. GroupDocs.Annotation Cloud REST APIs etrafındaki bir sarmalayıcıdır.

Bulut Belge Ek Açıklama Özellikleri

Desteklenen Bulut Ek Açıklama Türleri

  • Area Annotation: Bulut belgesindeki bir sayfada dikdörtgen kullanarak bir alanı işaretleyin
  • Distance Annotation: Bir bulut belgesinde ek açıklama olarak işaretlenmiş düz bir çizgideki iki nokta arasındaki mesafe.
  • Ellipse Annotation: Belgenin bir bölümünü eliptik bir notla işaretleyin.
  • Image Annotation: İstenen bulut belge sayfası içeriğine açıklama eklemek için görüntü bindirme notu.
  • Link Annotation: Uzak bir kaynağa yönlendirilen bir köprü ek açıklaması.
  • Multiple Annotation: Aynı bulut belgesine birden çok açıklama ekler.
  • Point Annotation: Bulut belgesinde istenen noktaya açıklama notu / yapışkan not ekler.
  • Polyline Annotation: Şekiller veya serbest çizgiler kullanarak çizebileceğiniz açıklama.
  • Resource Redaction Annotation: Bir bulut belgesindeki herhangi bir metni gizlemek/düzeltmek için ekleyebileceğiniz sabit konumlu siyah bir dikdörtgen.
  • Squiggly Annotation: Dikkat çekmek istediğiniz metnin altına dalgalı bir çizgi ekler.

Desteklenen Bulut Ek Açıklama Belge Biçimleri

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
Resimler: DJVU, JPEG, TIFF, BMP, GIF (animasyonsuz statik resimler)
Tıbbi Görüntüleme: DICOM
İşaretleme: HTML, MHTML
Sabit Düzen: PDF
Meta Dosyaları: EMF, WMF

Gereksinimler

API istemci kitaplığının oluşturulması şunları gerektirir:

  1. Java 1.7+
  2. Uzman

Önkoşullar

GroupDocs.Annotation Cloud SDK for Java’yı kullanmak için GroupDocs Cloud ile bir hesap kaydetmeniz ve Cloud Dashboard adresinde İstemci Kimliği ve İstemci Sırrı aramanız/oluşturmanız gerekir. Ücretsiz kontenjan mevcuttur. Daha fazla ayrıntı için bkz. GroupDocs Cloud Pricing.

Maven’den GroupDocs.Annotation-Cloud’u kurun

GroupDocs Bulut deposunu uygulamanıza pom.xml ekleyin

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

Kaynaktan yükleyin

API istemci kitaplığını yerel Maven deponuza yüklemek için aşağıdakileri yürütmeniz yeterlidir:

mvn clean install

Bunun yerine uzak bir Maven deposuna konuşlandırmak için deponun ayarlarını yapılandırın ve şunu çalıştırın:

mvn clean deploy

Daha fazla bilgi için OSSRH Guide konusuna bakın.

Maven kullanıcıları

Bu bağımlılığı projenizin POM’una ekleyin:

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

Diğerleri

İlk önce aşağıdakileri yürüterek JAR’ı oluşturun:

mvn clean package

Ardından aşağıdaki JAR’ları manuel olarak kurun:

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

Başlamak

Lütfen Quick Start talimatlarını uygulayın.

Nokta Açıklama Eklemek için Örnek Java Kodu

// 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());

Yetkilendirme ve Kimlik Doğrulama

API için tanımlanan Authentication schemes aşağıdaki gibidir:

JWT

Product Page | Docs | Live Demos | Swagger UI | Code Samples | Blog | Free Support | Free Trial

VersionRelease Date
22.27 Şubat 2022
18.425 Ocak 2022
18.725 Ocak 2022
21.225 Ocak 2022
21.625 Ocak 2022
20.1014 Ekim 2020
19.515 Mayıs 2019