NAME
PDF::Make::Builder::Text::H2 - Level-2 heading preset for PDF::Make
SYNOPSIS
$builder->add_h2(text => 'Section Title', toc => 1);
DESCRIPTION
Extends PDF::Make::Builder::Text with heading-level-2 font defaults: size 40, line_height 48, margin 12 (for spacing after the heading).
PROPERTIES
Inherits all properties from PDF::Make::Builder::Text, plus:
- toc (Bool, default 0)
-
When true, automatically adds this heading to the document's table of contents.