Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -1,13 +1,23 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<PackageTags>Bootstrap Blazor WebAssembly wasm UI Components Pdf Reader</PackageTags>
<Description>Bootstrap UI components extensions of PdfReader</Description>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="UAParser" Version="3.1.47" />
<PackageReference Include="BootstrapBlazor" Version="$(BBVersion)" />
<Content Remove="wwwroot\pdf.mjs" />
<Content Remove="wwwroot\pdf.worker.mjs" />
<None Include="wwwroot\pdf.mjs" />
<None Include="wwwroot\pdf.worker.mjs" />
</ItemGroup>

<ItemGroup>
<!--<PackageReference Include="BootstrapBlazor" Version="$(BBVersion)" />-->
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\..\..\BootstrapBlazor\src\BootstrapBlazor\BootstrapBlazor.csproj" />
</ItemGroup>

<ItemGroup>
Expand Down
21 changes: 8 additions & 13 deletions src/components/BootstrapBlazor.PdfReader/PdfReader.razor
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
@namespace BootstrapBlazor.Components
@namespace BootstrapBlazor.Components
@inherits BootstrapModuleComponentBase

@if (Debug)
{
<p>@(Url??UrlDebug)</p>
}
@if (!string.IsNullOrEmpty(ErrorMessage))
{
<p>@ErrorMessage</p>
}
<iframe @ref="Element"
allow="fullscreen"
style="@($"border: none; width: {Width}; height: {Height};{StyleString}")"
src=@Url />
<div @attributes="@AdditionalAttributes" id="@Id" class="@ClassString">
<div id="viewerContainer">
<div id="viewer" class="pdfViewer"></div>
</div>
@* <canvas></canvas> *@
</div>
Loading
Loading