The API is completely independent of your operating system, database system or development language. We provide and support API SDKs in many development languages in order to make it even easier to integrate. You can see our available SDKs list here.
// For complete examples and data files, please go to https://github.com/groupdocs-annotation-cloud/groupdocs-annotation-cloud-dotnet-samplesstringMyAppKey="";// Get AppKey and AppSID from https://dashboard.groupdocs.cloudstringMyAppSid="";// Get AppKey and AppSID from https://dashboard.groupdocs.cloudvarconfiguration=newConfiguration(MyAppSid,MyAppKey);varapiInstance=newAnnotateApi(configuration);varfileInfo=newFileInfo{FilePath="one-page.docx"};AnnotationInfo[]annotations={newAnnotationInfo{Points=newList<Point>{newPoint{X=80,Y=730},newPoint{X=240,Y=730},newPoint{X=80,Y=650},newPoint{X=240,Y=650}},FontColor=65535,PageNumber=0,Type=AnnotationInfo.TypeEnum.TextStrikeout,Text="This is text strikeout annotation",CreatorName="Anonym A.",CreatedOn=DateTime.Now,Replies=newList<AnnotationReplyInfo>{newAnnotationReplyInfo{Comment="First comment",RepliedOn=DateTime.Now},newAnnotationReplyInfo{Comment="Second comment",RepliedOn=DateTime.Now}}},};varoptions=newAnnotateOptions{FileInfo=fileInfo,Annotations=annotations.ToList(),OutputPath="Output/output.docx"};varlink=apiInstance.Annotate(newAnnotateRequest(options));Console.WriteLine("AddTextStrikeoutAnnotation: Text Strikeout Annotation added: "+link.Title);
// For complete examples and data files, please go to https://github.com/groupdocs-annotation-cloud/groupdocs-annotation-cloud-java-samples
StringMyAppKey="";// Get AppKey and AppSID from https://dashboard.groupdocs.cloud
StringMyAppSid="";// Get AppKey and AppSID from https://dashboard.groupdocs.cloud
Configurationconfiguration=newConfiguration(MyAppSid,MyAppKey);AnnotateApiapiInstance=newAnnotateApi(configuration);// Create annotation/s.
AnnotationInfo[]annotations=newAnnotationInfo[1];annotations[0]=newAnnotationInfo();Point[]pt=newPoint[4];pt[0]=newPoint();pt[0].setX(80.0);pt[0].setY(730.0);pt[1]=newPoint();pt[1].setX(240.0);pt[1].setY(730.0);pt[2]=newPoint();pt[2].setX(80.0);pt[2].setY(650.0);pt[3]=newPoint();pt[3].setX(240.0);pt[3].setY(650.0);annotations[0].setPoints(Arrays.asList(pt));annotations[0].setPageNumber(0);annotations[0].setFontColor(1201033);annotations[0].setType(TypeEnum.TEXTSTRIKEOUT);annotations[0].setText("This is text strikeout annotation");annotations[0].setCreatorName("Anonym A.");// Create request object.
FileInfofileInfo=newFileInfo();fileInfo.setFilePath("Annotationdocs\\one-page.docx");AnnotateOptionsoptions=newAnnotateOptions();options.setFileInfo(fileInfo);options.setAnnotations(Arrays.asList(annotations));options.setOutputPath("Output/one-page-annotated.docx");AnnotateRequestrequest=newAnnotateRequest(options);// Executing api method.
AnnotationApiLinkresult=apiInstance.annotate(request);System.out.println("AddTextStrikeoutAnnotation: TextStrikeout Annotation added: "+result.getTitle());
// For complete examples and data files, please go to https://github.com/groupdocs-annotation-cloud/groupdocs-annotation-cloud-php-samples
useGroupDocs\Annotation\Model;useGroupDocs\Annotation\Model\Requests;$AppSid="";// Get AppKey and AppSID from https://dashboard.groupdocs.cloud
$AppKey="";// Get AppKey and AppSID from https://dashboard.groupdocs.cloud
$configuration=newGroupDocs\Annotation\Configuration();$configuration->setAppSid($AppSid);$configuration->setAppKey($AppKey);$apiInstance=newGroupDocs\Annotation\AnnotateApi($configuration);$a=newGroupDocs\Annotation\Model\AnnotationInfo();$pt1=newGroupDocs\Annotation\Model\Point();$pt1->setX(80);$pt1->setY(730);$pt2=newGroupDocs\Annotation\Model\Point();$pt2->setX(80);$pt2->setY(730);$pt3=newGroupDocs\Annotation\Model\Point();$pt3->setX(80);$pt3->setY(730);$pt4=newGroupDocs\Annotation\Model\Point();$pt4->setX(80);$pt4->setY(730);$a->setPoints([$pt1,$pt2,$pt3,$pt4]);$a->setPageNumber(0);$a->setFontColor(1201033);$a->setType(GroupDocs\Annotation\Model\AnnotationInfo::TYPE_TEXT_STRIKEOUT);$a->setText("This is text strikeout annotation");$a->setCreatorName("Anonym A.");$fileInfo=newGroupDocs\Annotation\Model\FileInfo();$fileInfo->setFilePath("annotationdocs\\one-page.docx");$options=newGroupDocs\Annotation\Model\AnnotateOptions();$options->setFileInfo($fileInfo);$options->setAnnotations([$a]);$options->setOutputPath("Output\\output.docx");$request=newGroupDocs\Annotation\Model\Requests\annotateRequest($options);$result=$apiInstance->annotate($request);echo"AddTextStrikeoutAnnotation: Text Strikeout Annotation added: ".$result->getHref();
// For complete examples and data files, please go to https://github.com/groupdocs-annotation-cloud/groupdocs-annotation-cloud-node-samples
global.annotation_cloud=require("groupdocs-annotation-cloud");global.appSid="XXXX-XXXX-XXXX-XXXX";// Get AppKey and AppSID from https://dashboard.groupdocs.cloud
global.appKey="XXXXXXXXXXXXXXXX";// Get AppKey and AppSID from https://dashboard.groupdocs.cloud
global.annotateApi=annotation_cloud.AnnotateApi.fromKeys(appSid,appKey);leta1=newannotation_cloud.AnnotationInfo();letp1=newannotation_cloud.Point();p1.x=80;p1.y=730;letp2=newannotation_cloud.Point();p2.x=240;p2.y=730;letp3=newannotation_cloud.Point();p3.x=80;p3.y=650;letp4=newannotation_cloud.Point();p4.x=240;p4.y=650;a1.points=[p1,p2,p3,p4];a1.pageNumber=0;a1.fontColor=65535;a1.fontSize=12;a1.type=annotation_cloud.AnnotationInfo.TypeEnum.Text;a1.text="This is text strikeout annotation";a1.creatorName="Anonym A.";letfileInfo=newannotation_cloud.FileInfo();fileInfo.filePath="annotationdocs\\one-page.docx";letoptions=newannotation_cloud.AnnotateOptions();options.fileInfo=fileInfo;options.annotations=[a1];options.outputPath="Output/output.docx";letresult=awaitannotateApi.annotate(newannotation_cloud.AnnotateRequest(options));console.log("AddTextStrikeoutAnnotation: Text Strikeout Annotation added: "+result.href);
# For complete examples and data files, please go to https://github.com/groupdocs-annotation-cloud/groupdocs-annotation-cloud-python-samplesimportgroupdocs_annotation_cloudapp_sid="XXXX-XXXX-XXXX-XXXX"# Get AppKey and AppSID from https://dashboard.groupdocs.cloudapp_key="XXXXXXXXXXXXXXXX"# Get AppKey and AppSID from https://dashboard.groupdocs.cloudapi=groupdocs_annotation_cloud.AnnotateApi.from_keys(app_sid,app_key)a1=groupdocs_annotation_cloud.AnnotationInfo()p1=groupdocs_annotation_cloud.Point()p1.x=80p1.y=730p2=groupdocs_annotation_cloud.Point()p2.x=240p2.y=730p3=groupdocs_annotation_cloud.Point()p3.x=80p3.y=650p4=groupdocs_annotation_cloud.Point()p4.x=240p4.y=650a1.points=[p1,p2,p3,p4]a1.page_number=0a1.font_color=1201033a1.opacity=0.7a1.type="TextStrikeout"a1.text="This is text strikeout annotation"a1.creator_name="Anonym A."file_info=FileInfo()file_info.file_path="annotationdocs\\one-page.docx"options=AnnotateOptions()options.file_info=file_infooptions.annotations=[a1]options.output_path="Output\\output.docx"request=AnnotateRequest(options)result=api.annotate(request)print("AddTextStrikeoutAnnotation: Text Strikeout Annotation added: "+result['href'])
# For complete examples and data files, please go to https://github.com/groupdocs-annotation-cloud/groupdocs-annotation-cloud-ruby-samplesrequire'groupdocs_annotation_cloud'$app_sid="XXXX-XXXX-XXXX-XXXX"# Get AppKey and AppSID from https://dashboard.groupdocs.cloud$app_key="XXXXXXXXXXXXXXXX"# Get AppKey and AppSID from https://dashboard.groupdocs.cloud$api=GroupDocsAnnotationCloud::AnnotateApi.from_keys($app_sid,$app_key)$a1=GroupDocsAnnotationCloud::AnnotationInfo.new$p1=GroupDocsAnnotationCloud::Point.new$p1.x=1$p1.y=1$p2=GroupDocsAnnotationCloud::Point.new$p2.x=1$p2.y=1$p3=GroupDocsAnnotationCloud::Point.new$p3.x=1$p3.y=1$p4=GroupDocsAnnotationCloud::Point.new$p4.x=1$p4.y=1$a1.points=[$p1,$p2,$p3,$p4]$a1.page_number=0$a1.font_color=1201033$a1.font_size=12$a1.opacity=0.7$a1.type="TextStrikeout"$a1.text="This is text strikeout annotation"$a1.creator_name="Anonym A."file_info=GroupDocsAnnotationCloud::FileInfo.new()file_info.file_path="annotationdocs\\one-page.docx"options=GroupDocsAnnotationCloud::AnnotateOptions.new()options.file_info=file_infooptions.annotations=[$a1]options.output_path="Output/output.docx"$request=GroupDocsAnnotationCloud::AnnotateRequest.new(options)# Executing an API.result=$api.annotate($request)puts("AddTextStrikeoutAnnotation: Text Strikeout Annotation added: "+result.href)
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.