EPUB to PDF
Convert an EPUB ebook to a PDF
POST
1 credit
/v1/convert/epub-to-pdf
curl -X POST "https://convert.toolkitapi.io/v1/convert/epub-to-pdf" \
-H "Content-Type: application/json" \
-d '{"epub": "<base64-epub>"}'
import httpx
resp = httpx.post(
"https://convert.toolkitapi.io/v1/convert/epub-to-pdf",
json={"epub": "<base64-epub>"},
)
print(resp.json())
const resp = await fetch("https://convert.toolkitapi.io/v1/convert/epub-to-pdf", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({"epub": "<base64-epub>"}),
});
const data = await resp.json();
console.log(data);
# See curl example
Response
200 OK
{
"pdf": "<base64-pdf>",
"page_count": 182,
"file_size": 1048576,
"file_url": null,
"file_name": "output.pdf",
"file_type": "application/pdf"
}
Description
Convert an EPUB ebook to a PDF
How to Use
1
1. POST a JSON body containing the required `epub` field.
2
2. Supply the optional parameters to fine-tune output.
3
3. When object storage is enabled, read `file_url` for a direct download; otherwise decode the Base64 `pdf` payload.
4
4. Inspect `page_count` (or equivalent) to confirm the full document was processed.
About This Tool
Turn an EPUB ebook into a paginated PDF with preserved typography and images. Useful when you need a printable or email-friendly version of a reflowable ebook.
Why Use This Tool
- Print-on-demand — Produce PDFs from EPUB masters for print providers
- DRM-free archives — Create long-term, device-independent copies of your library
- Annotation — Render to PDF for highlighting in desktop readers
- Cross-device sharing — Email chapters as universally-readable PDFs
Frequently Asked Questions
Are chapters preserved as bookmarks?
Yes — the EPUB's table of contents becomes PDF bookmarks (outline) in the output.
What page size is used?
A sensible default of 6"x9" is used to match trade-paperback dimensions. Custom sizes are on the roadmap.
Are images embedded?
Yes — all EPUB images are embedded in the PDF at their original resolution.
Start using EPUB to PDF now
Get your free API key and make your first request in under a minute.