<PackageReference Include="System.Drawing.Common" Version="10.0.4" />

System.Drawing.Printing.PrintDocument

public class PrintDocument : Component
Defines a reusable object that sends output to a printer, when printing from a Windows Forms application.
namespace System.Drawing.Printing { public class PrintDocument : Component { public PageSettings DefaultPageSettings { get; set; } public string DocumentName { get; set; } public bool OriginAtMargins { get; set; } public PrintController PrintController { get; set; } public PrinterSettings PrinterSettings { get; set; } public event PrintEventHandler BeginPrint; public event PrintEventHandler EndPrint; public event PrintPageEventHandler PrintPage; public event QueryPageSettingsEventHandler QueryPageSettings; public PrintDocument(); public void Print(); } }