
Api2Pdf
Your AI agent integrates with Api2Pdf to generate PDFs, merge documents, create QR codes, and manipulate PDF pages during customer conversations. Api2Pdf leverages Headless Chrome, wkhtmltopdf, and LibreOffice engines for high-quality document processing.




From HTML to PDF conversion to barcode generation, these serverless document capabilities run instantly during conversations without rate limits.
Api2Pdf
Real workflows where AI handles invoice generation, contract assembly, and document delivery during customer interactions.
Customer requests an invoice or receipt during conversation. Your AI Agent uses Api2Pdf to convert HTML templates to professionally formatted PDFs with headers, footers, and page numbers, then delivers the download link instantly.
Customer needs multiple documents combined into one package. Your AI Agent merges separate PDF files such as contracts, appendices, and supporting documents into a single consolidated PDF ready for review or signature.
Customer asks for a QR code linking to their website or promotion. Your AI Agent generates a custom QR code image using Api2Pdf's Zebra engine, specifying dimensions and format for immediate download and use.

Api2Pdf
FAQs
Api2Pdf supports three rendering engines: Headless Chrome for modern web content, wkhtmltopdf for fast HTML conversion, and LibreOffice for Office document conversions. The AI agent selects the appropriate engine based on your source content.
By default, Api2Pdf stores generated files for 24 hours. For security-sensitive applications, the AI agent can immediately delete files after delivery using the delete PDF action with the response ID.
Yes. The agent can extract any page range from an existing PDF using zero-based page indices. For example, requesting pages 0-2 extracts the first three pages into a new PDF file.
Api2Pdf generates barcodes and QR codes through Zebra Crossing (ZXING). Common formats include CODE_39 for standard barcodes and QR_CODE for two-dimensional codes. The agent can customize width, height, and label visibility.
Yes. The agent accepts multiple PDF URLs and combines them into a single concatenated document. This is useful for assembling contract packages, report bundles, or document compilations during customer conversations.
Through LibreOffice integration, Api2Pdf converts Word documents, Excel spreadsheets, PowerPoint presentations, images (JPEG, PNG, GIF, BMP), and email files to PDF format. HTML and URLs are converted via Chrome or wkhtmltopdf.
Yes. The agent adds custom header and footer templates to PDFs, including page numbers, document titles, dates, and company branding. This ensures consistent professional formatting across all pages.
Yes. The optimize PDF action reduces file size while maintaining visual quality. The agent can compress large documents for easier email delivery or web storage, with options for custom storage destinations.
Don't limit your AI Agent to basic conversations. Watch how to configure and add powerful tools making your agent smarter and more functional.

Privacy & Security
At Tars, we take privacy and security very seriously. We are compliant with GDPR, ISO, SOC 2, and HIPAA.