mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Implement support for stamp annotations
This commit is contained in:
parent
3be941d982
commit
400e4aae0e
6 changed files with 48 additions and 0 deletions
|
@ -99,6 +99,9 @@ class AnnotationFactory {
|
|||
case 'StrikeOut':
|
||||
return new StrikeOutAnnotation(parameters);
|
||||
|
||||
case 'Stamp':
|
||||
return new StampAnnotation(parameters);
|
||||
|
||||
case 'FileAttachment':
|
||||
return new FileAttachmentAnnotation(parameters);
|
||||
|
||||
|
@ -946,6 +949,15 @@ class StrikeOutAnnotation extends Annotation {
|
|||
}
|
||||
}
|
||||
|
||||
class StampAnnotation extends Annotation {
|
||||
constructor(parameters) {
|
||||
super(parameters);
|
||||
|
||||
this.data.annotationType = AnnotationType.STAMP;
|
||||
this._preparePopup(parameters.dict);
|
||||
}
|
||||
}
|
||||
|
||||
class FileAttachmentAnnotation extends Annotation {
|
||||
constructor(parameters) {
|
||||
super(parameters);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue