1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00

Implement free text annotations

This commit is contained in:
Tim van der Meij 2019-04-13 18:45:22 +02:00
parent 62dc431af6
commit ae2a4dc3dd
No known key found for this signature in database
GPG key ID: 8C3FD2925A5F2762
6 changed files with 47 additions and 0 deletions

View file

@ -92,6 +92,9 @@ class AnnotationFactory {
case 'Popup':
return new PopupAnnotation(parameters);
case 'FreeText':
return new FreeTextAnnotation(parameters);
case 'Line':
return new LineAnnotation(parameters);
@ -964,6 +967,14 @@ class PopupAnnotation extends Annotation {
}
}
class FreeTextAnnotation extends MarkupAnnotation {
constructor(parameters) {
super(parameters);
this.data.annotationType = AnnotationType.FREETEXT;
}
}
class LineAnnotation extends MarkupAnnotation {
constructor(parameters) {
super(parameters);