Hello,
I am converting HTML URL to PDf using selectPdf library in asp.net project
I am able to convert html to pdf with pagination and footer text at the end of every page successfully.
But the end of my page does not show any border, as shown in below image :

I want to show border before or after footer on every page end
Let me know what can be done.
Thanks in advance
Sushant TorankarPosted Feb 28, 2024, 3:43 PM
Thanks for your reply Jayraj.
But how to apply footer css at page end. Because i am converting html page to pdf, so my my usual html already have Border as shown in image. When it is converting to pdf using selectpdf library, it divides the page according to content. For ex : at the end of page of page 1, it does not have border. It shows right and left border because of html table.
So how to identify page end while conversion of pdf and apply border to it?
Thanks in advance !
Jayraj ChhayaPosted Feb 23, 2024, 6:45 AM
To add a border at the end of each page using SelectPdf in ASP.NET, you can achieve this by customizing the CSS for the footer element. You can add a border property to the footer CSS to create the desired border effect.
Here is an example of how you can add a border to the footer in your HTML:
By adding this CSS style to your footer element, you can include a border at the end of each page in your PDF document generated using SelectPdf in your project.