I have a server-side app that uses SfPdfViewer. If I set Height=100% in v19.2.0.48, it does not work. It gives me a height of about a half inch. This worked fine in v19.2.0.44 and earlier releases where the height was determined by its parent div height.
Regards,
Arthur
<div style="width:100%; height: 100%;">
<SfPdfViewer @ref="PdfViewer" DocumentPath=@DocumentPath ServiceUrl="https://localhost:44399/pdfviewer" Height="100%" Width="100%">
</SfPdfViewer>
</div>
|
In your example, change the div in index.razor to be:
<div style="width:100%; height: 800px;background-color:pink;">
You will see that the PdfViewer does not take up 100% of the div height.
Re
Blazor Client |
|
Blazor Sever |
|
Service side package |
ASP.NET Core :
https://www.nuget.org/packages/Syncfusion.EJ2.PdfViewer.AspNet.Core.Windows/ https://www.nuget.org/packages/Syncfusion.EJ2.PdfViewer.AspNet.Core.Linux/
ASP.NET MVC:
|