Skip to content
Fourohtwo

Document tools

rengi.dev/v1/doc-tools/images-to-pdf

Document tools: One PDF from a set of images, one per page: scans, photos of documents, screenshots, slides. Pages sized to A4 or Letter with margins, or exactly to each image; phone photos are turned upright. Full schema: https://rengi.dev/v1/doc-tools/schema

BaseSolanaAnswering
POSThttps://rengi.dev/v1/doc-tools/images-to-pdf

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://rengi.dev/v1/doc-tools/images-to-pdf", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"images":[{"imageUrl":"https://rengi.dev/samples/photo.jpg"},{"imageUrl":"https://rengi.dev/samples/photo-edited.jpg"}],"pageSize":"A4"}),
});
console.log(await res.json());

Example input

{
  "images": [
    {
      "imageUrl": "https://rengi.dev/samples/photo.jpg"
    },
    {
      "imageUrl": "https://rengi.dev/samples/photo-edited.jpg"
    }
  ],
  "pageSize": "A4"
}

More from Rengi ForgeProvider status