Skip to main content

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.

Playground interface with configuration panel and PDF preview

Quick Testing

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:

Source type selection - Template, HTML, URL

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.

PDF options configuration panel
Parameter Reference

For detailed information about each parameter and its options, see the Conversion Parameters documentation.

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

Get API Code

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

API Integration modal with code examples


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.