Implement Pdf printing
This commit is contained in:
@ -66,9 +66,9 @@ namespace Elwig.Documents {
|
||||
File.Copy(PdfFile.FilePath, pdfPath);
|
||||
}
|
||||
|
||||
public async Task Print() {
|
||||
public async Task Print(int copies = 1) {
|
||||
if (PdfFile == null) throw new InvalidOperationException("Pdf file has not been generated yet");
|
||||
Pdf.Print(PdfFile.FilePath);
|
||||
await Pdf.Print(PdfFile.FilePath, copies);
|
||||
}
|
||||
|
||||
public void Show() {
|
||||
|
Reference in New Issue
Block a user