phpfpdf

How to set border to pdf in fpdf?


I have created 1 PDF using fpdf and I want to set border to each page in that PDF. So is there any built-in tag for setting a border on a PDF in fpdf or any other easy way to do this? I don't want to change the layout of my PDF after setting the border.


Solution

  • Well thanks for that. But I think finally I found a solution for that. If you set a rectangle in a header function, it will work as a border to all pages.