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/page-breakUsage
import { Component } from "@angular/core";
import { PdfHeading } from "@/components/pdf/heading/heading";
import { PdfPageBreak } from "@/components/pdf/page-break/page-break";
import { PdfText } from "@/components/pdf/text/text";
import {
FormeDocument,
FormePage,
FormeView,
} from "@/lib/pdf-primitives";
@Component({
imports: [
FormeDocument,
FormePage,
FormeView,
PdfHeading,
PdfPageBreak,
PdfText,
],
template: `
<forme-document>
<forme-page size="A4" [margin]="30">
<forme-view>
<pdf-heading [level]="1">Section 1</pdf-heading>
<pdf-text>Content on the first page.</pdf-text>
<pdf-page-break />
<pdf-heading [level]="1">Section 2</pdf-heading>
<pdf-text>Content on the second page.</pdf-text>
</forme-view>
</forme-page>
</forme-document>
`,
})
export class PageBreakDemo {}API Reference
PdfPageBreak
| Input | Type | Default |
|---|---|---|
style |
Style |
- |