@ -20022,8 +20022,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
@@ -20022,8 +20022,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
}
} ;
} ( ) ;
exports . version = '1.7.325 ' ;
exports . build = '9db4240b ' ;
exports . version = '1.7.327 ' ;
exports . build = '4e201d37 ' ;
exports . getDocument = getDocument ;
exports . PDFDataRangeTransport = PDFDataRangeTransport ;
exports . PDFWorker = PDFWorker ;
@ -38774,8 +38774,8 @@ if (!globalScope.PDFJS) {
@@ -38774,8 +38774,8 @@ if (!globalScope.PDFJS) {
globalScope . PDFJS = { } ;
}
var PDFJS = globalScope . PDFJS ;
PDFJS . version = '1.7.325 ' ;
PDFJS . build = '9db4240b ' ;
PDFJS . version = '1.7.327 ' ;
PDFJS . build = '4e201d37 ' ;
PDFJS . pdfBug = false ;
if ( PDFJS . verbosity !== undefined ) {
sharedUtil . setVerbosityLevel ( PDFJS . verbosity ) ;
@ -39199,21 +39199,6 @@ var Annotation = function AnnotationClosure() {
@@ -39199,21 +39199,6 @@ var Annotation = function AnnotationClosure() {
} ) ;
}
} ;
Annotation . appendToOperatorList = function Annotation _appendToOperatorList ( annotations , opList , partialEvaluator , task , intent , renderForms ) {
var annotationPromises = [ ] ;
for ( var i = 0 , n = annotations . length ; i < n ; ++ i ) {
if ( intent === 'display' && annotations [ i ] . viewable || intent === 'print' && annotations [ i ] . printable ) {
annotationPromises . push ( annotations [ i ] . getOperatorList ( partialEvaluator , task , renderForms ) ) ;
}
}
return Promise . all ( annotationPromises ) . then ( function ( operatorLists ) {
opList . addOp ( OPS . beginAnnotations , [ ] ) ;
for ( var i = 0 , n = operatorLists . length ; i < n ; ++ i ) {
opList . addOpList ( operatorLists [ i ] ) ;
}
opList . addOp ( OPS . endAnnotations , [ ] ) ;
} ) ;
} ;
return Annotation ;
} ( ) ;
var AnnotationBorderStyle = function AnnotationBorderStyleClosure ( ) {
@ -41717,6 +41702,7 @@ var coreParser = __w_pdfjs_require__(6);
@@ -41717,6 +41702,7 @@ var coreParser = __w_pdfjs_require__(6);
var coreCrypto = _ _w _pdfjs _require _ _ ( 17 ) ;
var coreEvaluator = _ _w _pdfjs _require _ _ ( 18 ) ;
var coreAnnotation = _ _w _pdfjs _require _ _ ( 27 ) ;
var OPS = sharedUtil . OPS ;
var MissingDataException = sharedUtil . MissingDataException ;
var Util = sharedUtil . Util ;
var assert = sharedUtil . assert ;
@ -41745,7 +41731,6 @@ var Linearization = coreParser.Linearization;
@@ -41745,7 +41731,6 @@ var Linearization = coreParser.Linearization;
var calculateMD5 = coreCrypto . calculateMD5 ;
var OperatorList = coreEvaluator . OperatorList ;
var PartialEvaluator = coreEvaluator . PartialEvaluator ;
var Annotation = coreAnnotation . Annotation ;
var AnnotationFactory = coreAnnotation . AnnotationFactory ;
var Page = function PageClosure ( ) {
var DEFAULT _USER _UNIT = 1.0 ;
@ -41755,6 +41740,9 @@ var Page = function PageClosure() {
@@ -41755,6 +41740,9 @@ var Page = function PageClosure() {
612 ,
792
] ;
function isAnnotationRenderable ( annotation , intent ) {
return intent === 'display' && annotation . viewable || intent === 'print' && annotation . printable ;
}
function Page ( pdfManager , xref , pageIndex , pageDict , ref , fontCache , builtInCMapCache ) {
this . pdfManager = pdfManager ;
this . pageIndex = pageIndex ;
@ -41916,8 +41904,18 @@ var Page = function PageClosure() {
@@ -41916,8 +41904,18 @@ var Page = function PageClosure() {
pageOpList . flush ( true ) ;
return pageOpList ;
}
var annotationsReadyPromise = Annotation . appendToOperatorList ( annotations , pageOpList , partialEvaluator , task , intent , renderInteractiveForms ) ;
return annotationsReadyPromise . then ( function ( ) {
var i , ii , opListPromises = [ ] ;
for ( i = 0 , ii = annotations . length ; i < ii ; i ++ ) {
if ( isAnnotationRenderable ( annotations [ i ] , intent ) ) {
opListPromises . push ( annotations [ i ] . getOperatorList ( partialEvaluator , task , renderInteractiveForms ) ) ;
}
}
return Promise . all ( opListPromises ) . then ( function ( opLists ) {
pageOpList . addOp ( OPS . beginAnnotations , [ ] ) ;
for ( i = 0 , ii = opLists . length ; i < ii ; i ++ ) {
pageOpList . addOpList ( opLists [ i ] ) ;
}
pageOpList . addOp ( OPS . endAnnotations , [ ] ) ;
pageOpList . flush ( true ) ;
return pageOpList ;
} ) ;
@ -41952,12 +41950,9 @@ var Page = function PageClosure() {
@@ -41952,12 +41950,9 @@ var Page = function PageClosure() {
var annotations = this . annotations ;
var annotationsData = [ ] ;
for ( var i = 0 , n = annotations . length ; i < n ; ++ i ) {
if ( intent ) {
if ( ! ( intent === 'display' && annotations [ i ] . viewable ) && ! ( intent === 'print' && annotations [ i ] . printable ) ) {
continue ;
}
if ( ! intent || isAnnotationRenderable ( annotations [ i ] , intent ) ) {
annotationsData . push ( annotations [ i ] . data ) ;
}
annotationsData . push ( annotations [ i ] . data ) ;
}
return annotationsData ;
} ,
@ -57881,8 +57876,8 @@ if (typeof PDFJS === 'undefined' || !PDFJS.compatibilityChecked) {
@@ -57881,8 +57876,8 @@ if (typeof PDFJS === 'undefined' || !PDFJS.compatibilityChecked) {
"use strict" ;
var pdfjsVersion = '1.7.325 ' ;
var pdfjsBuild = '9db4240b ' ;
var pdfjsVersion = '1.7.327 ' ;
var pdfjsBuild = '4e201d37 ' ;
var pdfjsSharedUtil = _ _w _pdfjs _require _ _ ( 0 ) ;
var pdfjsDisplayGlobal = _ _w _pdfjs _require _ _ ( 26 ) ;
var pdfjsDisplayAPI = _ _w _pdfjs _require _ _ ( 10 ) ;