Epub2pdf
Convert epub and Mobi to pdf. Python native Code. Minimalistic.
Install / Use
/learn @rava-dosa/Epub2pdfREADME
Instruction to Setup
- conda env create -f environment.yml or pip install -r requirements.txt
- source activate epub
Epub2pdf
- python epub2pdf.py "{filepath}"
- It will generate {filename}.pdf in current directory
Mobi2PDf
- python mobi2pdf.pf "{filepath}"
- It will generate {filename}.pdf in current directory
Known Bugs
- Pdf Outline issues.
- page change for each chapter.
How it works [Epub]
- Epub is zipped file containing xhtml and metadata.
- So I used weasyprint to convert xhtml to pdf.
- But how to know which html to add first.
- That information is contained in *.ncx inside epub bundle. BS4 is used to read ncx file.
How it works [Mobi]
- Kindle unpack to extract data.
- Weasyprint to convert html to pdf.
Credits
Related Skills
node-connect
343.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
90.0kCreate 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
343.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
