Skip to content
//PDF Toolkit – Merge, Split, Compress, Convert & Edit PDFs example\\

Images to one A4 PDF

Turns photos and PNG images into one A4 PDF with margins, page numbers and a title.

Updated November 13, 2026

What this example returns

The dataset’s “Images” view shows 7 columns: File, Image, Page, Width, Height, From, and Source file. See every output field.

What each setting does

The input this example runs PDF Toolkit – Merge, Split, Compress, Convert & Edit PDFs with. “Try this input” opens it in the console, where you can run it as-is or change any field first.

PDF and image links fileUrls

https://upload.wikimedia.org/wikipedia/commons/9/9a/Gull_portrait_ca_usa.jpg, https://upload.wikimedia.org/wikipedia/commons/4/47/PNG_transparency_demonstration_1.png

Links to the PDF files to work on, one per line (images such as JPEG, PNG, WebP, GIF, TIFF, BMP and HEIC become PDF pages). Up to 500 MB per file. Google Drive, Google Docs, Dropbox, GitHub and arXiv share links are turned into download links automatically. You can also upload files below, or take them from a…

What to do operations

imagesToPdf, pageNumbers, setMetadata

Pick one or more operations. They always run in this order, whatever order you pick them in: images to PDF, merge, extract / remove / reorder pages, rotate, watermark, page numbers, metadata, compress, password; then the readers (info, text, embedded images, page images) look at the finished PDF, and split cuts it…

Page number position pageNumberPosition

Bottom right

Where the number goes on each page.

Default: Bottom center → this example uses Bottom right

Page size pageSize

A4

Images are fitted into the page without cropping. 'Same as the image' makes each page exactly the image's size.

Page margin (mm) pageMarginMm

10

White border around each image.

Default: 0 → this example uses 10

Title metaTitle

Photos

Document title.

.json
{
  "fileUrls": [
    "https://upload.wikimedia.org/wikipedia/commons/9/9a/Gull_portrait_ca_usa.jpg",
    "https://upload.wikimedia.org/wikipedia/commons/4/47/PNG_transparency_demonstration_1.png"
  ],
  "operations": [
    "imagesToPdf",
    "pageNumbers",
    "setMetadata"
  ],
  "pageSize": "A4",
  "pageMarginMm": 10,
  "metaTitle": "Photos",
  "pageNumberPosition": "bottom-right"
}

What it costs

You pay for the events the actor reports, such as each result or page it produces. Platform usage is included in the event prices: compute, proxies, browser and storage cost nothing extra.

  • File loaded$0.00425Each PDF or image file that was downloaded and opened. Files that cannot be downloaded or opened are free.
  • Embedded image saved$0.0017Each embedded image saved from a PDF.
  • Info and metadata read$0.00425Each file whose info and metadata were read.
  • Page converted to an image$0.00425Each PDF page saved as a PNG, JPEG, WebP or TIFF image.
  • Page processed$0.0017Each page a page step writes: merge, split, extract, remove or reorder pages, rotate, watermark, page numbers and compress (counted per step).
  • PDF compressed$0.0085Each compressed PDF.

Full pricing

Other ways to run PDF Toolkit – Merge, Split, Compress, Convert & Edit PDFs

All examples of PDF Toolkit – Merge, Split, Compress, Convert & Edit PDFs

About PDF Toolkit – Merge, Split, Compress, Convert & Edit PDFs

Merge, split, compress, rotate, reorder, extract or remove pages, add watermarks and page numbers, convert pages to images and images to PDF, extract text and embedded images, read and write metadata, and add or remove passwords. Chain several steps in one run; every output file gets a download link.

Price:
$4.25 / 1,000 results
Developer:
Querystone

PDF Toolkit – Merge, Split, Compress, Convert & Edit PDFs pageOutput fieldsPricing

Related actors

//From the blog\\

Latest articles

All articles

The internet is full of data.
Start owning yours.

Scrape.ly gives you the infrastructure, the tooling, and the team to extract, process, and operationalize web data at any scale. Setup takes minutes.

No credit card. No setup calls.