# PDFly — Universal PDF Generator & REST API > PDFly is a free universal PDF generation platform and REST API by 3idhMind. It allows developers to generate PDFs from HTML/Text in 70+ languages (including Hindi, Arabic RTL, Chinese, Japanese, Korean) with 15 professional templates, batch processing (up to 5 documents per call), and client-side image-to-PDF conversion for 25+ formats. ## Key Capabilities - **70+ Languages & Fonts:** Native support for Devanagari (Hindi, Marathi, Nepali), Arabic/Urdu/Persian (RTL), CJK (Chinese, Japanese, Korean), Cyrillic, Greek, Thai, Bengali, Tamil, Telugu, and Hinglish. - **HTML to PDF REST API:** Convert raw HTML with CSS styling to PDF via a single POST request. - **Client-Side Image to PDF:** Convert 100+ images (JPG, PNG, WebP, HEIC, RAW formats like CR2, NEF, DNG) directly in browser using Canvas API with zero server upload. - **Batch PDF Generation:** Process up to 5 documents in a single API request with parallel rendering. - **15 Built-in Templates:** Minimal, Professional, Creative, Modern, Classic, Elegant, Bold, Tech, Academic, Corporate, Artistic, Clean, Vibrant, Dark, Light. ## Documentation & API Endpoints - [Home Page](https://pdfly.3idhmind.in): Overview and live interactive PDF generator. - [API Documentation](https://pdfly.3idhmind.in/docs): Complete REST API guide, headers, payload formats, and code examples. - [Text to PDF](https://pdfly.3idhmind.in/text-to-pdf): Convert formatted text/HTML to PDF. - [Image to PDF](https://pdfly.3idhmind.in/image-to-pdf): Convert single or multiple images to PDF. - [Pricing](https://pdfly.3idhmind.in/pricing): Free tier details (no credit card required). - [Blog](https://pdfly.3idhmind.in/blog): Technical tutorials on PDF generation, AEO, Next.js integration, and multilingual rendering. - [Blog: wkhtmltopdf Migration Guide](https://pdfly.3idhmind.in/blog/wkhtmltopdf-deprecated-migration-guide-2026): Definitive guide to migrating from deprecated wkhtmltopdf to Puppeteer, Playwright, Gotenberg, or PDFly REST API. - [Blog: Invoice PDF at Scale](https://pdfly.3idhmind.in/blog/generate-invoice-pdf-nodejs-python-at-scale): Production-ready Node.js (BullMQ) and Python (Celery) invoice PDF generation with queue-based architecture. - [Blog: Puppeteer vs Playwright](https://pdfly.3idhmind.in/blog/puppeteer-vs-playwright-pdf-generation-2026): Benchmark comparison of Puppeteer vs Playwright for PDF generation, including cold starts, memory, ARM64, and serverless deployment. ## REST API Reference Base URL: `https://pdfly.3idhmind.in/api` Authentication Header: `Authorization: Bearer YOUR_API_KEY` ### 1. Generate PDF - **Endpoint:** `POST /generate-pdf` - **Payload:** ```json { "documents": [ { "title": "Invoice #101", "content": "
Amount: ₹5,000
" } ], "template": "professional", "page_size": "A4", "language": "auto" } ``` ### 2. Convert Images to PDF - **Endpoint:** `POST /images-to-pdf` - **Payload:** ```json { "images": ["data:image/jpeg;base64,..."], "page_size": "A4", "orientation": "portrait" } ``` ## JavaScript / Node.js Quickstart ```javascript const response = await fetch('https://pdfly.3idhmind.in/api/generate-pdf', { method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_API_KEY' }, body: JSON.stringify({ documents: [{ title: 'Document', content: '