In my asp.net application, I am using QuestPDF to generate PDF. But I am unable to generate date input mask within text. I can generate this if it is not within text. as it is a part of the text, that’s why I can not generate if.
I already generated this
But can not generate this
Here is the code by which I have genearted the first one.
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);
});
});
});
Here is the code I am trying to generate the 2nd one
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);
});
It will be very kind, if anyone can help.
I tried for a long time with different code, but all went in vain.