Removing whitespace (for left, top, right margin) while generating PDF document
- February 12, 2022
- 2 replies
- 1463 views
I am using the below code to generate a PDF. The top part of the page is an image but there is whitespace while placing the image in the generated PDF. How do i remove the whitespace from the PDF. Any suggestions? Please find the code snippet below. Attached the CURRENT.JPG and EXPECTED.JPG images. In the current you can find a portion marked in red which i need to remove. The PDF should look exactly like the expected.JPG
<cfdocument pagetype="legal" format="PDF" marginbottom="0" margintop="0" marginleft="0" marginright="0" >
<table border=0 cellspacing=0 cellpadding=0 height=200>
<tr><td valign=top align=left>
<img src="https://www.getinge-training.com/images/TopHeader.jpg" width="1429" height="496" border=0>
<br><br><br><br><p align=center><font size=10>NAME OF THE PERSON</td></tr>
</table>
</cfdocument>
