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/shipping-labelUsage
import { Component } from "@angular/core";
import { ShippingLabelDocument } from "@/components/pdf/blocks/shipping-label/shipping-label";
@Component({
imports: [ShippingLabelDocument],
template: `<pdf-shipping-label />`,
})
export class ShippingLabelDemo {}With a carrier barcode image
Provide barcodeUrl to render a full-width barcode image instead of the QR code:
import { Component } from "@angular/core";
import { ShippingLabelDocument } from "@/components/pdf/blocks/shipping-label/shipping-label";
import type { ShippingLabelData } from "@/components/pdf/blocks/shipping-label/shipping-label.types";
@Component({
imports: [ShippingLabelDocument],
template: `<pdf-shipping-label [data]="data" />`,
})
export class Label {
protected readonly data: ShippingLabelData = {
// ...
trackingNumber: "1Z999AA10123456784",
barcodeUrl: "https://example.com/barcodes/1Z999AA10123456784.png",
};
}Inputs
| Input | Type | Description |
|---|---|---|
data |
ShippingLabelData |
Label content: addresses, carrier, tracking, and package details |
theme |
PdfcnTheme |
Optional theme override |