UNPKG

@bader-nasser/pdftools

Version:

PDF tools to manipulate and process PDF files

125 lines 5.12 kB
{ "$schema": "http://json-schema.org/draft-07/schema#", "$ref": "#/definitions/JsonFileObject", "definitions": { "JsonFileObject": { "type": "object", "additionalProperties": false, "properties": { "$schema": { "type": "string" }, "output": { "type": "string" }, "files": { "type": "array", "items": { "anyOf": [ { "type": "string" }, { "type": "object", "properties": { "name": { "type": "string", "description": "Name of input file." }, "pages": { "anyOf": [ { "type": [ "number", "string" ] }, { "type": "array", "items": { "type": [ "number", "string" ] } } ], "description": "Page ranges. See: https://github.com/bader-nasser/pdftools/blob/main/test/docs/data.txt" } }, "required": [ "name", "pages" ], "additionalProperties": false }, { "type": "object", "properties": { "name": { "type": "string", "description": "Name of input file." }, "data": { "type": "string", "description": "A text file that contains page ranges. See: https://github.com/bader-nasser/pdftools/blob/main/test/docs/data.txt" } }, "required": [ "name", "data" ], "additionalProperties": false } ] }, "description": "An array of file entries that forms the output. The entry can be a simple string of file name or an object which specifies the file name with selected pages OR applied data file." }, "compress": { "type": "boolean", "description": "Reduce file size" }, "dryRun": { "type": "boolean", "description": "Pretend to work!" }, "silent": { "type": "boolean", "description": "Work silently." }, "title": { "type": "string" }, "author": { "type": "string" }, "subject": { "type": "string" }, "keywords": { "type": "array", "items": { "type": "string" } }, "producer": { "type": "string" }, "creator": { "type": "string", "default": "pdftools (https://github.com/bader-nasser/pdftools)" }, "creationDate": { "type": "string" }, "modificationDate": { "type": "string" } }, "required": [ "files", "output" ] } } }