Install
openclaw skills install url-images-to-pdf从URL提取图片并生成PDF(保持原文顺序,不排序)
openclaw skills install url-images-to-pdf从网页URL提取图片并生成PDF文件
npm install -g pdfkit# 安装依赖
npm install -g pdfkit
# 运行脚本
node ~/.openclaw/workspace/skills/url-images-to-pdf/extract.js <URL> [输出文件名]
直接运行:
node ~/.openclaw/workspace/skills/url-images-to-pdf/extract.js "https://example.com/article"
npm install -g pdfkit
提取微信文章图片并生成PDF:
node ~/.openclaw/workspace/skills/url-images-to-pdf/extract.js "https://mp.weixin.qq.com/s/XXXX"