Công cụ PDF
Tách PDF
split-pdf
Use Split PDF through the Zavilo SDK. Check input limits, parameters, output and supported modes below.
H · Headless
Quick actions
Input files 1Output files 1–999
Đầu vào
Accepted input contract for this Tool.
| Kind | file |
|---|---|
| File count | 1 – 1 |
| Accepted MIME types | application/pdf |
Tham số
Pass these values through request.options.
| Parameter | Type | Bắt buộc | Mặc định | Giá trị / Phạm vi | Mô tả |
|---|---|---|---|---|---|
pagesPerFile |
integer | Optional | 1 |
1 – ∞ | Number of source PDF pages in each output PDF. |
Đầu ra
Result contract returned after successful processing.
| Type | files |
|---|---|
| File count | 1 – 999 |
| MIME types | application/pdf |
| Metadata | pageCount, pagesPerFile, outputCount, inputBytes, outputBytes |
| ZIP archive | Yes · threshold 2 |
Ví dụ cơ bản
Choose a supported integration mode and copy the generated starter code.
Headless
const result = await client.run("split-pdf", {
file,
options: { pagesPerFile: 1 }
});
console.log(result.files, result.data, result.metadata);
Embedded
await client.mount({ tool: "split-pdf", target: "#zavilo-tool", mode: "embedded" });
This page is generated from the SDK Tool Definition used by the runtime.