Playground
The Playground provides an interactive environment to test PDF generation directly in your browser. Experiment with different sources, configure conversion options, preview results, and get ready-to-use API code for your application.

Use the Playground to test your PDF configuration before implementing API calls in your application.
Interface Overview
The Playground features a two-panel layout:
- Left Panel: Configuration options for source selection, PDF settings, and page behavior.
- Right Panel: PDF preview with download option.
Source Types
Choose your PDF source from three options:
Template
Select from your saved templates to generate PDFs with dynamic data.
- Choose a template from the dropdown list.
- Preview how your template renders.
HTML
Paste HTML content directly into the editor for conversion.
- Write or paste complete HTML content.
- Include inline CSS or
<style>tags for styling. - Ideal for testing custom layouts.
URL
Convert any webpage to PDF by providing its URL.
- Enter the full URL (including
https://). - The page will be rendered and converted to PDF.
- Useful for capturing web content as documents.
Configuration Options
The Playground provides access to all PDF generation parameters available in the API. Configure page format, margins, headers, footers, loading behavior, viewport settings, and more.
For detailed information about each parameter and its options, see the Conversion Parameters documentation.
Generating PDFs
Follow these steps to generate your PDF:
- Select your source type and provide the content (template, HTML, or URL).
- Configure PDF options and page settings as needed.
- Click the Generate PDF button.
- Preview the result in the right panel and download if needed.

Get API Code
Click the Get API Code button to get ready-to-use integration code for your application.

Available languages: Node.js (Fetch and Axios), Python, cURL, Java, C#, PHP, Go, Rust.
Select your preferred language from the tabs, then use the copy icon to copy the code snippet. The generated code includes all parameters you configured in the Playground.
Helpful Links
📄️ Conversion Parameters
Complete reference for all PDF generation options
📄️ Templates
Create and manage reusable PDF templates
📄️ API Endpoints
REST API endpoint documentation
📄️ Quick Start Guide
Get started with PDFBolt API integration