ANS-0736 · PRINTING, PDF & EMAIL TEMPLATES

How to Prevent DIV Overlap with Footer in NetSuite PDF Generation

When generating PDFs from XML in NetSuite, DIV elements can unexpectedly overlap with the document footer, requiring a specific structural adjustment.

Short answer

When a DIV element is used within XML for NetSuite PDF generation, it may fail to break correctly before the footer, resulting in content overlap. To resolve this display issue and ensure proper page breaks, the DIV element must be replaced with a raw table structure in the XML template. This ensures content respects the footer boundary.

Scenario

When generating a PDF document from an XML template in NetSuite, a common display issue occurs where a DIV element does not properly break before the document footer. Instead, the content within the DIV is rendered over the footer, obscuring important information. This behavior is inherent to how DIVs are processed in the PDF generation engine.

Solution

To prevent DIV elements from overlapping with the footer in NetSuite PDF generation, the DIV must be removed from the XML structure. The only effective method to ensure proper page breaking and avoid content display issues over the footer is to replace the DIV element with a raw table.

Expert NetSuite Support

Need help with this NetSuite issue?

Printing, PDF & Email Templates consulting and configuration support

Talk to a consultant