Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

sandbox-pdflib

БесплатноБез исполняемых скриптовНе проверен

Build and merge PDF files in a Code node or CodeAct action, with pdf-lib running on the host

nodetool-aiот nodetool-ai★ 674 звезды на GitHub

Об этом скилле

PDF writing in the sandbox

Specifier: @nodetool-ai/sandbox-pdflib. Import it at the top of the body.

This pack writes PDFs. To extract text from an existing file, use @nodetool-ai/sandbox-pdf instead.

build — pages to PDF bytes

Coordinates are top-left, in PDF points (72 per inch). A US Letter page is 612×792.

import { build } from "@nodetool-ai/sandbox-pdflib";

const bytes = await build({
  pages: [
    {
      width: 612,
      height: 792,
      items: [
        { type: "text", x: 72, y: 72, text: "Hello", size: 24, color: "#111827" },
        { type: "image", x: 72, y: 120, width: 200, height: 120, data: inputs.logo }
      ]
    }
  ]
});
await workspace.writeBytes("hello.pdf", bytes);

Item types:

  • text — x, y, text, size (points, default 12), color (hex)
  • image — x, y, width, height, data (Uint8Array PNG or JPEG)

merge — concatenate PDFs

import { merge } from "@nodetool-ai/sandbox-pdflib";

const bytes = await merge([inputs.first, inputs.second]);
await workspace.writeBytes("combined.pdf", bytes);

Each entry is a Uint8Array of an existing PDF.

Gotchas

  • Host module. build and merge are async and return a Uint8Array.
  • At most 200 pages (or 200 source documents for merge).
  • Images are PNG or JPEG bytes, sniffed from the magic header.

Установить sandbox-pdflib в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

package.json

FAQ

Что делает скилл sandbox-pdflib?

Build and merge PDF files in a Code node or CodeAct action, with pdf-lib running on the host

Как установить скилл sandbox-pdflib?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл sandbox-pdflib запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить sandbox-pdflib с