This commit is contained in:
2024-09-27 14:33:35 +04:00
parent 7408afe8aa
commit c13dbee6b3
2 changed files with 5 additions and 2 deletions

View File

@@ -97,11 +97,13 @@ namespace custom_App
FilePath = "C:\\Users\\User\\Desktop\\PdfDocumentWithTableHeaderRow.pdf",
Header = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
UseUnion = true,
ColumnsRowsWidth = new List<(int, int)> { (20, 0), (20, 0) },
ColumnsRowsWidth = new List<(int, int)> { (20, 0), (20, 0), (15, 0), (15, 0) },
ColumnUnion = new List<(int StartIndex, int Count)> { (0, 2)},
Headers = new List<(int ColumnIndex, int RowIndex, string Header, string PropertyName)>
{
(0, 0, "<22><><EFBFBD><EFBFBD><EFBFBD>", "Books"),
(2, 0, "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>", "Author"),
(3, 0, "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>", "Name"),
(0, 1, "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>", "Name"),
(1, 1, "<22><><EFBFBD><EFBFBD><EFBFBD>", "Author")
},

View File

@@ -58,7 +58,7 @@ namespace Valova_VisualComponents
public void CreateDoc(ComponentTextToPdfConfig config)
{
//config.CheckFields();
CreateHeader(config.Header);
foreach (string paragraph in config.Paragraphs)
{
@@ -73,6 +73,7 @@ namespace Valova_VisualComponents
var section = this.Document.AddSection();
var paragraph = section.AddParagraph(header);
paragraph.Format.Font.Color = Colors.Black;
paragraph.Format.Font.Size = 30;
paragraph.Format.Font.Bold = true;
}