Я уже сгенерировал это
[img]https:/ /i.sstatic.net/f5uo5Vh6.png[/img]
Но не могу создать это
[img]https://i. sstatic.net/jGZgBsFd.png[/img]
Вот код, с помощью которого я сгенерировал первый.
Код: Выделить всё
page.Footer().Column(col =>
{
col.Item().Row(row =>
{
row.RelativeItem(0.73f).Row(innerRow =>
{
innerRow.AutoItem().Text("Dated this").FontSize(10);
innerRow.ConstantItem(65).PaddingTop(7, Unit.Millimetre).Column(innserCol =>
{
innserCol.Item().LineHorizontal(0.05f);
innserCol.Item().AlignCenter().Text("day of month").FontSize(10);
});
innerRow.AutoItem().Text("day of").FontSize(10);
innerRow.ConstantItem(80).PaddingTop(7, Unit.Millimetre).Column(innserCol =>
{
innserCol.Item().LineHorizontal(0.05f);
innserCol.Item().AlignCenter().Text("month").FontSize(10);
});
innerRow.AutoItem().Text(" ' ").FontSize(10);
innerRow.ConstantItem(35).PaddingTop(7, Unit.Millimetre).Column(innserCol =>
{
innserCol.Item().LineHorizontal(0.05f);
innserCol.Item().AlignCenter().Text("year").FontSize(10);
});
innerRow.AutoItem().Text(" ' at").FontSize(10);
innerRow.ConstantItem(60).PaddingTop(7, Unit.Millimetre).Column(innserCol =>
{
innserCol.Item().LineHorizontal(0.05f);
innserCol.Item().AlignCenter().Text("time of day").FontSize(10);
});
innerRow.AutoItem().MinimalBox().Width(12, Unit.Point).Height(12, Unit.Point).Border(0.5f, Unit.Point);
innerRow.AutoItem().PaddingLeft(5, Unit.Point).Text("am").FontSize(10).FontColor(Colors.Black);
innerRow.AutoItem().PaddingLeft(8, Unit.Point).MinimalBox().Width(12, Unit.Point).Height(12, Unit.Point).Border(0.5f, Unit.Point);
innerRow.AutoItem().PaddingLeft(5, Unit.Point).Text("pm").FontSize(10).FontColor(Colors.Black);
});
row.RelativeItem(0.02f);
row.RelativeItem(0.25f).Column(col =>
{
col.Item().AlignLeft().Text("Signature").FontSize(10);
col.Item().Height(25, Unit.Point);
col.Item().LineHorizontal(0.05f);
});
});
});
Код: Выделить всё
col.Item().Row(row =>
{
row.RelativeItem(0.73f).Row(innerRow =>
{
innerRow.RelativeItem()
.AlignLeft()
.Text(text =>
{
text.Span("I (we) appoint the proxy named in row A below, or, failing him or her, the proxy named in row B below, to attend and vote on my (our) behalf at the meeting of owners to be held on ")
.FontSize(11);
// Adding the line where the proxy appointment should go
text.Element().Column(innerCol =>
{
innerCol.Item().Height(3, Unit.Millimetre); // Adding a small height to make space
innerCol.Item().LineHorizontal(0.5f, Unit.Point); // Line for the proxy appointment
});
// Date section
text.Element().Column(innerCol =>
{
innerCol.Item().LineHorizontal(0.5f, Unit.Point);
innerCol.Item().Text("Date (yyyy/mm/dd)").FontSize(10);
});
text.Span("and at any adjournment of the meeting:")
.FontSize(11);
});
});
row.RelativeItem(0.02f);
row.RelativeItem(0.25f);
});
Я долго пробовал другой код, но все было тщетно.< /п>
Подробнее здесь: https://stackoverflow.com/questions/790 ... in-asp-net