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

Jayraj ChhayaRank #304 · 8.2K reputationPosted Feb 23, 2024, 1:45 AM EST
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:
footer { border-top: 1px solid black; /* Add a top border to the footer */ /* You can customize the border style, color, and width as needed */ }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.
Sushant TorankarRank #3,026 · 476 reputationPosted Feb 28, 2024, 10:43 AM EST
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 !