PDF-Tools
PDF to JPG
pdf-to-jpg
Use PDF to JPG through the Zavilo SDK. Check input limits, parameters, output and supported modes below.
H · Headless
Schnellzugriff
Eingabedateien 1Ausgabedateien 1–999
Eingabe
Zulässige Eingabeformate und Dateianzahl für dieses Tool.
| Eingabetyp | file |
|---|---|
| Dateianzahl | 1 – 1 |
| Zulässige MIME-Typen | application/pdf |
Parameter
Diese Werte über request.options übergeben.
| Parameter | Typ | Erforderlich | Standard | Zulässig / Bereich | Beschreibung |
|---|---|---|---|---|---|
pages |
enum | Optional | all |
all | selected | Convert all pages or only pageRange. |
pageRange |
string | Optional | 1 |
— | Selected pages, for example 1,3,5-8. |
scale |
enum | Optional | 2 |
1 | 1.5 | 2 | 3 | PDF render scale: 1=72 DPI, 1.5=108 DPI, 2=144 DPI, 3=216 DPI. |
quality |
integer | Optional | 92 |
60 – 100 | JPG quality percentage. |
Ausgabe
Nach erfolgreicher Verarbeitung zurückgegebenes Ergebnisformat.
| Typ | files |
|---|---|
| Dateianzahl | 1 – 999 |
| Ausgabe-MIME | image/jpeg |
| Metadata | pageCount, selectedPages, outputCount, width, height, inputBytes, outputBytes |
| ZIP-Archiv | Unterstützt · threshold 2 |
Grundlegende Verwendung
Unterstützten Integrationsmodus wählen und den erzeugten Starter-Code kopieren.
Headless
const result = await client.run("pdf-to-jpg", {
file,
options: { pages: "all", pageRange: "1", scale: 2, quality: 92 }
});
console.log(result.files, result.data, result.metadata);
Embedded
await client.mount({ tool: "pdf-to-jpg", target: "#zavilo-tool", mode: "embedded" });
This page is generated from the SDK Tool Definition used by the runtime.