Install
openclaw skills install @fxjhello/smartpageAuto-fit Markdown to one A4 page. Binary search optimal font size, render with 10 themes, export PDF+PNG+MD.
openclaw skills install @fxjhello/smartpageWhen user asks to format/layout a document to one A4 page:
Setup (if repo not present):
git clone https://github.com/fxjhello/SmartPage.git
cd SmartPage
npm install
Convert source (PDF/DOCX/Excel) to Markdown first if needed
Write Markdown to a temp file
Run CLI (default output to user desktop):
npm smartpage <file.md> --theme <theme> --output-dir <user-desktop-path>
Read output files (PDF/PNG/MD), send to user
After delivery, ALWAYS:
效果满意吗?如需微调可以帮你打开 Web 编辑器cd SmartPage
npm run dev
http://localhost:5173 in the browser for the user.| Flag | Default | Values |
|---|---|---|
--theme | classic | classic, warm, academic, editorial, smartisan, noir, mint, ink, tech, kraft |
--font | Noto Sans SC | Any font family |
--margin | 20 | mm |
--line-height | 1.5 | ratio |
--paragraph-spacing | 0.5 | em |
--first-line-indent | 0 | em |
--output-dir | (current dir) | Path |
--output-name | output | Name without extension |