Components
Blocks
- Event Agenda
- Event Ticket
- Gift Certificate
- Invoice Classic
- Invoice Consultant
- Invoice Corporate
- Invoice Creative
- Invoice Minimal
- Invoice Modern
- Lesson Plan
- Medical Intake Form
- Meeting Minutes
- Packing Slip
- Press Release
- Report Financial
- Report Marketing
- Report Operations
- Report Security
- Shipping Label
- Work Order
Rendering PDF…
Installation
$ pnpm dlx shadcn@latest add @angular-pdfcn/forme/sectionUsage
import { Component } from "@angular/core";
import { PdfHeading } from "@/components/pdf/heading/heading";
import { PdfSection } from "@/components/pdf/section/section";
import { PdfText } from "@/components/pdf/text/text";
import {
FormeDocument,
FormePage,
} from "@/lib/pdf-primitives";
@Component({
imports: [FormeDocument, FormePage, PdfHeading, PdfSection, PdfText],
template: `
<forme-document>
<forme-page size="A4" [margin]="30">
<pdf-section spacing="none">
<pdf-section spacing="lg">
<pdf-heading [level]="2">Introduction</pdf-heading>
<pdf-text
>This section uses generous spacing for a primary document
area.</pdf-text
>
</pdf-section>
<pdf-section spacing="md">
<pdf-heading [level]="2">Details</pdf-heading>
<pdf-text
>This section groups related content with medium
spacing.</pdf-text
>
</pdf-section>
</pdf-section>
</forme-page>
</forme-document>
`,
})
export class SectionDemo {}API Reference
PdfSection
| Input | Type | Default |
|---|---|---|
spacing |
'none' | 'sm' | 'md' | 'lg' | 'xl' |
'md' |
padding |
'none' | 'sm' | 'md' | 'lg' |
- |
background |
string |
- |
border |
boolean |
false |
variant |
'default' | 'callout' | 'highlight' | 'card' |
'default' |
accentColor |
string |
- |
noWrap |
boolean |
false |