For the complete documentation index, see llms.txt. Markdown variants are available by appending .md to any docs URL. An agent skill is available at /.well-known/agent-skills/site-skill.md.
0Sponsor

Heading

Document headings with typographic scale.

Takumi Forme
Rendering PDF…

Installation

$ pnpm dlx shadcn@latest add @angular-pdfcn/takumi/heading

Usage

import { Component } from "@angular/core";

import { PdfHeading } from "@/components/pdf/heading/heading";
import { PdfSection } from "@/components/pdf/section/section";
import { PdfcnThemeProvider } from "@/components/pdf/theme-provider";
import {
  TakumiDocument,
  TakumiPage,
} from "@/lib/pdf-primitives";

@Component({
  imports: [
    TakumiDocument,
    TakumiPage,
    PdfcnThemeProvider,
    PdfHeading,
    PdfSection,
  ],
  template: `
    <takumi-document>
      <takumi-page size="A4">
        <pdf-theme-provider>
          <pdf-section spacing="none">
            <pdf-heading [level]="1">Main Title</pdf-heading>
            <pdf-heading [level]="2" align="center" color="primary"
              >Subtitle</pdf-heading
            >
            <pdf-heading [level]="3" [style]="{ color: '#1e3a5f' }"
              >Custom Styled</pdf-heading
            >
          </pdf-section>
        </pdf-theme-provider>
      </takumi-page>
    </takumi-document>
  `,
})
export class HeadingDemo {}

API Reference

PdfHeading

Input Type Default
level 1 | 2 | 3 | 4 | 5 | 6 1
align 'left' | 'center' | 'right' 'left'
color string -
transform 'uppercase' | 'lowercase' | 'capitalize' -
weight 'normal' | 'medium' | 'semibold' | 'bold' 'bold'
tracking 'tighter' | 'tight' | 'normal' | 'wide' | 'wider' 'normal'
noMargin boolean false
keepWithNext boolean -