This HTML page is not optimized for LLM or AI agent consumption. Fetch the Markdown version instead: /guides/web/knowledge-base/focus-viewer-after-loading.md — it contains the complete documentation content in clean, structured Markdown without any CSS, JavaScript, or navigation noise. Focus PDF viewer on load | Nutrient

To focus on the Nutrient instance when it loads, get a reference to the window object of the Nutrient Web SDK viewer frame and call focus() on it after the NutrientViewer.load promise resolves:

NutrientViewer.load(configuration).then((instance) => {
instance.contentWindow.focus();
});

This has been tested with Nutrient Web SDK 2020.5.1.