@ -20772,8 +20772,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
@@ -20772,8 +20772,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
}
} ;
} ( ) ;
exports . version = '1.7.292 ' ;
exports . build = 'fde609 e8' ;
exports . version = '1.7.294 ' ;
exports . build = '8aad33 e8' ;
exports . getDocument = getDocument ;
exports . PDFDataRangeTransport = PDFDataRangeTransport ;
exports . PDFWorker = PDFWorker ;
@ -39533,8 +39533,8 @@ if (!globalScope.PDFJS) {
@@ -39533,8 +39533,8 @@ if (!globalScope.PDFJS) {
globalScope . PDFJS = { } ;
}
var PDFJS = globalScope . PDFJS ;
PDFJS . version = '1.7.292 ' ;
PDFJS . build = 'fde609 e8' ;
PDFJS . version = '1.7.294 ' ;
PDFJS . build = '8aad33 e8' ;
PDFJS . pdfBug = false ;
if ( PDFJS . verbosity !== undefined ) {
sharedUtil . setVerbosityLevel ( PDFJS . verbosity ) ;
@ -39682,6 +39682,7 @@ var Dict = corePrimitives.Dict;
@@ -39682,6 +39682,7 @@ var Dict = corePrimitives.Dict;
var isDict = corePrimitives . isDict ;
var isName = corePrimitives . isName ;
var isRef = corePrimitives . isRef ;
var isStream = corePrimitives . isStream ;
var Stream = coreStream . Stream ;
var ColorSpace = coreColorSpace . ColorSpace ;
var Catalog = coreObj . Catalog ;
@ -39775,30 +39776,13 @@ var Annotation = function AnnotationClosure() {
@@ -39775,30 +39776,13 @@ var Annotation = function AnnotationClosure() {
rect [ 1 ] - minY * yRatio
] ;
}
function getDefaultAppearance ( dict ) {
var appearanceState = dict . get ( 'AP' ) ;
if ( ! isDict ( appearanceState ) ) {
return ;
}
var appearance ;
var appearances = appearanceState . get ( 'N' ) ;
if ( isDict ( appearances ) ) {
var as = dict . get ( 'AS' ) ;
if ( as && appearances . has ( as . name ) ) {
appearance = appearances . get ( as . name ) ;
}
} else {
appearance = appearances ;
}
return appearance ;
}
function Annotation ( params ) {
var dict = params . dict ;
this . setFlags ( dict . get ( 'F' ) ) ;
this . setRectangle ( dict . getArray ( 'Rect' ) ) ;
this . setColor ( dict . getArray ( 'C' ) ) ;
this . setBorderStyle ( dict ) ;
this . appearance = g etDefaul tAppearance( dict ) ;
this . setAppearance ( dict ) ;
this . data = { } ;
this . data . id = params . id ;
this . data . subtype = params . subtype ;
@ -39902,6 +39886,26 @@ var Annotation = function AnnotationClosure() {
@@ -39902,6 +39886,26 @@ var Annotation = function AnnotationClosure() {
this . borderStyle . setWidth ( 0 ) ;
}
} ,
setAppearance : function Annotation _setAppearance ( dict ) {
this . appearance = null ;
var appearanceStates = dict . get ( 'AP' ) ;
if ( ! isDict ( appearanceStates ) ) {
return ;
}
var normalAppearanceState = appearanceStates . get ( 'N' ) ;
if ( isStream ( normalAppearanceState ) ) {
this . appearance = normalAppearanceState ;
return ;
}
if ( ! isDict ( normalAppearanceState ) ) {
return ;
}
var as = dict . get ( 'AS' ) ;
if ( ! isName ( as ) || ! normalAppearanceState . has ( as . name ) ) {
return ;
}
this . appearance = normalAppearanceState . get ( as . name ) ;
} ,
_preparePopup : function Annotation _preparePopup ( dict ) {
if ( ! dict . has ( 'C' ) ) {
this . data . color = null ;
@ -57260,8 +57264,8 @@ exports.TilingPattern = TilingPattern;
@@ -57260,8 +57264,8 @@ exports.TilingPattern = TilingPattern;
"use strict" ;
var pdfjsVersion = '1.7.292 ' ;
var pdfjsBuild = 'fde609 e8' ;
var pdfjsVersion = '1.7.294 ' ;
var pdfjsBuild = '8aad33 e8' ;
var pdfjsSharedUtil = _ _w _pdfjs _require _ _ ( 0 ) ;
var pdfjsDisplayGlobal = _ _w _pdfjs _require _ _ ( 25 ) ;
var pdfjsDisplayAPI = _ _w _pdfjs _require _ _ ( 10 ) ;