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

When a PDF loads in Nutrient, you can zoom to a specific annotation by calling instance.jumpAndZoomToRect() using the annotation’s bounding box as the target NutrientViewer.Geometry.Rect.

You can also add some padding around the annotation bounding box if needed:

NutrientViewer.load(configuration).then(instance => {
// Set padding around annotation.
const padding = 8
// Get annotations for page 0.
instance.getAnnotations(0).then(annotations => {
const annotation = annotations.first();
// This will target the first annotation found on the page, with padding around.
instance.jumpAndZoomToRect(annotation.pageIndex, annotation.boundingBox.grow(padding);
});
});

This has been tested with Nutrient Web SDK 2020.1.2.