Image to PDF Converter: JPG, PNG, WebP & HEIC avatar

Image to PDF Converter: JPG, PNG, WebP & HEIC

Pricing

$4.00 / 1,000 pdf createds

Go to Apify Store
Image to PDF Converter: JPG, PNG, WebP & HEIC

Image to PDF Converter: JPG, PNG, WebP & HEIC

Image to PDF converter: combine JPG, PNG, WebP, HEIC, AVIF or TIFF images into one PDF (or one PDF per image) from URLs or base64. JPEGs are embedded without recompression. A4, Letter or fit-to-image pages. For n8n, Make and AI agents. $0.004 per PDF.

Pricing

$4.00 / 1,000 pdf createds

Rating

0.0

(0)

Developer

Ferrolark

Ferrolark

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

4 days ago

Last modified

Features

Limited permissions

Share

Image to PDF API: Convert JPG, PNG, WebP and HEIC to PDF

Combine images into one PDF (or one PDF per image) with a single API call.

  • Lossless for JPEG: JPEG files are embedded as-is with img2pdf, so photos and scans keep their exact quality and the PDF stays small.
  • Any input: JPEG, PNG, WebP, AVIF, HEIC (iPhone photos), TIFF, GIF (first frame), BMP and SVG.
  • Page layout: page size = image size, or A4, Letter, Legal, A3, A5 with margins and automatic orientation.
  • Manifest: pages, bytes, SHA-256 and the source of each page.
  • Input as URLs or base64 for n8n and Make binaries.

Typical uses: receipts and scanned documents to one PDF, photo reports for inspections, and expense workflows that collect photos from a form.

Real example

A JPEG, a transparent PNG and a large photo on A4 pages with a 10 mm margin:

{
"imageUrls": [
"https://upload.wikimedia.org/wikipedia/commons/a/a9/Example.jpg",
"https://upload.wikimedia.org/wikipedia/commons/4/47/PNG_transparency_demonstration_1.png",
"https://upload.wikimedia.org/wikipedia/commons/thumb/3/3f/Fronalpstock_big.jpg/1280px-Fronalpstock_big.jpg"
],
"pageSize": "A4",
"marginMm": 10,
"outputFileName": "photos.pdf"
}
  • Run time: 3.8 s on Apify at 1,024 MB.
  • Platform usage: $0.0005.
  • Your cost: 1 PDF × $0.004 = $0.004.
OutputPagesBytes
photos.pdf3400,058

The two JPEGs were embedded with their original bytes. The PNG's transparency was flattened onto white, and the run returned a warning saying so.

Price and limits

  • $0.004 per PDF created, whatever the number of pages (up to 100 images).
  • With onePdfPerImage, each PDF is charged.
  • Invalid images fail the run before anything is charged.
  • Limits: 100 images and 100 MB per run, 50 megapixels per image.

Input

FieldDefaultWhat it does
imageUrlsnoneImage URLs in page order.
filesnone[{"base64": "...", "name": "scan.jpg"}], added after the URLs.
pageSizefitfit, A4, Letter, Legal, A3, A5.
orientationautoauto, portrait, landscape.
marginMm0Margin on paper sizes.
onePdfPerImagefalseOne PDF per image instead of one combined PDF.
outputFileNameimages.pdfName of the combined PDF.
titlenonePDF title metadata.
createShareableUrlfalseAlso return signed links that work without an Apify token.

Call it from code, n8n or an AI agent

API (synchronous):

curl -X POST "https://api.apify.com/v2/acts/ferrolark~image-to-pdf/run-sync-get-dataset-items?maxTotalChargeUsd=0.1" \
-H "Authorization: Bearer $APIFY_TOKEN" -H "Content-Type: application/json" \
-d '{"imageUrls": ["https://example.com/receipt1.jpg", "https://example.com/receipt2.jpg"], "pageSize": "A4"}'

n8n: paste this workflow on the canvas (Ctrl+V). Add a Header Auth credential with the name Authorization and the value Bearer <your Apify token>, and use it in both HTTP nodes. The second node downloads the PDF as an n8n binary.

{
"name": "Ferrolark image-to-pdf",
"nodes": [
{
"parameters": {},
"name": "When clicking Test workflow",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
0,
0
]
},
{
"parameters": {
"method": "POST",
"url": "https://api.apify.com/v2/acts/ferrolark~image-to-pdf/run-sync-get-dataset-items?maxTotalChargeUsd=0.05",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"sendBody": true,
"specifyBody": "json",
"jsonBody": "{\"imageUrls\": [\"https://upload.wikimedia.org/wikipedia/commons/a/a9/Example.jpg\"], \"pageSize\": \"A4\"}",
"options": {
"timeout": 300000
}
},
"name": "Run Actor",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
220,
0
]
},
{
"parameters": {
"url": "={{ $json.downloadUrl }}",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"options": {
"response": {
"response": {
"responseFormat": "file"
}
}
}
},
"name": "Download file",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
440,
0
]
}
],
"connections": {
"When clicking Test workflow": {
"main": [
[
{
"node": "Run Actor",
"type": "main",
"index": 0
}
]
]
},
"Run Actor": {
"main": [
[
{
"node": "Download file",
"type": "main",
"index": 0
}
]
]
}
}
}

AI agents (MCP): add the Apify MCP server (https://mcp.apify.com) to Claude, Cursor or any MCP client and allow ferrolark/image-to-pdf. The agent gets a typed tool with the input above.

FAQ

Why is my PDF the same size as my JPEGs?

Because JPEGs are not recompressed. To make it smaller, resize first with Image Compress & Resize or run PDF Compress on the result.

Does it keep transparency?

PDF pages here have no alpha channel; transparent areas become white.

Can I control the order?

Pages follow the order of imageUrls, then files.

More Ferrolark tools

  • Brand Name Availability Checker: domains, GitHub, npm, PyPI and more in one report.
  • Domain Intelligence Report: WHOIS, DNS, email security, SSL and hosting for any domain.
  • Launch Asset Pack: favicons, PWA icons, OG image and head tags from one logo.
  • Live Deploy QA: meta tags, canonical, robots, OG image and favicon of your deployed routes, with diffs between deploys.
  • Sitemap Delta: new, removed and broken URLs in any sitemap since the last run.
  • RSS Delta: only new RSS, Atom and JSON Feed items, de-duplicated.
  • PDF Merge API: merge PDFs from URLs or base64 with page ranges and a SHA-256 manifest.
  • PDF Split API: split a PDF by page ranges or every N pages, or extract pages, with a ZIP and manifest.
  • Image Convert: PNG, JPG, WebP, AVIF and HEIC conversion (SVG input too) from URLs or base64.
  • Image Compress & Resize: resize images and compress them to a target size in KB, WebP or AVIF.
  • PDF to Image: PDF pages to PNG, JPG or WebP at the DPI you choose.
  • PDF Compress: smaller PDFs, lossless or with image downsampling; charged only when smaller.
  • HTML to PDF & URL to PDF: web pages or raw HTML to PDF with headless Chrome.
  • Markdown to PDF: Markdown with tables, code and footnotes to a clean PDF.
  • DOCX to PDF: Word, Excel, PowerPoint and ODT to PDF with LibreOffice.
  • Data Convert: CSV, JSON, NDJSON and Excel XLSX in any direction.

Built by Ferrolark.