Pdf2htmlEXOptimize
A python tool to reduce pdf2htmlEX output file size.
Install / Use
/learn @yu-liang-kono/Pdf2htmlEXOptimizeREADME
pdf2htmlEXOptimize
Introduction
pdf2htmlEXOptimize is a python tool set aiming to reduce pdf2htmlEX output file size. The output woff files of pdf2htmlEX are usually bloated and cost lots of space and bandwidth. pdf2htmlEXOptimize is a post-processing tool set trying to minimize the file size.
Prerequsite
- pdf2htmlEX
- fontforge with python support
- ttfautohint (optional)
htmlify.py
- usage:
python htmlify.py pdf-file output-dir - It generates html by
pdf2htmlEXusing the following options--embed-css=0--embed-font=0--embed-image=0--embed-javascript=0--embed-outline=0--split-pages=1--process-outline=0--external-hint-tool=ttfautohint(Ifttfautohintis installed.)--bg-format=jpg--css-filename=main.css
- The output html is
index.html.
optimize_woff.py
- usage:
python optimize_woff.py pdf2htmlEX-output-dir - It merges
wofffiles with the same name and modifymain.cssaccordingly.
Related Skills
node-connect
348.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.1kCreate 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
348.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
348.5kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
