Token导航 LogoToken导航TokenDH.com
前端设计操作浏览器unknown未标认证来源可访问许可证需确认审计未展示

pptx-to-htmlPPTX TO HTML 前端

Agent Skill

pptx-to-html 用于补充前端设计相关能力,适合在 Local Agent 中需要让 Agent 承接前端设计相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

318

周安装

13

下载量

102
Local Agent

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:pptx-to-html(PPTX TO HTML 前端)
来源仓库:https://smithery.ai
仓库路径:pptx-to-html
安装命令:
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。当前暂无明确安装命令,请以来源页面说明为准。

简介

用于补充前端设计相关能力。pptx-to-html 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

  • 适合让 Agent 承接前端设计相关任务。
  • 可结合来源仓库和 README 核验具体用法。
  • 安装前建议确认权限范围和维护状态。适用宿主包括 Local Agent,接入前应确认版本、权限和运行环境要求。
  • 注意是否会触发联网、命令执行或文件读写。

SKILL.md

Enhanced PowerPoint to HTML Converter

Convert PowerPoint presentations (.pptx) into pixel-accurate HTML files with complete style preservation, absolute positioning, and responsive design.

When to Use This Skill

Use this skill when:

  • User uploads a.pptx file and requests HTML conversion
  • User asks to "make this presentation web-friendly"
  • User wants a presentation viewable in browsers without PowerPoint
  • User needs to share presentations with exact visual fidelity
  • User asks to "convert PowerPoint to HTML"
  • User requires styled presentations (not just text extraction)

Core Conversion Process

# Run the enhanced converter with full style preservation
python /mnt/skills/user/pptx-to-html/scripts/convert_pptx_to_html.py <pptx-path> /mnt/user-data/outputs

Workflow:

  1. Locate the PPTX file in /mnt/user-data/uploads/
  2. Run the conversion script
  3. Verify output - Check HTML file and assets folder
  4. Provide link to the HTML file using computer:// protocol

What Gets Preserved

✅ Fully Preserved Elements

Text Formatting:

  • Font family, size, color
  • Bold, italic, underline
  • Text alignment (left, center, right, justify)
  • Bullet points with indentation levels (0-9)
  • Multi-line paragraphs
  • Mixed formatting within single lines

Shapes & Objects:

  • Absolute positioning (x, y coordinates)
  • Exact dimensions (width, height)
  • Rotation angles
  • Fill colors (solid and gradients with multiple stops)
  • Border styles (width, color, dash patterns)
  • Shape types (rectangles, text boxes)

Slide Properties:

  • Background colors (solid)
  • Background gradients (multi-stop)
  • Slide dimensions and aspect ratios
  • Responsive scaling

Images:

  • Embedded images with exact positioning
  • Size and rotation preservation
  • PNG, JPG, GIF, WEBP support
  • Proper layering with other elements

Hyperlinks: ✨ NEW

  • Text hyperlinks (clickable text with links)
  • Shape hyperlinks (entire shape is clickable)
  • External URLs preserved
  • Opens in new tab for external links

Videos: ✨ NEW

  • Embedded video extraction
  • HTML5 video player with controls
  • Support for MP4, AVI, WMV formats
  • Exact positioning and sizing preserved
  • Play/pause controls in browser

Audio: ✨ NEW

  • Embedded audio file extraction
  • HTML5 audio player with controls
  • Support for MP3, WAV, M4A formats
  • Positioned audio players

Tables: ✨ NEW

  • Full table structure preservation
  • Cell borders (left, right, top, bottom)
  • Cell background colors
  • Cell text formatting
  • Colspan and rowspan support
  • Vertical alignment (top, middle, bottom)
  • Nested text formatting within cells
  • Hyperlinks within table cells

Layout:

  • Pixel-accurate element positioning
  • Responsive scaling (maintains aspect ratio)
  • Layering and overlapping elements
  • Text box boundaries
  • Multi-column layouts

Technical Implementation

Coordinate System

  • Converts EMUs (English Metric Units) to pixels
  • Formula: px = (emu / 914400) * 96 (for 96 DPI)
  • Uses percentage-based positioning for responsiveness

