I try to make invoice by Razor template, and convert it into PDF by chromium. I must add payment form to the last page, but in the constants position.
.svg-container {
position: absolute;
top: 12cm;
left: 0cm;
left: 0px;
width: 18cm;
height: 10cm;
}
<div class="svg-container">
<svg>..</svg>
</div>
When i make this way payment form svg in correct place, but on first page and overprint invoice area
<div style="position: relative;">
<div class="svg-container">
<svg>..</svg>
</div>
</div>
When I make this way payment form is after invoice data but position is variable. I think about set absolute position with top property calculated from
AbsluteTop = TopOfPage + pages * PageHeigth;
But problem is get pages count to razor code and set top to the style=top:
WriteLiteral("style =\"top: " + @razorVariablePAges + ";\"")
In header section i use
<span class='totalPages' style="font-family:Arial; font-size:7pt ">
but i can't read it into razor variable