VOOZH about

URL: https://apify.com/junipr/image-to-pdf

⇱ Image to PDF Converter - JPG, PNG, WebP Β· Apify


Pricing

from $2.60 / 1,000 image converteds

Go to Apify Store

Image to PDF Converter

Convert images (JPG, PNG, WebP, GIF, BMP, TIFF, SVG) to PDF. Custom page size, orientation, margins, scaling. Batch convert multiple images into one PDF or separate files. Output in key-value store.

Pricing

from $2.60 / 1,000 image converteds

Rating

0.0

(0)

Developer

πŸ‘ junipr

junipr

Maintained by Community

Actor stats

0

Bookmarked

4

Total users

0

Monthly active users

a month ago

Last modified

Share

Convert images from URLs into a professionally formatted PDF document. Supports batch processing, multiple page sizes, orientations, fit modes, and image quality settings. Ideal for archiving, reporting, and document generation workflows.

Overview

This actor downloads images from provided URLs, processes them with sharp for optimal quality and compression, and assembles them into a single PDF using pdf-lib. Each image gets its own page, sized and positioned according to your configuration. Failed images are gracefully skipped with error reporting, so a single broken link never blocks the entire batch.

Features

  • Batch processing β€” Convert hundreds of images in a single run with parallel downloads
  • Multiple page sizes β€” A3, A4, A5, Letter, Legal, or Auto (sizes pages to match images)
  • Flexible orientation β€” Portrait, landscape, or auto-detect based on image aspect ratio
  • Four fit modes β€” Fit (maintain ratio), fill (cover page), stretch, or original size
  • Configurable quality β€” JPEG compression from 1-100 for size vs quality tradeoff
  • PNG transparency β€” Transparent PNGs are preserved as-is; opaque images convert to JPEG
  • Page numbers β€” Optional centered page numbers at the bottom of each page
  • PDF metadata β€” Set title and author in document properties
  • Retry logic β€” Failed downloads retry up to 3 times with exponential backoff

Input Example

{
"images":[
{"url":"https://example.com/photo1.jpg","label":"Cover"},
{"url":"https://example.com/chart.png","label":"Q4 Results"},
{"url":"https://example.com/diagram.png"}
],
"pageSize":"A4",
"orientation":"auto",
"fitMode":"fit",
"imageQuality":85,
"addPageNumbers":true,
"title":"Quarterly Report",
"outputFileName":"report.pdf"
}

Output

The actor saves the generated PDF to the default key-value store and pushes metadata to the dataset:

{
"fileName":"report.pdf",
"pageCount":3,
"fileSizeBytes":524288,
"kvStoreKey":"report.pdf",
"images":[
{"url":"https://example.com/photo1.jpg","originalSize":{"width":1920,"height":1080},"pageNumber":1,"status":"success"},
{"url":"https://example.com/chart.png","originalSize":{"width":800,"height":600},"pageNumber":2,"status":"success"},
{"url":"https://example.com/diagram.png","originalSize":{"width":1200,"height":900},"pageNumber":3,"status":"success"}
],
"processingTimeMs":2100
}

Use Cases

  • Report generation β€” Combine charts, screenshots, and photos into a single downloadable PDF
  • Image archival β€” Batch-convert image collections into organized PDF documents
  • Invoice/receipt compilation β€” Merge scanned images into one document for accounting
  • Portfolio creation β€” Assemble design work or photography into a presentation-ready PDF
  • Monitoring dashboards β€” Capture and compile dashboard screenshots on a schedule

Pricing

This actor uses pay-per-event pricing. You are charged per image successfully converted and embedded in the PDF. Failed images are not charged.

EventPrice
Image converted$3.00 per 1,000 images

Integrations

Combine this actor with other tools in your workflow:

  • Use a web scraper to extract image URLs, then pipe them into this actor
  • Schedule regular runs to compile daily screenshots into PDF reports
  • Chain with email or cloud storage actors to deliver PDFs automatically

FAQ

What image formats are supported?

Any format supported by sharp: JPEG, PNG, WebP, AVIF, TIFF, GIF (first frame), and SVG. Images are automatically converted to JPEG for optimal PDF size, except transparent PNGs which are preserved.

What happens if an image URL is broken?

The actor retries each download up to 3 times. If all attempts fail, that image is skipped and reported with status "failed" in the output. The PDF is still generated with all successful images.

How large can the output PDF be?

The actor runs with 2 GB of memory by default. For very large batches (500+ high-resolution images), consider increasing the memory allocation in run options.

You might also like

Convert Image to PDF and PDF to Image

akash9078/image-pdf-converter

Convert images (JPG, PNG, BMP, and more) into high-quality PDFs, or extract images from PDF files in seconds. Image–PDF Converter Pro delivers fast, reliable, and professional results for all your document and image conversion needs.

πŸ‘ User avatar

Akash Kumar Naik

37

HTML to PDF Converter

rainminer/html-to-pdf-converter

Convert raw HTML or web page URLs into downloadable PDF files using a real browser. Render CSS, images, tables, invoices, reports, and dynamic layouts, then save the generated PDF to the Apify Key-Value Store with dataset metadata.

HTML to PDF Converter

automation-lab/html-to-pdf-converter

Convert HTML content or web pages to PDF documents. Supports raw HTML strings, single URLs, and bulk URL lists. Full control over page size, margins, orientation, headers, and footers.

πŸ‘ User avatar

Stas Persiianenko

27

PDF Scraper

onidivo/pdf-scraper

Scrape and extract text from PDF links.

πŸ‘ User avatar

Onidivo Technologies

512

Image Format Converter

rixin/image-format-converter

From $0.05/1k images. Image Format Converter - Transform images between JPEG, PNG, WebP, BMP, GIF, TIFF, ICO, and AVIF formats. Supports batch processing with adjustable quality settings. Input any URL or Apify storage file. Fast and reliable.

File Converter All-in-one

tufantoksoz/file-converter

Convert files between popular formats at scale on Apify. Transform documents, spreadsheets, and images with professional-grade quality and performance. Convert word to pdf, jpeg to png and more

πŸ‘ User avatar

Tufan ToksΓΆz

12

Website To PDF Converter

louisdeconinck/website-to-pdf-converter

Convert websites to high-quality PDF documents with customizable options. This powerful actor allows you to transform website pages with both static HTML and dynamic content into professional-grade PDFs, offering a wide range of customization features such as page format, orientation, margins, …

πŸ‘ User avatar

Louis Deconinck

144

5.0