Style Extraction

  • Text properties: Parses <a:rPr> for font, size, color, bold, italic, underline
  • Shape properties: Parses <p:spPr> for position, size, rotation, fill, border
  • Slide backgrounds: Parses <p:bg><p:bgPr> for colors and gradients
  • Paragraph formatting: Parses <a:pPr> for alignment, bullets, indentation

Color Handling

  • RGB colors from <a:srgbClr val="RRGGBB">
  • Theme colors from <a:schemeClr> with default mappings
  • Gradient stops with position percentages

Output Structure

output-directory/
├── presentation.html          # Main presentation file
└── assets/
    ├── slide1_img_rId2.png    # Images with relationship IDs
    ├── slide2_img_rId3.jpg
    ├── slide3_video_rId5.mp4  # Videos preserved
    ├── slide4_audio_rId7.mp3  # Audio files preserved
    └── ...

All media files (images, videos, audio) are extracted and stored in the assets/ folder with descriptive prefixes for easy identification.

HTML Features

The generated HTML includes:

  • Pixel-accurate layout with absolute positioning
  • Full style preservation (fonts, colors, sizes)
  • Keyboard navigation (Arrow keys, Space bar)
  • On-screen navigation buttons (Previous/Next)
  • Progress bar showing presentation progress
  • Slide numbering
  • Responsive design with aspect ratio maintenance
  • Embedded media with correct positioning (images, videos, audio)
  • Smooth transitions between slides
  • Interactive hyperlinks (clickable text and shapes)
  • HTML5 video/audio players with full controls
  • Fully styled tables with borders and cell formatting

Example Usage

# Enhanced conversion
python /mnt/skills/user/pptx-to-html/scripts/convert_pptx_to_html.py \
  /mnt/user-data/uploads/presentation.pptx \
  /mnt/user-data/outputs

# Output will be created at:
# /mnt/user-data/outputs/presentation.html
# /mnt/user-data/outputs/assets/

Conversion Quality

The enhanced converter provides 95%+ visual fidelity with:

  • Exact text positioning and styling
  • Complete shape preservation
  • Accurate color rendering
  • Proper background extraction
  • Bullet formatting maintained
  • Interactive hyperlinks (text and shape level)
  • Embedded videos and audio playback
  • Fully styled tables with borders
  • Multi-media element support

Current Limitations

Features Not Yet Supported

  • Charts: Need to be rendered (currently not extracted)
  • SmartArt: Complex diagrams not yet parsed (text may be missing)
  • Complex animations: Element animations not preserved (slide transitions only)
  • Custom fonts: Fall back to web-safe alternatives
  • Shadow/reflection effects: Not preserved
  • Custom shape geometries: Advanced shapes may render as basic shapes
  • Master slide templates: Complex inheritance not fully supported

PowerPoint Features Never Supported

  • Macros and VBA scripts
  • Interactive buttons with actions
  • Slide notes
  • Master slide inheritance (complex cases)
  • Transition sounds

Note: 90-95% of standard business presentations convert perfectly with current features. Phase 1 implementation includes hyperlinks, videos, audio, and tables - covering ~80% of common PowerPoint elements.

Workflow Example

