@@ -848,6 +848,9 @@ class Annotation {
848
848
* @param {Array } lineEndings - The line endings array.
849
849
*/
850
850
setLineEndings ( lineEndings ) {
851
+ if ( typeof PDFJSDev !== "undefined" && PDFJSDev . test ( "MOZCENTRAL" ) ) {
852
+ throw new Error ( "Not implemented: setLineEndings" ) ;
853
+ }
851
854
this . lineEndings = [ "None" , "None" ] ; // The default values.
852
855
853
856
if ( Array . isArray ( lineEndings ) && lineEndings . length === 2 ) {
@@ -3932,8 +3935,10 @@ class LineAnnotation extends MarkupAnnotation {
3932
3935
const lineCoordinates = dict . getArray ( "L" ) ;
3933
3936
this . data . lineCoordinates = Util . normalizeRect ( lineCoordinates ) ;
3934
3937
3935
- this . setLineEndings ( dict . getArray ( "LE" ) ) ;
3936
- this . data . lineEndings = this . lineEndings ;
3938
+ if ( typeof PDFJSDev === "undefined" || ! PDFJSDev . test ( "MOZCENTRAL" ) ) {
3939
+ this . setLineEndings ( dict . getArray ( "LE" ) ) ;
3940
+ this . data . lineEndings = this . lineEndings ;
3941
+ }
3937
3942
3938
3943
if ( ! this . appearance ) {
3939
3944
// The default stroke color is black.
@@ -4107,7 +4112,10 @@ class PolylineAnnotation extends MarkupAnnotation {
4107
4112
this . data . hasOwnCanvas = this . data . noRotate ;
4108
4113
this . data . vertices = [ ] ;
4109
4114
4110
- if ( ! ( this instanceof PolygonAnnotation ) ) {
4115
+ if (
4116
+ ( typeof PDFJSDev === "undefined" || ! PDFJSDev . test ( "MOZCENTRAL" ) ) &&
4117
+ ! ( this instanceof PolygonAnnotation )
4118
+ ) {
4111
4119
// Only meaningful for polyline annotations.
4112
4120
this . setLineEndings ( dict . getArray ( "LE" ) ) ;
4113
4121
this . data . lineEndings = this . lineEndings ;
0 commit comments