AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Artifact To Pdf

skill-yheshamx-artifact-to-pdf-artifact-to-pdf · by yheshamx

Convert a Claude artifact (or any URL / exported .html file) into a SINGLE continuous, pixel-accurate PDF with no page cuts — one long page sized to the whole content. Use when the user wants to export, save, download, or "turn into PDF" an artifact, HTML file, or web page, especially as one long page with no page breaks / no pagination.

No reviews yet
0 installs
26 views
0.0% view→install

Install

$ agentstack add skill-yheshamx-artifact-to-pdf-artifact-to-pdf

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-yheshamx-artifact-to-pdf-artifact-to-pdf)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
1mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Artifact To Pdf? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

artifact-to-pdf

Turn a Claude artifact (or any URL / exported .html) into one continuous, pixel-accurate PDF — a single long page sized to the whole content, no page cuts. It renders the HTML in headless Chromium (the same engine the artifact viewer uses), so the PDF matches what you see on screen.

When to use

The user asks to export / save / download / "turn into PDF" an artifact, an .html file, or a URL — especially when they want one long page or a PDF without page breaks.

Inputs

  • A path to an exported .html file (best fidelity for a Claude artifact), OR an http(s) URL.
  • Optional output path and render width.

If the user did not give an input, ask for the .html file path or URL before running.

How to run

The converter is a bundled Node script sitting next to this SKILL.md.

  1. Set SKILL_DIR to the directory that contains this SKILL.md.
  2. First-run setup only — install dependencies if missing (downloads a bundled Chromium ~120MB the first time; tell the user this is one-time):

``bash [ -d "$SKILL_DIR/node_modules/playwright" ] || ( cd "$SKILL_DIR" && npm install ) ``

  1. Run the converter (foreground; ~5–20s):

``bash node "$SKILL_DIR/artifact-to-pdf.mjs" "" -o ".pdf" [--width ] ``

  • --width defaults to 1200; set it to the artifact's design width if the layout is responsive and reflows.
  • Default output name is .pdf (or artifact.pdf for a URL) in the current directory.
  1. Read the tool's stdout — it prints the page size and, if the content exceeded the 200in cap, the scale it applied. Report that to the user.
  2. Offer to send the PDF to the user with SendUserFile so they can see it.

Notes / limits

  • Emits exactly ONE page sized to the artifact's full height — no page cuts.
  • A PDF page caps at 200in (ISO 32000 = 14,400pt ≈ 19,200px) per side. Artifacts taller than that are auto-scaled down to fit one page (nothing is cut); the tool prints the scale used. Absurdly tall content warns it may clip in strict viewers.
  • For a Claude artifact, prefer the exported .html — a claude.ai page URL also captures the app chrome around the artifact.
  • npm test (in SKILL_DIR) renders a tall sample and asserts single-page output.

Source

Full source, README, and issues: https://github.com/yheshamx/artifact-to-pdf

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.