When user says: "Convert my PowerPoint to HTML"

  1. Locate uploaded file: view /mnt/user-data/uploads
  2. Run conversion: python /mnt/skills/user/pptx-to-html/scripts/convert_pptx_to_html.py \ /mnt/user-data/uploads/filename.pptx \ /mnt/user-data/outputs
  3. Provide user with link: [View your HTML presentation](computer:///mnt/user-data/outputs/filename.html)
  4. Inform user:

- "Your presentation has been converted with full style preservation" - "All fonts, colors, positions, and shapes are accurately replicated" - "Use arrow keys or buttons to navigate between slides" - "The presentation is fully responsive and works on all devices"

Troubleshooting

Issue: Conversion fails with XML parsing errors

  • Solution: PPTX file may be corrupted. Ask user to resave in PowerPoint and re-upload.

Issue: Some elements appear misaligned

  • Check: Original PPTX for unsupported features (custom shapes, SmartArt)
  • Solution: Most standard shapes work correctly. Report specific issues for future updates.

Issue: Fonts look different

  • Expected: Custom/licensed fonts fall back to web-safe alternatives
  • Fonts used: Arial, Calibri, Times New Roman, Verdana, Georgia
  • Impact: Usually minimal visual difference

Issue: Images not displaying

  • Check: Assets folder exists alongside HTML file
  • Check: File permissions are correct
  • Solution: Re-run conversion if assets folder is missing

Issue: Colors appear slightly different

  • Cause: Theme colors use common default mappings
  • Impact: Usually <10% color difference
  • Solution: Acceptable for most use cases

Issue: Tables lose formatting

  • Status: Tables are on Phase 2 roadmap
  • Workaround: Text content is preserved, layout may be simplified

Issue: Background gradients not showing

  • Check: Browser supports CSS gradients (all modern browsers do)
  • Verify: Multiple gradient stops are in the HTML source

Issue: Conversion takes longer than expected

  • Expected: Processing takes 1-2 seconds per slide
  • Reason: Comprehensive parsing of all XML elements
  • Acceptable: Quality vs. speed tradeoff

Best Practices

  1. Test output in target browsers before sharing widely
  2. Check assets folder to ensure all images were exported
  3. Verify text readability on different screen sizes
  4. Inform users about font substitutions if custom fonts are critical
  5. Keep original PPTX as authoritative source

Performance Characteristics

  • Processing time: 1-2 seconds per slide
  • Memory usage: ~80MB for typical presentations
  • Output size: HTML file 50-200KB, assets proportional to image count
  • Browser compatibility: All modern browsers (Chrome, Firefox, Safari, Edge)
  • Mobile support: Fully responsive with touch navigation
  • Scaling: Handles presentations up to 100+ slides

Quality Validation Checklist

After conversion, verify:

  • All text appears in correct positions
  • Fonts, sizes, and colors match original
  • Bold, italic, underline formatting preserved
  • Shapes maintain size, position, and fill colors
  • Backgrounds render correctly (solid or gradient)
  • Images are positioned accurately
  • Hyperlinks are clickable (text and shape level) ✨
  • Videos play correctly with controls ✨
  • Audio files play with controls ✨
  • Tables display properly with borders and cell styling ✨
  • Bullet points have proper indentation levels
  • Navigation works (keyboard + on-screen buttons)
  • Progress bar updates correctly
  • Responsive layout on different screen sizes
  • All slides accessible and in correct order

Target accuracy: 90-95% visual match to original PowerPoint Phase 1 Coverage: ~80% of common PowerPoint elements (hyperlinks, videos, audio, tables)

Future Enhancements (Roadmap)

Phase 1 (✅ COMPLETED)

  • [✅] Hyperlinks (text and shape level)
  • [✅] Video extraction and embedding
  • [✅] Audio extraction and embedding
  • [✅] Full table support with cell styling and borders

Phase 2 (In Progress)

  • Advanced shape geometries (arrows, connectors, flowcharts)
  • Chart rendering (bar, line, pie charts)
  • Basic SmartArt text extraction

Phase 3 (Future)

  • Animation sequencing beyond basic transitions
  • Shadow and reflection effects
  • Embedded font extraction
  • SmartArt diagram rendering

Phase 4 (Future)

  • Master slide template support
  • Interactive element preservation (limited)
  • Slide notes export option
  • Custom CSS theme support

Requirements

  • Python: 3.7 or higher
  • Dependencies: None (standard library only)
  • Input format: PowerPoint 2007+ (.pptx)
  • Output format: HTML5 + CSS3

Quick Reference

Command:

python /mnt/skills/user/pptx-to-html/scripts/convert_pptx_to_html.py INPUT.pptx OUTPUT_DIR

Features:

  • 95% visual fidelity for standard presentations
  • Pixel-accurate positioning of all elements
  • Complete text formatting preservation
  • Shape fills, borders, and gradients
  • Slide backgrounds (solid and gradient)
  • Responsive design with aspect ratio maintenance

Navigation:

  • ← → Arrow keys to navigate
  • Space bar to advance
  • On-screen Previous/Next buttons
  • Progress bar shows position

Output Quality: Production-ready HTML presentations with near-perfect visual replication

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Local Agent

89.14%
按下载量换算91

安全审计

暂无安全审计结果可展示。

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills