PDF kit command

file.removeMarks

Remove header & footer, watermark or background

Remove every header and footer, watermark or background Kition PDF (or a compatible tool) added. Undoable.

Kit
PDF 0.1.0 (.pdf)
Changes the document
yes

Parameters

Parameters of file.removeMarks
NameTypeRequiredDescription
kind"header_footer" | "watermark" | "background"yes
pagesinteger[]no1-based page numbers to remove marks from (default: all). (minItems 1)

Call through pdf_run

text
pdf_run {
  "path": "<file>.pdf",
  "steps": [{ "command": "file.removeMarks", "params": { "kind": <"header_footer" | "watermark" | "background"> } }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: pages. pdf_run answers the step’s result in completed[i].result.

Result

The kit gives no result schema for this command.

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "kind": {
      "enum": [
        "header_footer",
        "watermark",
        "background"
      ],
      "type": "string"
    },
    "pages": {
      "description": "1-based page numbers to remove marks from (default: all). (minItems 1)",
      "items": {
        "description": "(minimum 1)",
        "type": "integer"
      },
      "type": "array"
    }
  },
  "required": [
    "kind"
  ],
  "type": "object"
}

Generated from the command list of @kition/[email protected] and the kit itself (pdf_commands through @kition/[email protected], built from KitionAI/kition-pdf@b0d2725). As data: commands.jsonl.