done
This commit is contained in:
@@ -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")
|
||||
},
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user