Disable tile rendering in JavaScript PDF Viewer
13 Feb 20261 minute to read
Use the enableTileRendering property to enable or disable tile rendering. Tile rendering is enabled by default and typically improves performance for large documents. Set enableTileRendering to false to disable tile rendering when it is not required.
- Include the JavaScript PDF Viewer script and the
ThumbnailView/Navigationmodules if using related features. - Initialize the viewer instance before changing tile rendering settings at runtime.
Example: disable tile rendering with a button
<button id="disable">Disable tile rendering</button>
// Disable tile rendering at runtime
document.getElementById('disable').addEventListener('click', () => {
viewer.tileRenderingSettings.enableTileRendering = false;
});Sample: How to disable tile rendering