# AvaloniaUI.PrintToPDF **Repository Path**: blue2015/AvaloniaUI.PrintToPDF ## Basic Information - **Project Name**: AvaloniaUI.PrintToPDF - **Description**: No description available - **Primary Language**: C# - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-05-04 - **Last Updated**: 2022-05-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # AvaloniaUI.PrintToPDF This is an experimental lib to create PDF documents from [Avalonia UI](https://github.com/AvaloniaUI/Avalonia) visuals. The PDF files are generated by the [Skia](https://github.com/mono/SkiaSharp) PDF backend. ## Demo The demo app generates PDF files using some pages from the Avalonia Control Catalog. Here is [a sample PDF file](https://github.com/Oaz/AvaloniaUI.PrintToPDF/raw/master/doc/sample.pdf). ## Usage One of the simplest code is a full screenshot (in vector graphics) of a desktop app main window: ```C# AvaloniaUI.PrintToPDF.Print.ToFile( "app_screenshot.pdf", (Application.Current.ApplicationLifetime as IClassicDesktopStyleApplicationLifetime).MainWindow ); ```