Skip to content
This repository was archived by the owner on Oct 18, 2018. It is now read-only.

Commit 74b9937

Browse files
committed
Specify default annotation properties
1 parent b46dad3 commit 74b9937

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/main/java/com/groupdocs/ui/servlet/AddAnnotationServlet.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import com.fasterxml.jackson.databind.ObjectMapper;
44
import com.groupdocs.annotation.domain.AnnotationInfo;
55
import com.groupdocs.annotation.domain.results.CreateAnnotationResult;
6-
import com.groupdocs.annotation.domain.results.ListAnnotationsResult;
76
import com.groupdocs.annotation.handler.AnnotationImageHandler;
87
import com.groupdocs.annotation.handler.input.IDocumentDataHandler;
98
import com.groupdocs.annotation.handler.input.dataobjects.Document;

src/main/webapp/app.directive.gdxAnnoPage.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,12 @@
351351
}
352352

353353
if (ant.type) {
354-
ant.pageNumber = attrs.number;
354+
ant = angular.merge({}, ant, {
355+
penColor: 0x010101,
356+
penStyle: 1,
357+
penWidth: 2,
358+
pageNumber: attrs.number
359+
});
355360
var a = new AnnotationAddFactory(ant);
356361
a.$save({filename: $rootScope.selectedFile}, function (response) {
357362
currentObject.name = response.guid;

0 commit comments

Comments
 (0)