We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f25fd3d commit 7f707cbCopy full SHA for 7f707cb
1 file changed
src/components/BootstrapBlazor.PdfViewer/PdfViewer.razor.cs
@@ -17,6 +17,12 @@ public partial class PdfViewer
17
[Parameter]
18
public string? Url { get; set; }
19
20
+ /// <summary>
21
+ /// Gets or sets the page index of the PDF file.
22
+ /// </summary>
23
+ [Parameter]
24
+ public int PageIndex { get; set; }
25
+
26
/// <summary>
27
/// Gets or sets the viewer height. Default is null.
28
/// </summary>
@@ -108,7 +114,7 @@ private string GetAbsoluteUri(string? url)
108
114
url ??= string.Empty;
109
115
if (string.IsNullOrEmpty(url) || !UseGoogleDocs)
110
116
{
111
- return url;
117
+ return $"{url}#page={PageIndex}";
112
118
}
113
119
var uri = NavigationManager.ToAbsoluteUri(url);
120
return uri.AbsoluteUri;
0 commit comments