From fab303ad1d31af6421e8d1d6061f9733df43e49c Mon Sep 17 00:00:00 2001 From: the Date: Tue, 25 Jun 2024 20:29:36 +0400 Subject: [PATCH] =?UTF-8?q?=D1=81=D0=BC=D0=BE=D0=BB=20=D1=84=D0=B8=D0=BA?= =?UTF-8?q?=D1=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BusinessLogic/OfficePackage/AbstractSaveToPdfCheque.cs | 2 +- BusinessLogic/OfficePackage/Implements/SaveToPdfCheque.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BusinessLogic/OfficePackage/AbstractSaveToPdfCheque.cs b/BusinessLogic/OfficePackage/AbstractSaveToPdfCheque.cs index c978819..2361a46 100644 --- a/BusinessLogic/OfficePackage/AbstractSaveToPdfCheque.cs +++ b/BusinessLogic/OfficePackage/AbstractSaveToPdfCheque.cs @@ -15,7 +15,7 @@ namespace BusinessLogic.OfficePackage CreatePdf(info); CreateParagraph(new PdfParagraph { - Text = $"{info.Title}\nНа товар {info.Product.Name}", + Text = $"{info.Title}\n{info.Product.Name}", Style = "NormalTitle", ParagraphAlignment = PdfParagraphAlignmentType.Center }); diff --git a/BusinessLogic/OfficePackage/Implements/SaveToPdfCheque.cs b/BusinessLogic/OfficePackage/Implements/SaveToPdfCheque.cs index fca1912..3980d44 100644 --- a/BusinessLogic/OfficePackage/Implements/SaveToPdfCheque.cs +++ b/BusinessLogic/OfficePackage/Implements/SaveToPdfCheque.cs @@ -103,7 +103,7 @@ namespace BusinessLogic.OfficePackage.Implements { return; } - XImage image = XImage.FromFile(path); + _document.LastSection.AddImage(path); } protected override void SavePdf(PdfInfo info)