Let us discuss about How to add watermark to existing PDF using php First you need to install FPDI library(using composer) OR download from git After that create a create a index.html and pdf.php File in your root directory Copy Bellow code in index.html File Index.html pdf.php How to install FPDI library using composer Last do: