NAME

PDF::Make::Builder::Text::H1 - Level-1 heading preset for PDF::Make

SYNOPSIS

$builder->add_h1(text => 'Chapter Title', toc => 1);

DESCRIPTION

Extends PDF::Make::Builder::Text with heading-level-1 font defaults: size 50, line_height 60, margin 15 (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.

SEE ALSO

PDF::Make::Builder::Text, PDF::Make::Builder::TOC