Version: 5
🔥 Gravity PDF v5 end of life was 2023-04-28 and this version is no longer supported. This legacy documentation is kept for reference only.
Adjust Size of Header / Footer Images
How do I adjust the size of images in the Header / Footer of Core and Universal templates?
Gravity PDF automatically restricts the height of images in headers/footers to prevent them taking up a large portion of a page. You can override this behaviour by including the style attribute in your img
HTML markup.
Go to
PDF Settings
, choose the PDF template you want to edit, and click theTemplate Tab
Scroll down to the header settings, and click the rich
Text Editor
Add
style="max-height: 400px"
to the code
It should look like this in your editor:
<img class="alignnone size-full wp-image-12 aligncenter" src="http://testsite.local/wp-content/uploads/2019/10/Group82InternshipProgramHeaderBanner.png" alt="" width="1030" height="250" style="max-height: 400px" />
You can adjust 400px to the size you need.
Before:
After: