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
Quick actions
Input files 1Output files 1–999
Input
Accepted input contract for this Tool.
| Kind | file |
|---|---|
| File count | 1 – 1 |
| Accepted MIME types | application/pdf |
Parameters
Pass these values through request.options.
| Parameter | Type | Required | Default | Allowed / Range | Description |
|---|---|---|---|---|---|
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. |
Output
Result contract returned after successful processing.
| Type | files |
|---|---|
| File count | 1 – 999 |
| MIME types | image/jpeg |
| Metadata | pageCount, selectedPages, outputCount, width, height, inputBytes, outputBytes |
| ZIP archive | Yes · threshold 2 |
Basic usage
Choose a supported integration mode and copy the generated starter code.
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.