@@ -1372,7 +1372,12 @@ const PDFViewerApplication = {
1372
1372
this . _initializeAutoPrint ( pdfDocument , openActionPromise ) ;
1373
1373
} ) ;
1374
1374
1375
- onePageRendered . then ( ( ) => {
1375
+ onePageRendered . then ( data => {
1376
+ this . externalServices . reportTelemetry ( {
1377
+ type : "pageInfo" ,
1378
+ timestamp : data . timestamp ,
1379
+ } ) ;
1380
+
1376
1381
pdfDocument . getOutline ( ) . then ( outline => {
1377
1382
if ( pdfDocument !== this . pdfDocument ) {
1378
1383
return ; // The document was closed while the outline resolved.
@@ -2315,7 +2320,7 @@ function webViewerResetPermissions() {
2315
2320
appConfig . viewerContainer . classList . remove ( ENABLE_PERMISSIONS_CLASS ) ;
2316
2321
}
2317
2322
2318
- function webViewerPageRendered ( { pageNumber, timestamp , error } ) {
2323
+ function webViewerPageRendered ( { pageNumber, error } ) {
2319
2324
// If the page is still visible when it has finished rendering,
2320
2325
// ensure that the page number input loading indicator is hidden.
2321
2326
if ( pageNumber === PDFViewerApplication . page ) {
@@ -2341,10 +2346,6 @@ function webViewerPageRendered({ pageNumber, timestamp, error }) {
2341
2346
} ) ;
2342
2347
}
2343
2348
2344
- PDFViewerApplication . externalServices . reportTelemetry ( {
2345
- type : "pageInfo" ,
2346
- timestamp,
2347
- } ) ;
2348
2349
// It is a good time to report stream and font types.
2349
2350
PDFViewerApplication . pdfDocument . getStats ( ) . then ( function ( stats ) {
2350
2351
PDFViewerApplication . externalServices . reportTelemetry ( {
0 commit comments