File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
android/src/main/java/com/pspdfkit/react/helper
ios/RCTPSPDFKit/Converters Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,9 @@ public static EnumSet<AnnotationType> getAnnotationTypeFromString(@Nullable fina
64
64
if ("pspdfkit/text" .equalsIgnoreCase (type )) {
65
65
return EnumSet .of (AnnotationType .FREETEXT );
66
66
}
67
+ if ("pspdfkit/stamp" .equalsIgnoreCase (type )) {
68
+ return EnumSet .of (AnnotationType .STAMP );
69
+ }
67
70
return EnumSet .noneOf (AnnotationType .class );
68
71
}
69
72
}
Original file line number Diff line number Diff line change @@ -54,10 +54,14 @@ + (PSPDFAnnotationType)annotationTypeFromInstantJSONType:(NSString *)type {
54
54
return PSPDFAnnotationTypeLine;
55
55
} else if ([type isEqualToString: @" pspdfkit/shape/polygon" ]) {
56
56
return PSPDFAnnotationTypePolygon;
57
+ } else if ([type isEqualToString: @" pspdfkit/shape/polyline" ]) {
58
+ return PSPDFAnnotationTypePolyLine;
57
59
} else if ([type isEqualToString: @" pspdfkit/shape/rectangle" ]) {
58
60
return PSPDFAnnotationTypeSquare;
59
61
} else if ([type isEqualToString: @" pspdfkit/text" ]) {
60
62
return PSPDFAnnotationTypeFreeText;
63
+ } else if ([type isEqualToString: @" pspdfkit/stamp" ]) {
64
+ return PSPDFAnnotationTypeStamp;
61
65
} else {
62
66
return PSPDFAnnotationTypeUndefined;
63
67
}
You can’t perform that action at this time.
0 commit comments