Edit pdf column widths

This commit is contained in:
ShabOl 2024-05-29 19:32:11 +04:00
parent 5616f0eaa0
commit c8b059545c
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ namespace ComputerShopBusinessLogic.OfficePackage
CreatePdf(Info);
CreateParagraph(new PdfParagraph { Text = Info.Title, Style = "NormalTitle", ParagraphAlignment = PdfParagraphAlignmentType.Center });
CreateParagraph(new PdfParagraph { Text = $"с {Info.DateFrom.ToShortDateString()} по {Info.DateTo.ToShortDateString()}", Style = "Normal", ParagraphAlignment = PdfParagraphAlignmentType.Center });
CreateTable(new List<string> { "2cm", "2.5cm", "2cm", "2cm", "2cm", "4cm", "2.5cm", "3.5cm", "3.5cm", "2.5cm" });
CreateTable(new List<string> { "3cm", "2cm", "2cm", "2cm", "2cm", "2cm", "2.5cm", "2.5cm", "3cm", "4cm" });
CreateRow(new PdfRowParameters
{

View File

@ -49,7 +49,7 @@ namespace ComputerShopBusinessLogic.OfficePackage.Implements
return;
}
var paragraph = _section.AddParagraph(pdfParagraph.Text);
paragraph.Format.SpaceAfter = "1cm";
paragraph.Format.SpaceAfter = "0.5cm";
paragraph.Format.Alignment = GetParagraphAlignment(pdfParagraph.ParagraphAlignment);
paragraph.Style = pdfParagraph.Style;
}