Skip to content
HALOWERK

File Formats and Conversion

hpgl plot window clipping

Plot window clipping measures how much drawn centerline lies inside and outside a supplied rectangle. Use it when an agent needs estimating the ink lost when cropping a vector plot.

POST https://format.halowerk.com/v1/hpgl-plot-window-clipping

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
hpglstringYes
window_mmarrayYes
Show full input schema
{
  "type": "object",
  "properties": {
    "hpgl": {
      "type": "string",
      "maxLength": 24000,
      "minLength": 1
    },
    "window_mm": {
      "type": "array",
      "items": {
        "type": "number",
        "minimum": -300000,
        "maximum": 300000
      },
      "minItems": 4,
      "maxItems": 4
    }
  },
  "required": [
    "hpgl",
    "window_mm"
  ],
  "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;",
  "window_mm": [
    0,
    0,
    5,
    10
  ]
}

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": {
        "inside_mm": {
          "type": "number"
        },
        "outside_mm": {
          "type": "number"
        },
        "partly_clipped": {
          "type": "integer"
        }
      },
      "required": [
        "inside_mm",
        "outside_mm",
        "partly_clipped"
      ]
    },
    "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 โ†’