Herramientas PDF
Sign PDF
pdf-signature
Use Sign PDF through the Zavilo SDK. Check input limits, parameters, output and supported modes below.
H · HeadlessI · Interactive
Acciones rápidas
Archivos de entrada 1Archivos de salida 1
Entrada
Formatos de entrada y número de archivos admitidos por esta Tool.
| Tipo de entrada | file |
|---|---|
| N.º de archivos | 1 – 1 |
| MIME admitidos | application/pdf |
Parámetros
Pasa estos valores mediante request.options.
| Parámetro | Tipo | Obligatorio | Predeterminado | Valores / Rango | Descripción |
|---|---|---|---|---|---|
page |
integer | Opcional | 1 |
1 – ∞ | 1-based PDF page number to sign. |
boxX |
number | Opcional | 0.58 |
0 – 1 | Signature left coordinate from 0 to 1. |
boxY |
number | Opcional | 0.72 |
0 – 1 | Signature top coordinate from 0 to 1. |
boxWidth |
number | Opcional | 0.28 |
0.08 – 0.75 | Signature width from 0 to 1. |
Salida
Formato del resultado devuelto al completar el procesamiento.
| Tipo | files |
|---|---|
| N.º de archivos | 1 – 1 |
| MIME de salida | application/pdf |
| Metadata | pageCount, inputBytes, outputBytes, outputCount |
| Archivo ZIP | No compatible |
Uso básico
Elige un modo compatible y copia el código inicial generado.
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.