makesPDF

PDF templates / Packing Slip

Clean Packing Slip

Light, airy A4 packing slip with thin rules and muted labels: a minimal header, a four-field order grid, ship-to and bill-to columns, an item table showing ordered and shipped quantities with a per-line ✓ or PARTIAL status, a box and item summary with a complete-or-partial shipment flag, and an optional notes box. No prices.

First page of the Clean Packing Slip template, rendered with its sample data
packing-slip-clean.pdfpage 1 of 1

DSL source

The whole template. Learn the language in the template DSL guide.

js
// Packing Slip — Clean / Minimal (Stripe-inspired)
// Light, airy layout with thin dividers and muted labels. No prices.
// Best for: E-commerce, DTC brands, modern warehouses.

const cols = [["SKU", "16%"], ["Description", "40%"], ["Ordered", "14%", "center"], ["Shipped", "14%", "center"], ["Status", "16%", "center"]];

const template = doc({
  size: "A4",
  title: "Packing Slip — {{orderNumber}}",
  styles: {
    ".backorder": { "font-size": 9, "font-weight": "bold", color: "#dc2626" },
    ".ok": { "font-size": 9, color: "#16a34a" },
    ".meta-label": { "font-size": 8, "font-weight": "bold", color: "#6b7280", margin: [1, 0, 1, 0] },
    ".meta-value": { "font-size": 10, margin: [0, 0, 4, 0] },
    ".summary-row": { "font-size": 10, "background-color": "#f9fafb", padding: [6, 8, 6, 8], margin: [2, 0, 0, 0] },
    ".notes-box": { "font-size": 9, border: [1, 1, 1, 1], "border-color": "#e5e7eb", "border-radius": 3, padding: [8, 10, 8, 10], margin: [6, 0, 0, 0] },
  },
},
  // Header: "Packing Slip" left, company name right
  minHdr("Packing Slip", "{{company.name}}"),
  // Metadata grid
  r(
    col("25%",
      s(".meta-label", "ORDER #"),
      s(".meta-value", "{{orderNumber}}"),
    ),
    col("25%",
      s(".meta-label", "DATE"),
      s(".meta-value", "{{date}}"),
    ),
    col("25%",
      s(".meta-label", "SHIPPING METHOD"),
      s(".meta-value", "{{shippingMethod}}"),
    ),
    col("25%",
      s(".meta-label", "TRACKING #"),
      s(".meta-value", "{{trackingNumber}}"),
    ),
  ),
  hr(),
  // Addresses
  addrs(
    { label: "Ship to", lines: ["{{shipTo.name}}", "{{shipTo.attention}}", "{{shipTo.address}}", "{{shipTo.city}}", "{{shipTo.country}}", "{{shipTo.phone}}"] },
    { label: "Bill to", lines: ["{{billTo.name}}", "{{billTo.address}}", "{{billTo.city}}", "{{billTo.country}}"] },
  ),
  gap(8),
  // Items table
  table(cols, "item in items",
    [["{{item.sku}}", "16%"], ["{{item.description}}", "40%"], ["{{item.qty}}", "14%", "center"], ["{{item.qtyShipped}}", "14%", "center"], ["{{item.qtyShipped == item.qty ? '\u2713' : 'PARTIAL'}}", "16%", "center"]],
  ),
  gap(4),
  // Summary
  r(".summary-row",
    col("25%", s({ "font-weight": "bold" }, "Box: {{boxCount}}")),
    col("25%", s("Total items ordered: {{totalItems}}")),
    col("25%", s("Total items shipped: {{totalShipped}}")),
    col({ width: "25%", align: "right" },
      when("totalShipped != totalItems", s(".backorder", "PARTIAL SHIPMENT")),
      when("totalShipped == totalItems", s(".ok", "COMPLETE")),
    ),
  ),
  // Notes
  when("notes",
    col(".notes-box",
      s({ "font-size": 9, "font-weight": "bold", margin: [0, 0, 3, 0] }, "Notes"),
      s(".body", "{{notes}}"),
    ),
  ),
  ftrPages("{{company.name}}"),
);

