@@ -387,9 +387,9 @@ export const DownloadData = () => {
387387 graphImg . src = await domtoimage . toPng ( document . getElementById ( graphCards [ index ] . id ) , { bgcolor : 'white' } ) ;
388388 await graphImgPromise ;
389389 if ( graphImg . width <= 741 ) {
390- doc . addImage ( graphImg , 'PNG' , 16 , 110 , undefined , 'FAST' ) ;
390+ doc . addImage ( graphImg , 'PNG' , 16 , 110 , undefined , undefined , undefined , 'FAST' ) ;
391391 } else {
392- doc . addImage ( graphImg , 'PNG' , 16 , 110 , pageWidth - 80 , 271 , undefined , 'FAST' ) ;
392+ doc . addImage ( graphImg , 'PNG' , 16 , 110 , pageWidth - 80 , 271 , undefined , 'FAST' ) ;
393393 }
394394
395395 doc . setFillColor ( 255 , 255 , 255 ) ;
@@ -468,7 +468,7 @@ export const DownloadData = () => {
468468 startIcon = { < PictureAsPdf /> }
469469 loadingPosition = "start"
470470 >
471- Download report from current view (PDF, 1MB )
471+ Download report from current view (PDF, 2MB )
472472 </ LoadingButton >
473473 < Snackbar open = { showAlert } autoHideDuration = { 5000 } onClose = { handleCloseAlert } >
474474 < Alert onClose = { handleCloseAlert } severity = "error" sx = { { width : '100%' } } >
0 commit comments