Introduction
Welcome to Docstron - a powerful and flexible PDF generation API that transforms your HTML templates and data into professional PDF documents.
What is Docstron?
Section titled “What is Docstron?”Docstron provides a simple REST API to generate PDF documents from HTML templates. Whether you need invoices, reports, certificates, or any other document type, Docstron handles the heavy lifting of PDF generation so you can focus on your application.
Key Features
Section titled “Key Features”- 🚀 Fast PDF Generation - Generate PDFs in seconds from HTML templates
- 📝 Template Management - Create and manage reusable HTML templates
- 🔄 Dynamic Data Injection - Merge data with templates for personalized documents
- 🎨 Full HTML/CSS Support - Use modern HTML and CSS for beautiful layouts
- 📦 Multiple Output Options - Get PDF as direct response, URL, or document ID
- 🔐 Secure & Reliable - Enterprise-grade security and 99.9% uptime
How It Works
Section titled “How It Works”- Create an Application - Set up your project workspace
- Design Templates - Create HTML templates with placeholders for dynamic data
- Generate API Key - Get your authentication credentials
- Make API Calls - Send data to generate PDFs instantly
Getting Started
Section titled “Getting Started”Follow these steps to start generating PDFs:
Step 1: Create Your Account
Section titled “Step 1: Create Your Account”Sign up at docstron.com and get a 7-day free trial to explore the platform. The free trial includes basic features to help you evaluate Docstron.
Note: Free trial has limited features. Check out our pricing plans for full access to all features.
Step 2: Create an Application
Section titled “Step 2: Create an Application”After logging in, create your first application:
- Visit Applications Dashboard
- Click “Create Application”
- Enter your application name and description
- Your application is ready!
Applications help you organize templates and documents by project or environment (development, production, etc.).
Step 3: Create a Template
Section titled “Step 3: Create a Template”Templates are reusable HTML layouts with placeholders for dynamic data:
- Go to Templates Dashboard
- Click “Create Template”
- Write your HTML template with data placeholders
- Save your template
You can also create templates programmatically using our Template API.
Step 4: Generate API Key
Section titled “Step 4: Generate API Key”Before using the API, you need authentication credentials:
- Navigate to API Keys
- Click “Create API Key”
- Copy and securely store your API key
- Use this key in all API requests
⚠️ Keep your API key secret! Never expose it in client-side code or public repositories. Navigate the Authentication section to learn how to use your API key with the API.
Step 5: Generate Your First PDF
Section titled “Step 5: Generate Your First PDF”Navigate to Quick start
What’s Next?
Section titled “What’s Next?”Now that you understand the basics, explore these resources:
- Authentication - Secure your API requests
- Quick Start - Complete walkthrough with code examples
- Applications - Manage your applications via API
- Templates - Create and manage templates
- Document Generation - Explore generation options
- SDKs & Libraries - Use our official client libraries
Need Help?
Section titled “Need Help?”If you have questions about applications or need assistance:
- 📧 Email: support@docstron.com
- 💬 Live Chat: Available in your dashboard
- 📚 Documentation: You’re reading it!