Skip to content
HALOWERK

File Formats and Conversion

hpgl plot ink bounds

HP-GL ink bounds return the smallest axis-aligned rectangle enclosing all drawn centerline segments. Use it when an agent needs checking a plot job against its intended drawing area.

POST https://format.halowerk.com/v1/hpgl-plot-ink-bounds

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
hpglstringYes
Show full input schema
{
  "type": "object",
  "properties": {
    "hpgl": {
      "type": "string",
      "maxLength": 24000,
      "minLength": 1
    }
  },
  "required": [
    "hpgl"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "hpgl": "IN;SP1;PA;PU0,0;PD400,0,400,400,0,400,0,0;PU;SP2;PU0,200;PD400,200;PU;"
}

Result & documentation

Show published result schema
{
  "type": "object",
  "required": [
    "measured_at",
    "source",
    "data",
    "limitations"
  ],
  "properties": {
    "measured_at": {
      "type": "string"
    },
    "source": {
      "type": "object",
      "required": [
        "reference",
        "retrieved_at"
      ],
      "properties": {
        "reference": {
          "type": "string"
        },
        "retrieved_at": {
          "type": "string"
        }
      }
    },
    "data": {
      "type": "object",
      "properties": {
        "left_mm": {
          "type": "number"
        },
        "bottom_mm": {
          "type": "number"
        },
        "right_mm": {
          "type": "number"
        },
        "top_mm": {
          "type": "number"
        }
      },
      "required": [
        "left_mm",
        "bottom_mm",
        "right_mm",
        "top_mm"
      ]
    },
    "limitations": {
      "type": "string"
    }
  }
}

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-12-05 UTC.

More endpoints in this hub

All endpoints in this hub โ†’