MCPcopy Create free account
hub / github.com/PSPDFKit/nutrient-document-engine-mcp-server / FilePart

Interface FilePart

src/api/DocumentEngineSchema.ts:4275–4327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4273 * }
4274 */
4275 export interface FilePart {
4276 file: FileHandle;
4277 /**
4278 * The password for the input file
4279 */
4280 password?: string;
4281 pages?: /**
4282 * Defines the range of pages in a document. The indexing starts from 0. It is possible
4283 * to use negative numbers to refer to pages from the last page. For example, `-1` refers to the last page.
4284 */
4285 PageRange;
4286 /**
4287 * Defines the layout of the generated pages.
4288 */
4289 layout?: {
4290 /**
4291 * The orientation of generated pages.
4292 */
4293 orientation?: 'portrait' | 'landscape';
4294 size?:
4295 | ('A0' | 'A1' | 'A2' | 'A3' | 'A4' | 'A5' | 'A6' | 'A7' | 'A8' | 'Letter' | 'Legal')
4296 | {
4297 /**
4298 * The width of pages in mm.
4299 * example:
4300 * 210
4301 */
4302 width?: number;
4303 /**
4304 * The height of pages in mm.
4305 * example:
4306 * 297
4307 */
4308 height?: number;
4309 };
4310 /**
4311 * The margins of generated pages. All dimensions are in mm.
4312 */
4313 margin?: {
4314 left?: number;
4315 top?: number;
4316 right?: number;
4317 bottom?: number;
4318 };
4319 };
4320 /**
4321 * The content type of the file. Used to determine the file type when the file content type is not available and can't be inferred.
4322 * example:
4323 * application/pdf
4324 */
4325 content_type?: string;
4326 actions?: BuildAction[];
4327 }
4328 /**
4329 * FillColor
4330 * example:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected