Skip to main content
Glama
PSPDFKit

Nutrient Document Engine MCP Server

by PSPDFKit
Common.ts731 B
import { AnnotationBbox } from '../api/DocumentEngineSchema.js'; /** * Format file size in a human-readable format */ export const formatFileSize = (bytes: number): string => { if (bytes === 0) return '0 B'; const sizes = ['B', 'KB', 'MB', 'GB', 'TB']; const i = Math.floor(Math.log(bytes) / Math.log(1024)); const value = bytes / Math.pow(1024, i); const precision = value >= 10 ? 0 : 1; return `${value.toFixed(precision)} ${sizes[i]}`; }; /** * Format annotation location for display. AnnotationBBox: [left, top, width, height] */ export function formatBBox(coordinates: AnnotationBbox): string { return `(left:${coordinates[0]}, top:${coordinates[1]}, width:${coordinates[2]}, height:${coordinates[3]})`; }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/PSPDFKit/nutrient-document-engine-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server