Gravity PDF Template Stabilization - 12/05/2026 15:28 EDT

Job ID: 40438202

Budget: £20 – £250 GBP

I need help stabilising a custom Gravity PDF certificate template for a commercial catering gas inspection record.

The template is a two-page A4 landscape-style PDF generated from a Gravity Forms entry using PHP, HTML tables, CSS, and mPDF/Gravity PDF. The certificate layout is already designed and mostly working visually, but the layout becomes unstable when real form data is inserted.

The goal is **not to redesign the certificate**. The goal is to preserve the current visual layout and make it robust when fields are populated.

Main issues to fix:

1. **Part A layout stability**

* Part A has a fixed three-column layout:

* left column: business/site/landlord/declaration boxes
* middle column: gas, pipework, safety boxes
* right column: ventilation/extract box
* bottom: risk analysis box
* When populated with values like “Yes”, “No”, “N/A”, numbers, short text, and longer notes, the layout should not shrink, stretch, overflow, or create extra pages.

2. **Prevent form values from breaking table widths**

* Some fields can contain longer values, for example:

* remedial action text
* filtration type
* serial numbers
* make/model
* risk outcome
* These should be safely truncated, wrapped, or otherwise controlled so they cannot push the PDF tables wider.

3. **Keep the original design proportions**

* The certificate should continue to fill the page as per the original working blank layout.
* Please avoid broad/global CSS changes that alter all `.q`, `.a`, `.inner`, `.content-a`, or `.parta-grid` behaviour unless absolutely necessary.
* Any fixes should be section-specific and tested against populated data.

4. **Part B stability**

* Part B is mostly stable and should not be redesigned.
* It includes an appliance table, additional works table, comments box, risk box, and declaration/signature box.
* Only small refinements should be made if needed.

5. **Logo/header support later**

* I also want to add a PRISM logo on the left and Gas Safe logo on the right of the header, but this should not change the header height or push the certificate layout down.
* Header logos should be added only after the main data/layout stability issue is fixed.

Technical requirements:

* This is for Gravity PDF / mPDF.
* The solution should preserve the existing PHP template structure as much as possible.
* Please test with both blank/mostly empty entries and populated entries.
* Please avoid CSS that causes mPDF to re-scale or paginate unexpectedly.
* Ideally, long-value protection should be handled either with safe PHP helpers or very targeted CSS, not broad table overrides.

Deliverable:

* A corrected PHP template file or ZIP that can replace the existing Gravity PDF template.
* Brief notes explaining what was changed and why.
* Please identify any fields that need maximum character limits or special handling.
nd have relevant experience.

I’ve added the IP Agreement upgrade. All work, code, templates, styling, fixes, and derivative versions produced for this project must be assigned to me/my business and must not be resold, reused, redistributed, or published elsewhere.