{"uid":"cap_xICWUJHrcuJ_oS51-3X2k","slug":"tanod-docs-pdf-to-images-27753725","name":"Tanod Docs PDF to 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/to-images?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"dpi":{"type":"integer","default":150,"maximum":300,"minimum":36,"description":"36-300 (default 150)."},"url":{"anyOf":[{"type":"string","maxLength":2048,"minLength":1},{"type":"null"}],"default":null,"description":"Public http(s) URL of the PDF (at most 20 MB; private, internal and IP-literal hosts are refused); or use pdf_base64."},"pages":{"anyOf":[{"type":"string","pattern":"^[0-9a-zA-Z ,\\-]+$","maxLength":200,"minLength":1},{"type":"null"}],"default":null,"description":"Pages to render (default all; at most 20 per call). A closed selection of at most 5 pages is the lower price."},"format":{"enum":["png","jpeg"],"type":"string","default":"png","description":"png (default) or jpeg."},"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."},"grayscale":{"type":"boolean","default":false,"description":"Render in grayscale."},"pdf_base64":{"anyOf":[{"type":"string","maxLength":13398872,"minLength":1},{"type":"null"}],"default":null,"description":"The PDF as base64 (at most 10 MB decoded per request); or use url."},"jpeg_quality":{"type":"integer","default":85,"maximum":95,"minimum":30,"description":"JPEG quality (30-95, default 85)."}}},"responseSchema":{"type":"json","example":{"dpi":72,"files":[{"dpi":72,"name":"page-1.png","page":1,"bytes":5915,"width":595,"height":842,"data_base64":"iVBORw0KGgoAAAAN... (trimmed: 7,888 base64 characters in the reply)","content_type":"image/png"}],"format":"png","operation":"to-images","file_count":1,"input_bytes":13264,"input_pages":1,"output_bytes":5915,"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_ktXlGxAB4BC29GEf2f-lO","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 pages of a PDF file into PNG or JPEG images at a specified DPI, returning them inline as base64 or as 24-hour download URLs.","exampleAgentPrompt":"Can you convert pages 1 through 3 of this PDF (https://example.com/report.pdf) into PNG images at 150 DPI and give me the base64 output?","exampleUseCases":[{"title":"PDF thumbnail preview for web app","prompt":"I need to render the first page of this PDF as a JPEG thumbnail at 72 DPI — here's the URL: https://mysite.com/brochure.pdf — return it as base64 so I can embed it directly."},{"title":"High-res PDF page extraction for print","prompt":"Convert pages 2, 4, and 6 of this PDF to PNG images at 300 DPI and give me download links instead of base64, so they don't bloat my context — the PDF is at https://cdn.example.com/manual.pdf."},{"title":"Grayscale PDF rendering for document archive","prompt":"Take this PDF (https://archive.org/files/old-report.pdf) and render all pages as grayscale JPEGs at 150 DPI with quality 85, returning base64 so I can process them immediately."}],"resultDescription":"A JSON object containing metadata about the conversion (DPI, format, operation name, input byte count, input page count, output byte count, file count) and an array of file objects per rendered page — each with page number, filename, dimensions (width, height), byte size, content type, and either a base64 data string or a download URL with expiry timestamp, byte size, content type, and SHA256 hash.","failureModes":["PDF URL is private, internal, or IP-literal — request is refused","PDF exceeds 20 MB via URL or 10 MB via base64 — request rejected","More than 20 pages requested per call — exceeds per-call page limit","Invalid page selection string format — validation error","DPI out of range (below 36 or above 300) — validation error","JPEG quality out of range (below 30 or above 95) — validation error","PDF URL is unreachable or times out — fetch error","Corrupted or non-PDF file provided — processing error"],"whenToPreferThis":"Choose this endpoint when you need to rasterize PDF pages into PNG or JPEG images with control over resolution (36–300 DPI), page selection, color mode, and whether output comes back inline (base64) or as a temporary download URL. It is ideal for generating document previews, preparing PDF pages for downstream OCR or vision model analysis, or producing print-ready image exports from PDFs. Prefer it over general-purpose OCR or PDF-to-Markdown endpoints when you specifically need pixel-based image output rather than text extraction.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T12:37:06.527Z","isFirstParty":false,"canonicalSlug":"tanod-docs-pdf-to-images-27753725"}