const sampleData = {
  orderNumber: "ORD-88421",
  date: "15 March 2026",
  shippingMethod: "FedEx Ground",
  trackingNumber: "7489 2847 3910 4821",
  company: {
    name: "Cascade Outdoor Gear",
    address: "900 Pioneer Way",
    city: "Portland, OR 97209",
    country: "United States",
    phone: "(503) 555-0234",
  },
  shipTo: {
    name: "Mountain View Lodge",
    attention: "Attn: Receiving Dept",
    address: "4200 Summit Road",
    city: "Bend, OR 97701",
    country: "United States",
    phone: "(541) 555-0189",
  },
  billTo: {
    name: "Mountain View Lodge",
    address: "PO Box 1240",
    city: "Bend, OR 97701",
    country: "United States",
  },
  items: [
    { sku: "COG-TN-440", description: "4-person dome tent — Alpine Green", qty: 3, qtyShipped: 3 },
    { sku: "COG-SB-220", description: "Down sleeping bag — rated -10C", qty: 6, qtyShipped: 6 },
    { sku: "COG-BP-380", description: "65L hiking backpack — Charcoal", qty: 4, qtyShipped: 4 },
    { sku: "COG-CK-150", description: "Portable camp stove — dual burner", qty: 2, qtyShipped: 1 },
    { sku: "COG-WB-080", description: "Insulated water bottle 1L — Steel", qty: 12, qtyShipped: 12 },
    { sku: "COG-HL-060", description: "LED headlamp — rechargeable", qty: 6, qtyShipped: 6 },
  ],
  totalItems: 33,
  totalShipped: 32,
  notes: "1x Portable camp stove (COG-CK-150) on backorder — expected ship date 22 March 2026.",
  boxCount: "3 of 3",
};

Sample data

json
{
  "orderNumber": "ORD-88421",
  "date": "15 March 2026",
  "shippingMethod": "FedEx Ground",
  "trackingNumber": "7489 2847 3910 4821",
  "company": {
    "name": "Cascade Outdoor Gear",
    "address": "900 Pioneer Way",
    "city": "Portland, OR 97209",
    "country": "United States",
    "phone": "(503) 555-0234"
  },
  "shipTo": {
    "name": "Mountain View Lodge",
    "attention": "Attn: Receiving Dept",
    "address": "4200 Summit Road",
    "city": "Bend, OR 97701",
    "country": "United States",
    "phone": "(541) 555-0189"
  },
  "billTo": {
    "name": "Mountain View Lodge",
    "address": "PO Box 1240",
    "city": "Bend, OR 97701",
    "country": "United States"
  },
  "items": [
    {
      "sku": "COG-TN-440",
      "description": "4-person dome tent — Alpine Green",
      "qty": 3,
      "qtyShipped": 3
    },
    {
      "sku": "COG-SB-220",
      "description": "Down sleeping bag — rated -10C",
      "qty": 6,
      "qtyShipped": 6
    },
    {
      "sku": "COG-BP-380",
      "description": "65L hiking backpack — Charcoal",
      "qty": 4,
      "qtyShipped": 4
    },
    {
      "sku": "COG-CK-150",
      "description": "Portable camp stove — dual burner",
      "qty": 2,
      "qtyShipped": 1
    },
    {
      "sku": "COG-WB-080",
      "description": "Insulated water bottle 1L — Steel",
      "qty": 12,
      "qtyShipped": 12
    },
    {
      "sku": "COG-HL-060",
      "description": "LED headlamp — rechargeable",
      "qty": 6,
      "qtyShipped": 6
    }
  ],
  "totalItems": 33,
  "totalShipped": 32,
  "notes": "1x Portable camp stove (COG-CK-150) on backorder — expected ship date 22 March 2026.",
  "boxCount": "3 of 3"
}

Render it with your data

Any API key can render this template by its ID. This call uses the sample data; add a data object to use your own. See the API reference.

bash
curl -X POST https://makespdf.com/api/v1/render \
  -H "Authorization: Bearer $MAKESPDF_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"templateId": "packing-slip-clean"}' \
  -o output.pdf