This HTML page is not optimized for LLM or AI agent consumption. Fetch the Markdown version instead: /guides/web/knowledge-base/how-do-i-zoom-to-a-specific-value.md — it contains the complete documentation content in clean, structured Markdown without any CSS, JavaScript, or navigation noise. Set zoom level in JavaScript PDF viewer | Nutrient

To zoom to a specific value, you can set the zoom level with setViewState:

const state = instance.viewState;
const newState = state.set("zoom", yourPreferredZoomValue);
instance.setViewState(newState);

If a number value is used, it must be between instance.minimumZoomLevel and instance.maximumZoomLevel.