Skip to main content
skill CX Codex GP ChatGPT official · OpenAI

report-to-pdf — Codex skill: what it does, how to install

Converts Data Analytics reports and charts from static HTML into clean PDF documents using headless Chrome.

Install into Codex · Skills CLI (Vercel) All methods and platforms ↓
npx skills add openai/plugins --skill report-to-pdf -a codex
Open on GitHub

What report-to-pdf does

This skill renders analytical dashboards and charts into PDF files. It relies strictly on static HTML exports. Trying to print straight out of a live MCP frame in ChatGPT Desktop fails because its sandbox blocks PDF bridges.

The conversion executes Chrome or Chromium CLI with the --headless=new flag and --print-to-pdf. During processing, the skill strips UI controls like refresh toggles and internal debug properties. If only raw session state remains in artifact.json, a Node.js script generates the standalone HTML page first.

The output goes through inspection scripts using pdfinfo, pdftotext, and pdftoppm. These utilities spot layout clipping and blank areas. Without Chrome, the task stops immediately.

What it helps with

  • turn static HTML analytics dashboards into printable PDF documents
  • strip interactive buttons and debug metadata from report pages
  • verify exported PDFs for missing charts or text issues with pdftoppm
  • build a standalone HTML file from artifact.json before printing

Example prompts for the agent

  • Export the static analytics dashboard in report.html to a PDF file.
  • Convert the current Data Analytics export into a clean PDF document.

How to install report-to-pdf

1Skills CLI (Vercel)

npx skills add openai/plugins --skill report-to-pdf -a codex

2Manually: put the files in place

.agents/skills/report-to-pdf/SKILL.md

For all projects use ~/.agents/skills/

Step by step, with commands for each platform: Codex skills: how to install, where they live, how to call them

Questions about report-to-pdf

How to install report-to-pdf in Codex?

Run npx skills add openai/plugins --skill report-to-pdf -a codex. Alternatively, save the skill definition directly to .agents/skills/report-to-pdf/SKILL.md.

What does report-to-pdf do?

It takes a static HTML export of a dashboard or report and converts it into a PDF via headless browser rendering. It also inspects pages for rendering defects and cleans out UI controls.

Why does it require a static HTML export instead of live app printing?

Sandboxed hosts such as ChatGPT Desktop do not provide print bridges for live MCP views. Extracting or rendering static markup first ensures the headless browser can read the document.

Similar skills

All skills for Data and databases →

From the same set593

The whole set →
collect-files-with-request Create Dropbox file requests, inspect one by ID, or list existing requests. Useful when you need other people to send files to a chosen folder. CX Codex GP ChatGPT ★ 7,604repo stars clean-up-dropbox-content A Codex skill that hunts down stale, duplicate and temporary files in Dropbox and deletes them only after you confirm. Handy when a folder has grown messy. CX Codex GP ChatGPT ★ 7,604repo stars publish-artifact-to-sites This skill pushes a finished Data Analytics report or dashboard to Sites as a snapshot. Reach for it once the artifact has passed validation and readers need it. CX Codex GP ChatGPT ★ 7,604repo stars jupyter-notebooks This skill builds, edits, and checks repeatable SQL or Python notebooks. Use it when an analysis must be readable, rerunnable, and easy to audit. CX Codex GP ChatGPT ★ 7,604repo stars report-to-google-slides Turns an existing HTML analytics report into an editable Google Slides deck. Use it when the report is ready and the requested deliverable is a presentation. CX Codex GP ChatGPT ★ 7,604repo stars report-to-google-doc Turns an existing HTML analytics report into a DOCX and uploads it to Google Drive. Handy when the report has to reach someone as a link. CX Codex GP ChatGPT ★ 7,604repo stars produce Automates visual asset generation and reviews on a Codex interactive board. It creates ad directions, product scenes, and style concepts. CX Codex GP ChatGPT ★ 7,604repo stars intake Opens Creative Production at its no-brief starting screen when the product is mentioned without a concrete task. It gives the next turn a starter grid to work from. CX Codex GP ChatGPT ★ 7,604repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor