Components
Blocks
- Gift Certificate
- Event Agenda
- Event Ticket
- 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/takumi/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 { PdfcnThemeProvider } from "@/components/pdf/theme-provider";
import {
TakumiDocument,
TakumiPage,
TakumiView,
} from "@/lib/pdf-primitives";
@Component({
imports: [
TakumiDocument,
TakumiPage,
TakumiView,
PdfcnThemeProvider,
PdfHeading,
PdfPageBreak,
PdfText,
],
template: `
<takumi-document>
<takumi-page size="A4">
<pdf-theme-provider>
<takumi-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>
</takumi-view>
</pdf-theme-provider>
</takumi-page>
</takumi-document>
`,
})
export class PageBreakDemo {}API Reference
PdfPageBreak
| Input | Type | Default |
|---|---|---|
style |
Style |
- |