Doc2pdf
No description available
Install / Use
/learn @hailaz/Doc2pdfREADME
doc2pdf
将网页文档转换为单个 pdf 文件(带书签)。
支持文档类型
- [x] confluence
- [x] docusaurus
安装
go install github.com/hailaz/doc2pdf/cmd/doc2pdf@latest
使用
doc2pdf -h
# 示例
doc2pdf confluence --index="https://goframe.org/display/gf" --output="./output/temp"
doc2pdf confluence --index="https://goframe.org/pages/viewpage.action?pageId=3673232" --output="./output/tougao"
doc2pdf confluence --index="https://goframe.org/pages/viewpage.action?pageId=92127688" --output="./output/blogmd" -m=md
doc2pdf docusaurus --index="https://goframe.org/quick/install" --output="./output/goframe/quick/install"
环境准备
ubuntu 无界面环境
字体
中文字体
sudo apt update
sudo apt install ttf-wqy-zenhei
fc-cache -f -v
谷歌浏览器(选装)
sudo apt update
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
apt install ./google-chrome-stable_current_amd64.deb
原理
先使用rod控制浏览器,将网页转换为 pdf 文件。
然后使用unipdf将 pdf 文件合并,最后再将目录插入到合并后的 pdf 文件中。
Related Skills
node-connect
351.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
351.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
351.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
