Actions36
- HTML / URL to PDF Actions
- Sign & Watermark PDF Actions
- Screenshot Website to Image Actions
- OCR — Read Scanned PDFs & Image Actions
- Extract PDF Text & Table Actions
- PDF to Excel / CSV / Word / PowerPoint Actions
- Merge / Split PDF Actions
- Protect / Unlock PDF Actions
- Scrape Website HTML Actions
- Images to PDF Actions
- PDF to Image Actions
- Compare Document Actions
- File Management Actions
- Template Actions
Images to PDF → WebP to PDF
AI-generatedSummary
Converts one or more WebP images into a single PDF document, optionally scaling or cropping images to fit the page.
Inputs
- img2pdf_input_type — Specifies how to provide image data: URL(s) (default), Base64 (inline data), or File (binary property).
- img2pdf_urls_webp — Comma-separated list of public WebP image URLs to convert. Max 100 URLs; only visible when Input Type is set to URL.
- img2pdf_base64 — Base64-encoded image payload(s); each entry becomes a separate page in the PDF. Only visible when Input Type is set to Base64.
- img2pdf_binary_properties — Names of binary properties containing image files. Only visible when Input Type is set to File.
- img2pdf_page_size — PDF page size: A3, A4, A5, Legal, Letter, Tabloid, or Original (default).
- img2pdf_orientation — Page orientation: Portrait (default) or Landscape. Hidden when Page Size is set to Original.
- img2pdf_fit_mode — How the image is placed within the page: Fit (default, preserves aspect ratio), Fill (crops overflow), Stretch (distorts), or Original (keeps native size).
- img2pdf_margin — Uniform page margin in points (0–200). Default is 0.
- img2pdf_output — How the converted PDF is returned: URL (hosted link, default), Base64, Both, or Binary File (for piping).
- img2pdf_output_filename — Filename for the output PDF. Default is 'converted.pdf'.
Output shape
A list of items, each containing a PDF file. The structure of the PDF data depends on the Output Format setting.
If Output Format is URL, the file is hosted for 30 days. If Output Format is Base64, the data is encoded within the JSON response.
Examples
Example 1: Convert a list of WebP image URLs into a single A4 PDF.
Input Type: URL; Image URLs: List of WebP links; Page Size: A4; Output Format: URL.
Example 2: Convert Base64-encoded images into a PDF with a 20-point margin.
Input Type: Base64; Base64 Image(s): Encoded payloads; Margin: 20.
Example 3: Convert binary image files into a PDF and return the raw binary for piping.
Input Type: File; Binary Property Names: data; Output Format: Binary File.