PDF generation from markdown URLs with content-hash caching #33
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_books#33
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Feature Request
Generate PDF documents from markdown content URLs. Cache generated PDFs by content hash so the same content always maps to the same PDF, and serve via a unique persistent link.
Proposed Flow
/pdf/{hash}Scope
Notes
Implemented in commit
51d5d3aondevelopment.What was done
/book/{name}/page/{page}/pdfgenerates a single-page PDF using the same Chrome pipeline as book PDFs/tmp/tobooks_dir/.pdf_cache/— survives reboots/pdf/{hash}serves any cached PDF by its content hash. Same content always produces the same hash.sandbox(false)for headless Chrome when running as root (TFGrid VMs)setup.shnow installs Google Chrome for PDF generationURLs
/book/{name}/pdf/book/{name}/pdf/view/book/{name}/page/{page}/pdf/book/{name}/page/{page}/pdf/view/pdf/{hash}