Skip to content

Images To Pdf MCP tool

MCP findutils:images_to_pdf

Combine JPG and PNG images into a single PDF, one image per page, in the order given. Choose a fixed A4 or Letter sheet with the image fitted inside it and centred, or "fit" for a page exactly the size of each image. Images are embedded as they are and never re-encoded, so nothing is lost. Input images and the output PDF are base64.

Needs an API key. Running a tool needs an API key. Keys are not for sale yet: ask for early access. About API keys

Arguments

application/json
  • images

    array required

    Base64-encoded JPG or PNG images, in page order.

  • page_size

    string optional

    Sheet size: "fit" makes each page the size of its image; "a4" or "letter" (any case) puts it on that sheet. Default: fit. One of fit · a4 · letter. Default "fit".

  • margin

    number optional

    Margin in points around a fixed sheet. Ignored when page_size is "fit". Default: 0. Default 0.

Example arguments

Verified
{
  "images": [
    "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkYPhfDwAChwGA60e6kgAAAABJRU5ErkJggg=="
  ],
  "page_size": "a4"
}