Free API to render HTML to PDF - RenderPDF.io

sethsandaru

Seth Phat

Posted on April 16, 2024

Free API to render HTML to PDF - RenderPDF.io

Hey guys,

I wanna share with you guys about RenderPDF.io 🔥

A developer-friendly API to render PDFs - RenderPDF.io

RenderPDF.io makes rendering HTML to PDF super easy & simple 😎

We provide awesome & hassle-free API and let you use it within a few clicks.

A simple API call = A rendered PDF ready to be served to your customers 🔥.

// TypeScript
const httpClient = axios.create({
  baseUrl: 'https://renderpdf.io/api'
  headers: {
    Authorization: 'Bearer YOUR_API_KEY',
  },
});

function renderPdf(htmlContent: string): Promise<string> {
  return httpClient.post('/pdfs/render-sync', {
    htmlContent,
    // add more options here if you need
  }).then((res) => res.data.fileUrl));
}

// a "Hello World" PDF ❤️
const pdfUrl = await renderPdf('Hello World');
Enter fullscreen mode Exit fullscreen mode

Engine

Powered by Chromium 🚀, you can use the latest CSS/styling that you want and create a modern PDF out of it 😎.

Why RenderPDF.io?

We all know that rendering PDFs is a not-so-fun job. Most people would have to research libraries, try/test out a lot of CSS, even we have to deploy & manage stuff. Which costs a lot of time & effort.

I've been there, using wkhtmltopdf and a lot of CSS styling went wrong, have to Google for hours, etc.

RenderPDF.io will definitely make your life easier. I've been using TailwindCSS for my Invoicing PDFs and it is just lovely and beautiful.

Thank you

Get your FREE API KEY today and love your life 🥰

Thank you for reading!

💖 💪 🙅 🚩
sethsandaru
Seth Phat

Posted on April 16, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related