Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    HTML to PDF (High-Fidelity)

    2

    Convert local HTML to high-fidelity vector PDF via real Chrome rendering (CJK, charts, Grid/Flex, JS charts); A4 flowing or fixed-canvas single page; zero-install.

    Free

    Security scanned
    HTML to PDF (High-Fidelity)

    HTML to PDF (High-Fidelity)

    Example session with this skill installed

    Convert my analytics report at report.html to a PDF. It uses ECharts for the data visualizations and needs to be in A4 format with 20mm margins.

    • Read your context and instructions
    • Compiled the html to pdf
    • Generated the document

    I have converted your HTML report to a high-fidelity PDF using the Chromium rendering engine. The process executed all JavaScript to ensure the ECharts visualizations rendered correctly and applied your requested 20mm margins.

    Conversion Summary

    PropertyValue
    Input Filereport.html
    Output Filereport.pdf
    ModeA4 Flowing Document
    Margins20mm 20mm
    Engine UsedChrome Headless (CLI)
    JS RenderingEnabled (networkidle0 + 300ms)
    StatusSuccess
    
    # Command executed:
    node scripts/html2pdf.mjs report.html report.pdf --margin "20mm 20mm"
    
    # Output Verification:
    # PDF generated: 4 pages
    # Text status: Vector/Selectable
    # Font check: PingFang SC / System UI detected
    

    Next steps

    1. Run open report.pdf to visually inspect the ECharts rendering.
    2. If charts appear incomplete, increase the wait timer in scripts/html2pdf.mjs from 300 to 1000.
    3. Use sips -s format png report.pdf --out report_preview.png to generate a quick thumbnail for preview.

    report.html

    PDF · document

    Generated

    Example file from a real run - the skill writes it into your workspace.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Conversion of HTML to PDF often fails when tools ignore JavaScript, break modern CSS layouts, or fail to render CJK characters. This skill uses a real Chromium rendering engine to ensure what you see in the browser is exactly what you get in the PDF.

    What it does

    • High-fidelity rendering uses a real Chrome/Edge engine to execute JavaScript and render SVG/Canvas.
    • Vector output generates selectable, searchable text rather than flat images.
    • Dual modes support A4 flowing documents with automatic paging and fixed-size canvas modes for posters.
    • Auto-detection finds existing Chrome, Edge, or Puppeteer installations without manual configuration.
    • CJK support preserves Chinese, Japanese, and Korean characters using the system font stack.

    How it works

    1. Identify source by pointing the script to your local HTML file and desired output path.
    2. Select mode based on content type, using default A4 for reports or --size for fixed dimensions.
    3. Execute conversion via html2pdf.mjs which automatically selects between Puppeteer or Chrome CLI.
    4. Automated verification triggers a visual check of the output PDF to confirm layout and font integrity.

    Frameworks & tools

    The tool runs on Node.js and requires an installation of Chrome, Chromium, or Microsoft Edge. It optionally integrates with Puppeteer for advanced control but falls back to the headless CLI if not present.

    Why this beats prompting it yourself

    Writing a reliable wrapper for headless Chrome involves complex path detection across OSes and handling asynchronous network states for JS-heavy charts. This skill handles the detection logic, paging CSS, and wait-states out of the box.

    Use cases

    • Report generation for converting data-heavy HTML dashboards with ECharts into A4 PDF reports.
    • Marketing assets for exporting high-resolution HTML/CSS posters as single-page vector PDFs.
    • Documentation for turning local technical docs into searchable, portable PDF files.

    Known limitations

    Requires a Chromium-based browser or Puppeteer installed on the host machine. Complex JS charts may require manual adjustments to the wait-state timer in the script for complete rendering.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for APIs & Backend.

    Requires Node.js and a Chromium-based browser (Chrome/Edge/Puppeteer). JS-heavy charts might need increased wait times in the script if they load slowly.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 12 days ago

    • Free with an Agensi account

    Permissions

    Terminal / Shell
    Browser
    Read Files
    Write Files
    Listed12 days ago

    What's inside

    Frequently Asked Questions

    Standard HTML converters often fail with JavaScript-heavy content or complex CSS. This skill uses a real Chromium engine to ensure that dynamic elements like ECharts, SVGs, and CJK fonts render exactly as they appear in a web browser.

    The skill is compatible with any AI agent that can execute Node.js scripts. It automatically detects existing installations of Google Chrome, Microsoft Edge, or Chromium on your system, so you don't need to manually configure browser paths.

    You will receive the `html2pdf.mjs` execution script, configuration guidelines for various modes (A4 vs. fixed canvas), and the logic required for the agent to handle automated visual verification of the output.

    Unlike tools that output flat images, this skill generates true vector PDFs. This means all text remains selectable and searchable, and graphics remain crisp at any zoom level, which is essential for professional reports and documentation.

    Yes, the skill includes a 'fixed-size canvas' mode. By using the `--size` parameter, you can bypass standard A4 paging to export high-resolution posters, infographics, or single-page assets without unwanted page breaks.

    The primary requirement is a Node.js environment and a Chromium-based browser (Chrome, Edge, or Puppeteer) installed on the host machine. The skill is designed to work across Windows, macOS, and Linux by automatically resolving the correct executable path.

    New in APIs & Backend

    Free