PDF ツール
Sign PDF
pdf-signature
Use Sign PDF through the Zavilo SDK. Check input limits, parameters, output and supported modes below.
H · HeadlessI · Interactive
クイック操作
入力ファイル 1出力ファイル 1
入力
この Tool が受け付ける入力形式とファイル数です。
| 入力種類 | file |
|---|---|
| ファイル数 | 1 – 1 |
| 対応 MIME | application/pdf |
パラメータ
これらの値は request.options で渡します。
| パラメータ | 型 | 必須 | 既定値 | 許可値 / 範囲 | 説明 |
|---|---|---|---|---|---|
page |
integer | 任意 | 1 |
1 – ∞ | 1-based PDF page number to sign. |
boxX |
number | 任意 | 0.58 |
0 – 1 | Signature left coordinate from 0 to 1. |
boxY |
number | 任意 | 0.72 |
0 – 1 | Signature top coordinate from 0 to 1. |
boxWidth |
number | 任意 | 0.28 |
0.08 – 0.75 | Signature width from 0 to 1. |
出力
処理完了後に返される結果形式です。
| 型 | files |
|---|---|
| ファイル数 | 1 – 1 |
| 出力 MIME | application/pdf |
| Metadata | pageCount, inputBytes, outputBytes, outputCount |
| ZIP アーカイブ | 非対応 |
基本例
対応する統合モードを確認し、生成された開始コードをコピーできます。
Headless
const result = await client.run("pdf-signature", {
file,
options: { page: 1, boxX: 0.58, boxY: 0.72, boxWidth: 0.28 }
});
console.log(result.files, result.data, result.metadata);
Interactive
await client.open({
tool: "pdf-signature",
input: { file },
options: { page: 1, boxX: 0.58, boxY: 0.72, boxWidth: 0.28 },
onComplete(result) { console.log(result.files, result.data, result.metadata); }
});
Embedded
await client.mount({ tool: "pdf-signature", target: "#zavilo-tool", mode: "embedded" });
This page is generated from the SDK Tool Definition used by the runtime.