Tất cả Tool›PDF to JPG
Công cụ PDF

PDF to JPG

pdf-to-jpg

Use PDF to JPG through the Zavilo SDK. Check input limits, parameters, output and supported modes below.

H · HeadlessE · Embedded
Tool IDpdf-to-jpg
Version1
ExecutionCLIENT
WorkloadSTANDARD
ModesHeadless, Embedded

Quick actions

Input files 1Output files 1–999

Đầu vào

Accepted input contract for this Tool.

Kindfile
File count1 – 1
Accepted MIME typesapplication/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ả
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.

Đầu ra

Result contract returned after successful processing.

Typefiles
File count1 – 999
MIME typesimage/jpeg
MetadatapageCount, selectedPages, outputCount, width, height, inputBytes, outputBytes
ZIP archiveYes · threshold 2

Ví dụ cơ bản

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.