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/textUsage
import { Component } from "@angular/core";
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, PdfSection, PdfText],
template: `
<forme-document>
<forme-page size="A4" [margin]="30">
<pdf-section spacing="none">
<pdf-text
>Default body text for paragraphs, descriptions, and document
content.</pdf-text
>
<pdf-text variant="xs" color="mutedForeground"
>Caption text for metadata and supporting details.</pdf-text
>
<pdf-text variant="lg"
>Lead paragraph with a larger typographic scale.</pdf-text
>
</pdf-section>
</forme-page>
</forme-document>
`,
})
export class TextDemo {}API Reference
PdfText
| Input | Type | Default |
|---|---|---|
variant |
'xs' | 'sm' | 'base' | 'lg' | 'xl' | '2xl' | '3xl' |
'base' |
align |
'left' | 'center' | 'right' | 'justify' |
'left' |
color |
string |
- |
weight |
'normal' | 'medium' | 'semibold' | 'bold' |
'normal' |
italic |
boolean |
false |
decoration |
'underline' | 'line-through' | 'none' |
'none' |
transform |
'uppercase' | 'lowercase' | 'capitalize' |
- |
noMargin |
boolean |
false |