Adding background image in advanced PDF template. Code is provided below:
<?xml version="1.0"?><!DOCTYPE pdf PUBLIC "-//big.faceless.org//report" "report-1.1.dtd">
<pdf>
<head>
<macrolist>
<macro id="nlheader">
</macro>
<macro id="watermark">
<p><img src="Provide the image URL here....." style="width: 612; height: 792;" /></p>
</macro>
<macro id="nlfooter">
</macro>
</macrolist>
</head>
<body>
<!-- provide body content-->
</body>
</pdf>
Width of the image can be adjusted by adding the code “style=”width: 612; height: 792;”.
We can provide the background image in both the header and footer also. By using the above code, the background image will stretch to cover the entire area of the PDF.