Skip to content
DemoAPI ReferenceFAQ

PDF Generation Template Editor

Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.

View on GitHub

Syntax Support ​

ComPDF Generation supports common HTML tags for text layout, tables, images, SVG, basic controls, and page structure when generating PDFs.

Supported HTML Tags ​

CategoryTags
Text layout<h1> - <h6>, <p>, <hr>, <pre>, <blockquote>, <code>, <sub>, <sup>
Lists<ol>, <ul>, <li>
Text styles<span>, <a>, <em>, <strong>, <i>, <b>, <u>, <mark>
Images and graphics<img>, <svg>
Tables<table>, <thead>, <tbody>, <tr>, <th>, <td>
Static controls<input>, <button>, <textarea>
Style resources<link>, <style>
Page structure<div>, <header>, <nav>, <main>, <section>, <article>, <aside>, <footer>

Limitations ​

Some CSS properties, external network resources, JavaScript, media playback, and interactive PDF capabilities are not supported or have limitations.