Generate PDF Certificates with HTML2PDFAPI

Create professional PDF certificates for online courses, training programs, events, and credentials. Design in HTML, generate at scale.

Why Use an API for Certificate Generation?

Beautiful Designs

Use CSS for borders, gradients, backgrounds, and professional layouts.

Dynamic Personalization

Insert recipient names, dates, course titles, and unique IDs.

Batch Generation

Generate thousands of certificates for large cohorts.

Verification QR Codes

Include QR codes linking to verification pages.

Code Example: Generate a Certificate

// Node.js - Generate Certificate PDF
const response = await fetch('https://html2pdfapi.com/render', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    html: certificateHtml, // Your certificate template with recipient name
    format: 'pdf',
    options: {
      width: '297mm',  // A4 landscape
      height: '210mm',
      printBackground: true
    }
  })
});

Certificate PDF Features

  • Custom page sizes (A4, Letter, custom)
  • Landscape orientation
  • Background images and gradients
  • Custom fonts
  • QR code verification
  • Digital signatures
  • Unique certificate IDs
  • Batch processing

Use Cases

Online Courses

Completion certificates for e-learning platforms.

Corporate Training

Compliance and professional development certificates.

Events & Webinars

Attendance and participation certificates.

Explore More Use Cases

Start Integrating

Node.js Python PHP Ruby Go

From course completion to PDF certificate

Batch generate for thousands of recipients. Start free.

Get API Key