Alle Tools›PDF to PNG
PDF-Tools

PDF to PNG

pdf-to-png

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

H · HeadlessE · Embedded
Tool-IDpdf-to-png
Version1
AusführungCLIENT
ModiHeadless, Embedded

Schnellzugriff

Eingabedateien 1Ausgabedateien 1–999

Eingabe

Zulässige Eingabeformate und Dateianzahl für dieses Tool.

Eingabetypfile
Dateianzahl1 – 1
Zulässige MIME-Typenapplication/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.

Ausgabe

Nach erfolgreicher Verarbeitung zurückgegebenes Ergebnisformat.

Typfiles
Dateianzahl1 – 999
Ausgabe-MIMEimage/png
MetadatapageCount, selectedPages, outputCount, width, height, inputBytes, outputBytes
ZIP-ArchivUnterstützt · threshold 2

Grundlegende Verwendung

Unterstützten Integrationsmodus wählen und den erzeugten Starter-Code kopieren.

Headless

const result = await client.run("pdf-to-png", {
  file,
  options: { pages: "all", pageRange: "1", scale: 2 }
});
console.log(result.files, result.data, result.metadata);

Embedded

await client.mount({ tool: "pdf-to-png", target: "#zavilo-tool", mode: "embedded" });
This page is generated from the SDK Tool Definition used by the runtime.