https://github.com/smourier/xpsprintsamples
XPS and PDF file printing samples
https://github.com/smourier/xpsprintsamples
dotnet dotnet-core pdf printing xps
Last synced: 2 months ago
JSON representation
XPS and PDF file printing samples
- Host: GitHub
- URL: https://github.com/smourier/xpsprintsamples
- Owner: smourier
- License: mit
- Created: 2024-04-25T10:37:38.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-15T12:42:07.000Z (7 months ago)
- Last Synced: 2025-04-12T17:14:28.047Z (2 months ago)
- Topics: dotnet, dotnet-core, pdf, printing, xps
- Language: C#
- Homepage:
- Size: 5.68 MB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# XpsPrintSamples
XPS and PDF file printing samples* **XpsFilePrint**: a project (AOT friendly) that demonstrates how to print an XPS file (to any printer, including XPS, PDF, ...)
* **PdfFilePrint**: a project (AOT friendly) that demonstrates how to print a PDF file (to any printer, including XPS, PDF, ...)
* **CustomPrintDocument**: a WinUI3 project (which is not AOT-friendly) that implements a custom WinRT [IPrintDocumentSource](https://learn.microsoft.com/en-us/uwp/api/windows.graphics.printing.iprintdocumentsource), usable without any XAML, GDI, WPF or Reach Framework. It supports printing XPS or PDF files (including preview). For PDF, it implements two printing mode: one based on **XPS** and another based on **Direct2D** which outputs higher quality PDF prints.