sandbox-pdflib
БесплатноБез исполняемых скриптовНе проверенBuild and merge PDF files in a Code node or CodeAct action, with pdf-lib running on the host
от 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(Uint8ArrayPNG 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.
buildandmergeare async and return aUint8Array. - 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
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic