makesPDF

PDF templates / Packing Slip

Branded Packing Slip

Forest-green branded A4 packing slip: a coloured header bar with the company name and a contact line, a large title beside the box count, ship-to and order-detail columns, a numbered item table showing ordered and shipped quantities with a ✓ or ✗ line status, a tinted totals row, and an optional notes box. No prices.

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

DSL source

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

js
// Packing Slip — Branded / Forest Green
// Professional look with colored accents, green header bar and table headers.
// Best for: Outdoor brands, specialty retailers, premium fulfillment.

const green = "#2d6a4f";
const ltGreen = "#ecfdf5";
const darkGreen = "#1b4332";

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

const template = doc({
  size: "A4",
  title: "Packing Slip — {{orderNumber}}",
  styles: {
    ".green-bar": { "background-color": green, padding: [12, 14, 12, 14], margin: [0, 0, 8, 0] },
    ".green-bar-text": { "font-size": 16, "font-weight": "bold", color: "#ffffff" },
    ".green-bar-sub": { "font-size": 10, color: "#b7e4c7" },
    ".section-label": { "font-size": 8, "font-weight": "bold", color: green, margin: [0, 0, 3, 0] },
    ".table-header": { "font-size": 9, "font-weight": "bold", padding: [6, 6, 6, 6], "background-color": green, color: "#ffffff", border: [0, 0, 0, 0] },
    ".table-cell": { "font-size": 9, padding: [6, 6, 6, 6], border: [0, 0, 1, 0], "border-color": "#d1d5db" },
    ".summary-row": { "font-size": 10, "font-weight": "bold", "background-color": ltGreen, padding: [7, 8, 7, 8], color: darkGreen },
    ".notes-box": { border: [1, 1, 1, 1], "border-color": green, "border-radius": 3, padding: [8, 10, 8, 10], margin: [8, 0, 0, 0] },
    ".detail-label": { "font-size": 8, "font-weight": "bold", color: "#6b7280", margin: [1, 0, 1, 0] },
    ".detail-value": { "font-size": 10, margin: [0, 0, 0, 0] },
    ".partial": { "font-size": 8, "font-weight": "bold", color: "#dc2626" },
    ".complete": { "font-size": 8, color: "#16a34a" },
  },
},
  // Green header bar with company name
  col(".green-bar",
    s(".green-bar-text", "{{company.name}}"),
    s(".green-bar-sub", "{{company.address}} \u2022 {{company.city}} \u2022 {{company.phone}}"),
  ),
  // Title
  r(
    col("50%", s({ "font-size": 18, "font-weight": "bold", color: green }, "Packing Slip")),
    col({ width: "50%", align: "right" }, s({ "font-size": 9, color: "#666666" }, "Box {{boxCount}}")),
  ),
  gap(6),
  // Two-column: Ship To left, Order details right
  r(
    col("55%",
      s(".section-label", "SHIP TO"),
      bold("{{shipTo.name}}"),
      s(".body", "{{shipTo.attention}}"),
      s(".body", "{{shipTo.address}}"),
      s(".body", "{{shipTo.city}}, {{shipTo.country}}"),
      s(".body", "{{shipTo.phone}}"),
    ),
    col("45%",
      s(".section-label", "ORDER DETAILS"),
      r(
        col("40%", s(".detail-label", "Order #")),
        col("60%", s(".detail-value", "{{orderNumber}}")),
      ),
      r(
        col("40%", s(".detail-label", "Date")),
        col("60%", s(".detail-value", "{{date}}")),
      ),
      r(
        col("40%", s(".detail-label", "Shipping")),
        col("60%", s(".detail-value", "{{shippingMethod}}")),
      ),
      r(
        col("40%", s(".detail-label", "Tracking")),
        col("60%", s(".detail-value", "{{trackingNumber}}")),
      ),
    ),
  ),
  gap(8),
  // Items table with green header
  table(cols, "item in items",
    [["{{@index + 1}}", "6%", "center"], ["{{item.sku}}", "16%"], ["{{item.description}}", "40%"], ["{{item.qty}}", "14%", "center"], ["{{item.qtyShipped}}", "14%", "center"], ["{{item.qtyShipped == item.qty ? '\u2713' : '\u2717'}}", "10%", "center"]],
  ),
  gap(2),
  // Green-tinted summary row
  r(".summary-row",
    col("22%", s("Items ordered: {{totalItems}}")),
    col("22%", s("Items shipped: {{totalShipped}}")),
    col("22%", s("Box: {{boxCount}}")),
    col({ width: "34%", align: "right" },
      when("totalShipped != totalItems", s(".partial", "PARTIAL SHIPMENT")),
      when("totalShipped == totalItems", s(".complete", "SHIPMENT COMPLETE")),
    ),
  ),
  // Notes in bordered box
  when("notes",
    col(".notes-box",
      s({ "font-size": 9, "font-weight": "bold", color: green, margin: [0, 0, 3, 0] }, "Notes"),
      s(".body", "{{notes}}"),
    ),
  ),
  // Footer
  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-branded"}' \
  -o output.pdf