Skip to main content

Playground

Use the Playground to test PDF generation in your browser. Choose a template, HTML, or URL, configure conversion options, preview the PDF, and get API code for your application.

Playground interface with configuration panel and PDF preview

Quick Testing

Use the Playground to test a PDF configuration before implementing API calls in your application.

Interface Overview

The Playground uses 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 one PDF source:

Source type selection - Template, HTML, URL

Template

Select a saved template and preview it with the template's saved sample data.

  • Choose a template from the dropdown list.
  • Preview the rendered PDF.

HTML

Paste HTML content directly into the editor for conversion.

  • Write or paste HTML content.
  • Include inline CSS or <style> tags for styling.
  • Use HTML source for custom layouts.

URL

Generate a PDF from a webpage URL.

  • Enter the full URL, including https://.
  • PDFBolt renders the page and converts it to PDF.
  • Use URL source for web pages you want to capture as documents.

Configuration Options

The Playground exposes the main parameters used for direct PDF conversions. Configure page format, margins, headers, footers, loading behavior, viewport settings, authentication headers, cookies, and print production options.

PDF options configuration panel
Parameter Reference

For the complete parameter reference, see Conversion Parameters.

Print Production Testing

You can test print production options in the Playground. When used through the API, print production features are available on the Growth plan and above.

Generating PDFs

Follow these steps to generate your PDF:

  1. Select your source type and provide the content (template, HTML, or URL).
  2. Configure PDF options and page settings as needed.
  3. Click the Generate PDF button.
  4. Preview the result in the right panel and download if needed.

Generate PDF button and preview panel

Usage

Successful Playground generations count against your account's document conversions.

Get API Code

Click Get API Code to view integration snippets for the current Playground configuration.

API Integration modal with code examples

The snippets use /v1/direct. For sync, async, or custom S3 workflows, see API Endpoints.

Available languages: Node.js (Fetch, Axios), Python, cURL, Java, C#, PHP, Go, Rust.

Select a language tab, then click the copy icon to copy the snippet. The generated code includes the parameters currently configured in the Playground.