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/linkUsage
import { Component } from "@angular/core";
import { PdfLink } from "@/components/pdf/link/link";
import { PdfSection } from "@/components/pdf/section/section";
import {
FormeDocument,
FormePage,
} from "@/lib/pdf-primitives";
@Component({
imports: [FormeDocument, FormePage, PdfLink, PdfSection],
template: `
<forme-document>
<forme-page size="A4" [margin]="30">
<pdf-section spacing="none">
<pdf-link href="https://pdfcn.dev">Documentation</pdf-link>
<pdf-link href="#section-1" color="primary">Internal link</pdf-link>
</pdf-section>
</forme-page>
</forme-document>
`,
})
export class LinkDemo {}API Reference
PdfLink
| Input | Type | Default |
|---|---|---|
href |
string |
- |
align |
'left' | 'center' | 'right' |
'left' |
color |
string |
- |
variant |
'default' | 'muted' | 'primary' |
'default' |
underline |
'always' | 'none' |
'always' |