@toolpal/pdf-toolkit
publicv2.0published 1 download this weekMIT
Local offline PDF toolkit with zero network access and no API key: inspect pages and metadata, merge multiple PDFs, split or extract page ranges, rotate pages, stamp text watermarks, extract embedded text page by page, and edit or strip document metadata.
You're viewing 1.0, an older version
The latest is 2.0.
{
"manifestVersion": 1,
"name": "@toolpal/pdf-toolkit",
"version": "1.0",
"description": "Local offline PDF toolkit with zero network access and no API key: inspect pages and metadata, merge multiple PDFs, split or extract page ranges, rotate pages, stamp text watermarks, extract embedded text page by page, and edit or strip document metadata.",
"license": "MIT",
"keywords": [
"pdf",
"merge",
"split",
"watermark",
"rotate",
"extract",
"documents",
"offline"
],
"entry": "dist/tool.mjs",
"sdk": "0.1.0",
"engines": {
"node": ">=22.15.0"
},
"inputSchema": {
"type": "object",
"required": [
"action"
],
"properties": {
"action": {
"anyOf": [
{
"type": "string",
"const": "inspect"
},
{
"type": "string",
"const": "merge"
},
{
"type": "string",
"const": "split"
},
{
"type": "string",
"const": "rotate"
},
{
"type": "string",
"const": "watermark"
},
{
"type": "string",
"const": "extract_text"
},
{
"type": "string",
"const": "set_metadata"
}
],
"description": "Operation to perform: inspect, merge, split, rotate, watermark, extract_text, or set_metadata"
},
"file": {
"type": "string",
"description": "Input PDF file (for inspect, split, rotate, watermark, extract_text, set_metadata)",
"x-toolpal-file": true
},
"files": {
"type": "array",
"items": {
"type": "string",
"description": "Input PDF files to merge (in order)",
"x-toolpal-file": true
},
"minItems": 2,
"maxItems": 50
},
"pages": {
"type": "string",
"maxLength": 200,
"description": "1-based page selection, e.g. \"1-3, 5, 8-end\" (for split, rotate, watermark, extract_text)"
},
"splitEvery": {
"type": "integer",
"minimum": 1,
"maximum": 500,
"description": "For action: split — split into separate PDFs of N pages each (max 50 output files)"
},
"degrees": {
"anyOf": [
{
"type": "number",
"const": 90
},
{
"type": "number",
"const": 180
},
{
"type": "number",
"const": 270
}
],
"description": "For action: rotate — clockwise rotation in degrees (90, 180, or 270)"
},
"watermark": {
"type": "string",
"minLength": 1,
"maxLength": 120,
"description": "For action: watermark — text to stamp on each selected page"
},
"position": {
"anyOf": [
{
"type": "string",
"const": "diagonal"
},
{
"type": "string",
"const": "header"
},
{
"type": "string",
"const": "footer"
}
],
"description": "For action: watermark — placement; diagonal by default"
},
"opacity": {
"type": "number",
"minimum": 0.05,
"maximum": 1,
"description": "Watermark opacity (0.05–1); default 0.2"
},
"fontSize": {
"type": "integer",
"minimum": 8,
"maximum": 120,
"description": "Watermark font size; default 48 for diagonal, 12 for header/footer"
},
"metadata": {
"type": "object",
"properties": {
"title": {
"type": "string",
"maxLength": 300
},
"author": {
"type": "string",
"maxLength": 300
},
"subject": {
"type": "string",
"maxLength": 500
},
"keywords": {
"type": "array",
"items": {
"type": "string",
"maxLength": 80
},
"maxItems": 30
},
"creator": {
"type": "string",
"maxLength": 200
}
}
},
"clearMetadata": {
"type": "boolean",
"description": "For action: set_metadata — wipe existing title/author/subject/keywords/creator/producer"
},
"filename": {
"type": "string",
"maxLength": 80,
"description": "Optional output filename stem without extension"
}
}
},
"outputSchema": {
"type": "object",
"required": [
"action",
"pageCount"
],
"properties": {
"action": {
"type": "string"
},
"pageCount": {
"type": "integer"
},
"bytes": {
"type": "integer"
},
"file": {
"type": "string",
"description": "Primary output file (.pdf or .txt)",
"x-toolpal-file": true
},
"files": {
"type": "array",
"items": {
"type": "string",
"description": "Multiple output PDFs (for splitEvery)",
"x-toolpal-file": true
}
},
"pages": {
"type": "array",
"items": {
"type": "object",
"required": [
"page",
"width",
"height",
"rotation"
],
"properties": {
"page": {
"type": "integer"
},
"width": {
"type": "number"
},
"height": {
"type": "number"
},
"rotation": {
"type": "integer"
}
}
}
},
"metadata": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"author": {
"type": "string"
},
"subject": {
"type": "string"
},
"keywords": {
"type": "string"
},
"creator": {
"type": "string"
},
"producer": {
"type": "string"
},
"creationDate": {
"type": "string"
},
"modificationDate": {
"type": "string"
}
}
},
"text": {
"type": "string",
"description": "Extracted text (for extract_text)"
},
"pagesText": {
"type": "array",
"items": {
"type": "object",
"required": [
"page",
"text"
],
"properties": {
"page": {
"type": "integer"
},
"text": {
"type": "string"
}
}
}
}
}
},
"permissions": {
"net": false,
"env": [],
"tmp": true
},
"limits": {
"timeoutMs": 60000,
"memoryMb": 512
},
"build": {
"toolpal": "0.1.0",
"esbuild": "0.28.2",
"options": "sha256-tMpkndD8HsDUvZadrPbEAMGGIGK7nvmTGxMMlUxy9Fo="
}
}