{"uid":"cap_IyNgo1j30kzTYogVxCoUb","slug":"tanod-docs-pdf-from-images-23e1e99c","name":"Tanod Docs – PDF from Images","description":"Documents: DOCX template fill, Office to PDF, any file to Markdown, PDF to Word, OCR, PDF pipeline.","url":"https://docs.tanod.dev/v1/pdf/from-images?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"images":{"type":"array","items":{"type":"object","properties":{"url":{"anyOf":[{"type":"string","maxLength":2048,"minLength":1},{"type":"null"}],"default":null,"description":"http(s) URL of a PNG, JPEG or WebP (at most 10 MB)."},"image_base64":{"anyOf":[{"type":"string","maxLength":13398872,"minLength":1},{"type":"null"}],"default":null,"description":"The image as base64; or use url."}},"additionalProperties":false},"maxItems":30,"minItems":1,"description":"1-30 images (PNG, JPEG, WebP), each {url} or {image_base64}."},"margin":{"type":"number","default":0,"maximum":144,"minimum":0,"description":"Points (1/72 in) around each image."},"output":{"enum":["base64","url"],"type":"string","default":"base64","description":"base64 (default): the file comes back inline as base64. url: the file is stored for 24 hours and the reply carries a download link (url, expires_at, bytes, content_type, sha256) instead of the base64, which keeps the file out of your context window."},"page_size":{"enum":["fit","a4","letter"],"type":"string","default":"fit","description":"fit (each page is its image's size), a4 or letter."},"orientation":{"enum":["auto","portrait","landscape"],"type":"string","default":"auto","description":"a4/letter only."}}},"responseSchema":{"type":"json","example":{"file":{"name":"images.pdf","bytes":3285,"pages":1,"data_base64":"JVBERi0xLjMKJeLj... (trimmed: 4,380 base64 characters in the reply)","content_type":"application/pdf"},"images":1,"operation":"from-images","page_size":"a4","input_bytes":2183,"input_pages":1,"output_bytes":3285,"untrusted_content":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_GxIyiyUM_YcP8FruESzJb","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts one or more images (PNG, JPEG, or WebP) into a single PDF document, with configurable page size, orientation, and margins.","exampleAgentPrompt":"Take these three JPEG screenshots — here are their URLs — and combine them into a single A4 PDF with a 10-point margin around each image, then give me a download link valid for 24 hours.","exampleUseCases":[{"title":"Compile scanned receipts into PDF","prompt":"I have 8 photos of receipts from my trip, here are their URLs — can you merge them all into a single letter-size PDF so I can attach it to my expense report?"},{"title":"Bundle product images for catalog","prompt":"Please combine these 5 product photos into one A4 PDF with a 5-point margin around each image — I need it as a base64 string so I can embed it directly."},{"title":"Archive whiteboard photos as PDF","prompt":"I took 3 photos of the whiteboard during today's meeting — here they are as base64 — can you turn them into a single PDF that fits each page to the image's natural size?"}],"resultDescription":"Returns a JSON object containing the resulting PDF as either inline base64 data or a 24-hour download URL (with expiry timestamp, byte size, content type, and SHA-256 hash), along with metadata such as page count, operation name, input and output byte sizes, and page size used.","failureModes":["Image URL unreachable or returns non-image content — request fails with an error","Image exceeds 10 MB size limit — rejected before processing","More than 30 images submitted — rejected due to maxItems constraint","Invalid base64 string supplied — decoding error returned","Unsupported image format (e.g. GIF or TIFF) — format rejection error","Network timeout fetching remote image URLs — partial or full failure"],"whenToPreferThis":"Choose this endpoint when you need a straightforward, per-call image-to-PDF conversion without standing up your own document infrastructure. It is especially suited for AI agent workflows that dynamically assemble PDFs from remote image URLs or in-memory base64 images, need configurable page sizing (fit/A4/letter) and orientation, and want the result either inline or as a temporary hosted download link. Prefer it over heavier document pipelines when the sole input is raster images rather than Office files or HTML.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T12:45:24.473Z","isFirstParty":false,"canonicalSlug":"tanod-docs-pdf-from-images-23e1e99c"}