main.py converts every PDF in examples/ into a browseable, mobile-responsive HTML archive under output/ using poppler-utils. Includes the two NETgazet sample PDFs, project metadata, OpenWolf scaffolding, and README covering usage, a watch-folder script, and WordPress iframe embedding. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1.5 KiB
1.5 KiB
Cerebrum
OpenWolf's learning memory. Updated automatically as the AI learns from interactions. Do not edit manually unless correcting an error. Last updated: 2026-06-03
User Preferences
Key Learnings
- Project: netgazet — converts NETgazet print PDFs (InDesign-laid-out, ~A3, 16pp) into a static HTML/CSS site under
output/. Entry point ismain.py; runs viapython main.pyoruv run python main.py. Inputs live inexamples/. - Conversion approach: page-as-JPEG via
pdftocairo -jpeg -singlefile -r 150+ responsiveimg { max-width: 100% }.pdftohtmlwas deliberately rejected because its complex-mode output is fixed-pixel and not mobile-responsive. Selectable text is provided as a<details>block per page frompdftotext -layout, split on form-feed (\f). pdftocairofilename quirk: without-singlefileit appends-<page>.jpgto the output stem; with-singlefileit appends just.jpg. The script uses-singlefileper page so file paths are predictable.- No third-party Python deps. Conversion shells out via
subprocess.run([...], check=True);pyproject.tomlkeepsdependencies = [].