Prevent the PDF from scrolling and remove the vertical scrollbar
17 Jul 20261 minute to read
To prevent a PDF from scrolling and remove the vertical scrollbar in the Blazor SfPdfViewer component, set the container’s CSS overflow property to hidden.
Setting overflow: hidden removes scrollbars and disables user scrolling. To target only vertical scrolling, consider overflow-y: hidden.
<style>
.e-pv-viewer-container {
overflow: hidden !important;
}
</style>To target only vertical scrolling, use overflow-y instead:
<style>
.e-pv-viewer-container {
overflow-y: hidden !important;
}
</style>