Docs to Dual-View Visual HTML
Paste the following prompt into your AI chat to install this skill:
Please follow https://skillhub.cn/install/skillhub.md and install @user_70775cd1/docs2html.
About this skill
The Problem
When you have a PDF, Word(.docx), or Excel(.xlsx) report, reading the full text is time-consuming, while screenshots lose structure. This skill converts a single document into an offline, self-contained HTML page: an outline on the left and a resizable split view on the right, showing source text and chart-based interpretation side by side. You can keep both panes visible, drag the divider, or switch to text-only / chart-only mode.
How It Works
The workflow starts by extracting content into doc.json, then plans it offline into plan.json:
- PDF: chapters are split by bookmarks when available
- Word: chapters are split by heading styles
- Excel: worksheets are split by blank rows
The planner maps numbers and tables to bar, line, or pie charts, process text to Mermaid flow / timeline, and hierarchical concepts to mindmap; plain prose becomes summary cards instead of forced visualizations. Before building the final HTML, it shows a visualization checklist and eight style presets such as tech-blue, forest-green, and night-dark. After confirmation, it inlines ApexCharts, Mermaid, and other dependencies into one file. The generated page offers top-level views for text and charts, text only, and charts only. The outline starts with an Overview that aggregates key metrics, a structure mind map, and core conclusions. Export is split into two independent entries: text to Word, PDF, Markdown, or TXT; charts to PDF or PPT.
Limits to Know
Only one file is processed at a time, with a 40 MB size cap. .doc and .xls files must be saved as .docx or .xlsx first. Pure-image PDFs or Word documents can use the runtime's built-in cloud OCR to backfill text; if OCR is unavailable, it safely falls back to text-only display. Editing synchronization applies only to data charts; Mermaid flow and mindmap structures must be regenerated after content changes.
Use Cases
- Convert revenue and user data in a quarterly business PDF into a bar and pie chart HTML page that keeps the source text visible
- Turn a process description in a .docx file into a single HTML page with an outline on the left and Mermaid flow diagrams on the right
- Convert data from one Excel workbook into chart-based interpretation that can be exported to PPT for preview
- Backfill text from a scanned PDF with OCR and generate a split-view page showing source text and charts
Best For
- Analysts who need to turn a single data report into a shareable chart page without manually drawing charts
- Pre-sales consultants who need to demo a Word or Excel report summary to clients
- Document assistants who process scanned PDFs and need a viewable HTML digest
- Automation engineers who maintain offline document visualization HTML pages
Related Skills
Scrapes JD search results for product titles, prices, sales, and stores, then exports verified data to UTF-8 CSV.
An A-share market monitor using Sina Finance API for real-time quotes, price and percentage alerts, daily logging, and scheduled checks.
Turn pasted or queried Xiaohongshu notes into a research memo covering title patterns, structure, quoted comments, and follow-up angles; public lookups are optional and confirmed before paid execution.
A universal base component that automatically launches the Edge browser and connects the BrowserSkill extension, ensuring readiness for web scraping and browser automation tasks.