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)