{
  "product": "Documents Black-White autodetect page count",
  "url": "https://wp2print.net/shop/documents-black-white-autodetect-page-count/",
  "price_page": "https://wp2print.net/shop/documents-black-white-autodetect-page-count/prices/",
  "currency": "USD",
  "prices_include_tax": false,
  "updated": "2025-01-08",
  "product_type": "book",
  "detail": "full",
  "rules": {
    "formula": "total = (printing[size](printed_pages) + binding[size,binding](books))",
    "measures": {"printed_pages": "books × Printed pages per book", "books": "number of books"},
    "price_basis": "each price is the total for the number in its column, not a unit price",
    "lookup": "table[keys](measure) = the row whose keys match the chosen options, at the value of the measure",
    "interpolation": "linear",
    "above_max_column": "extrapolate_last_slope",
    "below_min_column": "proportional_to_first_column",
    "min_books": 1
  },
  "options": {
    "size": ["Letter 8.5x11", "11in x 17in (Legal)"],
    "binding": ["None", "Staple top-left corner", "Staples left-edge", "Ring binder", "Perfect", "Spiral"]
  },
  "tables": {
    "printing": {
      "price_of": "printing",
      "priced_by": "printed_pages",
      "columns": [1, 50, 100, 1000],
      "keys": ["size"],
      "rows": [{"size": "Letter 8.5x11", "prices": [0.1, 5, 9.5, 85]}, {"size": "11in x 17in (Legal)", "prices": [0.2, 9, 17, 80]}]
    },
    "binding": {
      "price_of": "Binding",
      "priced_by": "books",
      "columns": [1, 10],
      "keys": ["size", "binding"],
      "rows": [
        {"size": "Letter 8.5x11", "binding": "None", "prices": [0, 0]},
        {"size": "Letter 8.5x11", "binding": "Staple top-left corner", "prices": [0.5, 5]},
        {"size": "Letter 8.5x11", "binding": "Staples left-edge", "prices": [0.5, 5]},
        {"size": "Letter 8.5x11", "binding": "Ring binder", "prices": [4, 40]},
        {"size": "Letter 8.5x11", "binding": "Perfect", "prices": [2, 20]},
        {"size": "Letter 8.5x11", "binding": "Spiral", "prices": [3, 30]},
        {"size": "11in x 17in (Legal)", "binding": "None", "prices": [0, 0]},
        {"size": "11in x 17in (Legal)", "binding": "Staple top-left corner", "prices": [0, 0]},
        {"size": "11in x 17in (Legal)", "binding": "Staples left-edge", "prices": [0, 0]},
        {"size": "11in x 17in (Legal)", "binding": "Ring binder", "prices": [0, 0]},
        {"size": "11in x 17in (Legal)", "binding": "Perfect", "prices": [0, 0]},
        {"size": "11in x 17in (Legal)", "binding": "Spiral", "prices": [0, 0]}
      ]
    }
  },
  "example": {
    "input": {"books": 50, "size": "Letter 8.5x11", "printing": {"pages_per_book": 40}, "binding": "Staple top-left corner"},
    "lines": [{"table": "printing", "printed_pages": 2000, "price": 168.89}, {"table": "binding", "books": 50, "price": 25}],
    "subtotal": 193.89,
    "total": 193.89
  },
  "note": "Account or group pricing may differ. The price shown in the cart is authoritative.",
  "seller": {
    "name": "Acme Print Shop",
    "url": "https://wp2print.net/",
    "location": "Kittery, Maine, United States",
    "service_area": "Kittery, Eliot, York county and southern Maine"
  }
}
