HTML 2 PDF is a robust platform for converting HTML content into PDF documents programmatically. With Relevance AI, you can elevate this process by leveraging AI Agents to streamline and enhance your PDF generation workflows.


HTML 2 PDF provides a powerful solution for converting HTML to high-quality PDFs with customizable options. Relevance AI enhances this capability by enabling intelligent AI Agents to automate and optimize the PDF generation process.
Document Orchestration Mastery
The AI agent gains precise control over PDF generation, enabling sophisticated document workflows and automated formatting decisions.
Compliance Automation Excellence
Enables the agent to ensure all generated documents meet regulatory standards and formatting requirements automatically.
Cross-format Rendering Precision
Enables the agent to maintain perfect fidelity when transforming complex HTML layouts into professional PDF documents.
Relevance AI seamlessly integrates with HTML 2 PDF, allowing you to incorporate PDF generation into your AI-driven workflows.
What you’ll need
You don't need to be a developer to set up this integration. Follow this simple guide to get started:
- A Relevance AI account
- An Airtable account with access to the base and table you'd like to use
- Authorization (you'll connect securely using OAuth—no sensitive info stored manually)
Security & Reliability
The HTML 2 PDF integration platform provides a robust solution for converting HTML content to PDF documents programmatically. This integration enables developers to generate high-quality PDFs from URLs or HTML content with customizable options for headers, footers, page sizes, and layouts.
Key benefits include seamless HTML to PDF conversion, customizable page layouts and formatting, support for both URL and direct HTML input, comprehensive margin and styling controls, and lazy loading support for dynamic content.
To get started, ensure you have a valid HTML 2 PDF account with OAuth credentials and the necessary permissions configured in the dashboard. The system requirements include API endpoint access to https://api.html2pdf.co.uk and the ability to handle PDF binary data.
Begin by setting up OAuth authentication and configuring the base API settings. For basic PDF generation from a URL, use the provided JSON structure, and similarly for generating PDFs from HTML content. Advanced configurations allow for headers and footers, page offsets, and margin settings.
Expect successful responses with PDF binary data and appropriate status codes, while error responses will provide error descriptions and codes for troubleshooting. Common issues include authentication errors, PDF generation failures, layout issues, and content loading problems, each with suggested solutions.
For performance optimization, consider page size, content loading strategies, and resource management. Best practices include validating input parameters, implementing error handling, and testing with various content types.
For additional support or specific issues, consult the API documentation or contact HTML 2 PDF support.
No training on your data
Your data remains private and is never utilized for model training purposes.
Security first
We never store anything we don’t need to. The inputs or outputs of your tools are never stored.

To get the most out of the 0CodeKit + Relevance AI integration without writing code:
- Start with a clear setup: Ensure your 0CodeKit account is properly configured with the necessary OAuth credentials and permissions.
- Utilize example code: Leverage the provided code snippets for PDF compression and barcode reading to jumpstart your integration.
- Validate inputs: Always check your input parameters for correctness before making API calls to avoid unnecessary errors.
- Test with sample data: Run your automations using test PDFs and images to ensure everything works smoothly before going live.
- Monitor API usage: Keep an eye on your API calls to avoid hitting rate limits, and implement caching where appropriate.