🛠️

Download Processed File

Download a previously processed PDF or rendered image from storage

GET 0 credits /v1/pdf/download/{object_name}
curl "https://pdf.toolkitapi.io/v1/pdf/download/a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6.pdf" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --output result.pdf
import httpx

resp = httpx.get(
    "https://pdf.toolkitapi.io/v1/pdf/download/a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6.pdf",
)
print(resp.json())
const resp = await fetch("https://pdf.toolkitapi.io/v1/pdf/download/a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6.pdf", {
});
const data = await resp.json();
console.log(data);
# See curl example
Response 200 OK
(Binary PDF or image content streamed directly as the response body)

Try It Live

Live Demo

Description

Download a previously processed PDF or rendered image from storage

How to Use

1

1. Call a PDF processing endpoint that returns an `object_name` or `upload_url` in its response.

2

2. Extract the object name — it follows the pattern `{32-hex-chars}.{extension}` (e.g. `a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6.pdf`).

3

3. Send a GET request to `/v1/pdf/download/{object_name}` with your API key.

4

4. The response body is the raw file content with the appropriate `Content-Type` header. Save it to disk or stream it to a client.

About This Tool

The Download endpoint lets you retrieve processed files that were stored during a previous PDF operation. When a processing endpoint produces an output file and stores it internally, it returns an `object_name` — a UUID-based filename with an extension (e.g. `.pdf`, `.png`, `.jpeg`). Use this endpoint to fetch that file.

This is a companion endpoint to the processing tools. Rather than receiving large base64-encoded files inline in JSON responses, some workflows store the result and give you a download link instead. This keeps response payloads small and lets you stream the file directly.

The endpoint validates the object name format and streams the file with the correct MIME type, making it suitable for direct browser downloads or piping to disk.

Why Use This Tool

Frequently Asked Questions

What file formats can I download?
The endpoint supports `.pdf`, `.png`, `.jpg`, `.jpeg`, and `.webp` files — any format produced by the PDF processing tools.
How long are files available for download?
Files are stored temporarily. Retrieve your results promptly after processing. Do not rely on download URLs for long-term storage.
What happens if the object name is invalid?
The endpoint validates that the object name matches the expected UUID-hex format. Invalid names return a 400 error. Files that have expired or don't exist return a 404 error.

Start using Download Processed File now

Get your free API key and make your first request in under a minute.