webgio / Rotativa

Rotativa, /rota'tiva/. Make Pdf from Asp.Net MVC. Available on Nuget https://www.nuget.org/packages/Rotativa
http://letsfollowtheyellowbrickroad.blogspot.it/search/label/Rotativa
MIT License
622 stars 221 forks source link

Define different dynamic footers in each pdf page #200

Open nerrierr opened 5 years ago

nerrierr commented 5 years ago

Hello,

Is there a way to define different dynamic footers in each pdf page? For example, something like this: On Page 1 -> img in the bottom of the page On Page 2 -> no footer On Page 3 -> some text with some details in the bottom of the page

More specifically I need to be able to define content (the unique footer) that is inserted after some specific element (that is generated dynamically with variable length of content) and on whatever page that element ends, put the "footer" at the bottom of the current page.

Can this be done somehow with rotativa/wkhtmltopdf? Something similar can be done in the html file using css (using div with specific size for each pdf page), but that only works for static content. For dynamic html content you don't really know where things end up (on what page your content will be since the paging is decided by printing engine)

Thank you, Signed, A developer in need of help