For AI agents: a documentation index is available at /llms.txt
Skip to main content

Export a slide deck to PDF or PNG

Export a slide presentation to PDF or PNG by locking the viewport to the slide's aspect ratio and forcing screen media so backgrounds and fonts render as intended.

Prerequisites
Why emulateMedia: screen?

PDF generation defaults to print media, which strips background colors, changes fonts, and removes visual styling that slide decks rely on. Setting media to screen captures the presentation exactly as it appears in a browser.

Steps

Use the Browserless MCP server to export a slide deck to PDF or PNG from any MCP-compatible AI agent (Claude Desktop, Cursor, Windsurf, ChatGPT, etc.).

1. Connect the MCP server

Send this prompt to your AI agent to install the Browserless MCP server:

Go to https://github.com/browserless/browserless-mcp/blob/main/install.md
and follow the instructions to install the Browserless MCP server
for my client.

2. Export a slide deck

Use browserless_export. The output format (PDF/PNG) is the primary goal.

Use the browserless_export tool to export the slide deck at
https://slides.example.com/presentation as a PDF

3. Slide deck behind interaction

Use browserless_agent. The slides require interaction (clicking through pages) before exporting.

Use the browserless_agent tool to navigate to
https://slides.example.com/presentation, advance through all
slides, then export the full deck as a PDF

Next steps