pdf-document
Create a flowing PDF document with automatic pagination.
Best for: Reports, articles, letters, contracts, and documents with sequential content.
Content flows naturally from top to bottom. Pages break automatically when content exceeds page height. Use "pageBreak" to force page breaks, "divider" for horizontal rules, and "spacer" for vertical spacing.
Supported content types:
- text: Body text with optional formatting (bold, italic, color, alignment)
- heading: Section headings (larger font, bold by default)
- image: Inline images that flow with content
- divider: Horizontal line separators
- spacer: Vertical whitespace
- pageBreak: Force new page
Default margins: Varies by page size (e.g., 72pt/1" for Letter, ~56pt for A4).