File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -443,6 +443,10 @@ class BaseViewer {
443443 // starts to create the correct size canvas. Wait until one page is
444444 // rendered so we don't tie up too many resources early on.
445445 onePageRenderedCapability . promise . then ( ( ) => {
446+ if ( this . findController ) {
447+ this . findController . setDocument ( pdfDocument ) ; // Enable searching.
448+ }
449+
446450 if ( pdfDocument . loadingParams [ 'disableAutoFetch' ] ) {
447451 // XXX: Printing is semi-broken with auto fetch disabled.
448452 pagesCapability . resolve ( ) ;
@@ -471,9 +475,6 @@ class BaseViewer {
471475
472476 this . eventBus . dispatch ( 'pagesinit' , { source : this , } ) ;
473477
474- if ( this . findController ) {
475- this . findController . setDocument ( pdfDocument ) ; // Enable searching.
476- }
477478 if ( this . defaultRenderingQueue ) {
478479 this . update ( ) ;
479480 }
You can’t perform that action at this time.
0 commit comments