Convert HTML to professional PDF documents
An intuitive API that transforms your web content into high-quality PDF documents, while maintaining design and interactivity.
const request = await fetch(
'https://api.pdfecho.com/v1/pdf',
{
method: 'POST',
body: JSON.stringify({ source: '<html><body><h1>Hello World</h1></body></html>' }),
headers: {
Authorization: `Basic ${btoa('sk_live_*****' + ':')}`,
'Content-Type': 'application/json'
}
}
)
const data = await request.json()
console.log(data)
How it works
A simple 3 steps process to transform your HTML into professional PDF documents
Send your HTML
Provide your HTML through our API, either as a URL or direct code.
Processing
Our engine will process your HTML, preserving styles, images, and layout.
Receive your PDF
Get a high-quality PDF document ready to download, store, or send.
Features
Designed for developers who need a reliable and flexible solution.
Integration in any language
Works with any technology capable of making HTTP requests: Node.js, Python, PHP, Ruby, and more.
Support for remote HTML or embedded content
You can send raw HTML directly or provide a URL — we'll fetch and convert it into a PDF.
Custom design with your own CSS
Complete control of CSS. Use your fonts, Media Queries, Dark Mode, or even Tailwind if you want.
Accurate style rendering
Your PDF looks exactly like it does in the browser, including custom fonts, images, SVGs, and external stylesheets.
HIPAA and GDPR ready — when you need it
For sensitive content, you can enable a special mode that ensures nothing is stored and everything is processed in memory only.
Webhooks for advanced integration
Get notified when the PDF is ready — perfect for asynchronous processing or background workflows.
Pricing
Start for free with 70 credits each month. Scale your plan as you grow.
How many documents do you need to convert?
FAQ
We answer the most frequently asked questions to help you get the most out of our service.