![]() |
VOOZH | about |
dotnet add package Avae.Printables --version 3.0.7
NuGet\Install-Package Avae.Printables -Version 3.0.7
<PackageReference Include="Avae.Printables" Version="3.0.7" />
<PackageVersion Include="Avae.Printables" Version="3.0.7" />Directory.Packages.props
<PackageReference Include="Avae.Printables" />Project file
paket add Avae.Printables --version 3.0.7
#r "nuget: Avae.Printables, 3.0.7"
#:package Avae.Printables@3.0.7
#addin nuget:?package=Avae.Printables&version=3.0.7Install as a Cake Addin
#tool nuget:?package=Avae.Printables&version=3.0.7Install as a Cake Tool
A crossplatform library for printing. (Supported formats Png,Pdf,Html,Gif,Jpeg,Bmp,Ico)
Cross-Platform : Leverage APIs adapted for multiple environments.
MIT Licensed: Freely use, modify, and distribute under the permissive MIT License.
Follow these steps to integrate Avae.Printables into your Avalonia project.
An Avalonia project set up with .NET.
Add Nuget Avae.Printables to Your Shared Project
Enable Printables.
using Avae.Printables;
public static AppBuilder BuildAvaloniaApp()
=> AppBuilder.Configure<App>()
.UsePrintables()
.UsePlatformDetect()
.WithInterFont()
.LogToTrace();
Android
protected override AppBuilder CustomizeAppBuilder(AppBuilder builder)
{
return base.CustomizeAppBuilder(builder)
.UsePrintables(this, this)
.WithInterFont()
.UseReactiveUI();
}
iOS
protected override AppBuilder CustomizeAppBuilder(AppBuilder builder)
{
return base.CustomizeAppBuilder(builder)
.UsePrintables()
.WithInterFont()
.UseReactiveUI();
}
Browser (Please add nuget package Avae.Printables to project to make sure printing.js in wwwroot folder)
private static Task Main(string[] args) => BuildAvaloniaApp()
.WithInterFont()
.StartBrowserAppAsync("out").ContinueWith(async t =>
{
await JSHost.ImportAsync("printing", "/printing.js");
});
public static AppBuilder BuildAvaloniaApp()
=> AppBuilder.Configure<App>()
.UsePrintables();
Linux (the following workflow is required)
https://github.com/lytico/GtkSharp.Workload
using Avae.Printables;
Printable.PrintAsync("C://Temp/test.pdf");
using Avae.Printables;
Printable.PrintAsync();
using Avae.Printables;
var visual = Application.Current.ApplicationLifetime
is ISingleViewApplicationLifetime singleViewApplicationLifetime ? singleViewApplicationLifetime.MainView :
(Application.Current.ApplicationLifetime as IClassicDesktopStyleApplicationLifetime)?.MainWindow;
var panel = new Grid()
{
HorizontalAlignment = Avalonia.Layout.HorizontalAlignment.Stretch,
VerticalAlignment = Avalonia.Layout.VerticalAlignment.Stretch
};
panel.RowDefinitions.Add(new RowDefinition(GridLength.Star));
panel.Children.Add(new TextBlock()
{
Text = "Hello",
FontSize = 60,
HorizontalAlignment = Avalonia.Layout.HorizontalAlignment.Center,
VerticalAlignment = Avalonia.Layout.VerticalAlignment.Center
});
await Printable.PrintAsync([visual, panel]);
This package builds upon the excellent work of:
AvaloniaUI
SkiaSharp
Avae.Printables is licensed under the MIT License.
Contributions are welcome! Please submit issues or pull requests to the GitHub repository. Ensure your code follows the project’s coding standards.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-android34.0 net8.0-android34.0 is compatible. net8.0-browser net8.0-browser was computed. net8.0-browser1.0 net8.0-browser1.0 is compatible. net8.0-gtk1.0 net8.0-gtk1.0 is compatible. net8.0-ios net8.0-ios was computed. net8.0-ios18.0 net8.0-ios18.0 is compatible. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-macos15.0 net8.0-macos15.0 is compatible. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net8.0-windows10.0.19041 net8.0-windows10.0.19041 is compatible. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 2 NuGet packages that depend on Avae.Printables:
| Package | Downloads |
|---|---|
|
Avae.Printables.Xps
Printing for avalonia |
|
|
Avae.Printables.Docx
Printing for avalonia |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.0.7 | 333 | 11/1/2025 |
| 3.0.6 | 319 | 10/31/2025 |
| 3.0.5 | 265 | 10/31/2025 |
| 3.0.4 | 328 | 10/30/2025 |
| 3.0.3 | 303 | 10/30/2025 |
| 3.0.2 | 309 | 10/30/2025 |
| 3.0.1 | 310 | 10/30/2025 |
| 3.0.0 | 319 | 10/29/2025 |
| 2.0.1 | 318 | 10/28/2025 |
| 2.0.0 | 301 | 10/28/2025 |
| 1.0.29 | 293 | 10/27/2025 |
| 1.0.28 | 304 | 10/27/2025 |
| 1.0.27 | 307 | 10/27/2025 |
| 1.0.26 | 299 | 10/27/2025 |
| 1.0.25 | 298 | 10/27/2025 |
| 1.0.24 | 279 | 10/27/2025 |
| 1.0.22 | 285 | 10/27/2025 |
| 1.0.21 | 287 | 10/26/2025 |
| 1.0.20 | 288 | 10/26/2025 |
| 1.0.19 | 297 | 10/26/2025 |