WeasyPrint tools let your AI agent convert HTML and CSS into high-quality PDF documents. Generate invoices, reports, tickets, certificates, or any styled document โ all from your AI chat.
Send raw HTML or a URL to convert, and get back a polished PDF. Results can be returned as base64 data or saved as a shareable public URL. Each conversion runs in an isolated container for security.
Why use WeasyPrint?
What can you do?
Invoice generation
Have your AI create professional invoices from HTML templates and deliver them as PDF.
Report export
Convert HTML dashboards, reports, or documentation to PDF for offline sharing.
Certificate creation
Generate personalized certificates, diplomas, or awards from templates.
Web page archival
Convert any web page URL into a permanent PDF snapshot.
How to set up
Send HTML
Provide HTML content or a URL to convert to PDF.
Add custom CSS
Optionally include custom CSS to control styling, margins, and page layout.
Choose output
Get base64 PDF data directly, or a public URL for easy sharing.