Skip to content

azauditor/Blazor.Printing

 
 

Repository files navigation

Blazor Printing

This is a fork of the Append.Blazor.Printing package provided by Append-IT which currently fixes font sizes on printing. Below is from the original repository. Print and Save files in Blazor using the native dialog box using JavaScript Interop and PrintJS.

Nuget (with prereleases)

The result

Screenshot

The blogpost

You can read more about the service in this blog post.

Documentation

Documentation and examples can be found here

Installing

You can install from NuGet using the following command:

Install-Package Append.Blazor.Printing.Patched

Setup

  1. Inject the IPrintingService in program.cs
builder.Services.AddScoped<IPrintingService, PrintingService>();
  1. Use the Service
@using Append.Blazor.Printing
@inject IPrintingService PrintingService
<button @onclick="@(()=> PrintingService.Print("docs/sample.pdf"))">
 Print PDF
</button>

About

Fork of Append.Blazor.Printing, with fixes

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C# 100.0%