Enable Lazy Loading and Progressive Loading
masterFor large PDF files, use these modes to optimize memory and performance:
Lazy Loading
Set lazyLoad: true to only render pages that are currently visible in the viewport.
Progressive Loading
Enables streaming loading via PDF.js with intelligent memory management. Use these keys to tune performance:
progressiveLoading(Boolean): Enable mode (default:false).chunkSize(Number): Chunk size in bytes (default:65536).maxMemoryPages(Number): Maximum pages kept in memory before auto-cleaning distant pages (default:5).maxImageSize(Number): Max image size in bytes (default:8388608).canvasMaxAreaInBytes(Number): Max canvas area in bytes (default:8388608).