{"repo":"xntj-ai/onepage-pdf","free":true,"listed":false,"github":"https://github.com/xntj-ai/onepage-pdf","clone":"git clone https://github.com/xntj-ai/onepage-pdf.git","description":"HTML to single continuous-page PDF (no pagination) - render-then-crop pipeline + Claude Code skill","language":"Python","stars":11,"topics":["claude-code-skill","headless-chrome","html-to-pdf","pdf","pymupdf","single-page-pdf"],"license":"MIT","category":"media-processing","readme_excerpt":"onepage-pdf One HTML page → one tall, continuous-page PDF — no pagination breaks, desktop layout preserved, text still selectable. 一个 HTML 页面 → 一张超长的连续单页 PDF —— 不分页、不断裂,桌面版排版原样保留,文字仍可选中。 onepage-pdf is a Claude Code / Agent skill. Hand it a long scrolling HTML page — a proposal, a report, a landing page — and it produces a single-page PDF: one continuous sheet instead of a stack of A4 pages with content sliced across the cuts. Backgrounds, gradients and glass effects survive; the text stays selectable; and you can optionally redact strings before export with a built-in leak check. onepage-pdf 是一个 Claude Code / Agent 技能。给它一个长滚动式 HTML 页面 —— 提案、报告、落地页 —— 它就产出一张单页 PDF:一整张连续的长纸,而不是被切成一摞 A4、内容卡在分页线上断开。背景、渐变、毛玻璃都保留,文字依然可以选中;导出前还能可选地脱敏字符串,并自带泄漏校验。 It is built on one quiet but stubborn fact: you cannot know a page's printed height up front, so this tool never tries to. It renders onto an oversized page, measures the real content from the rendered PDF, and crops to fit. The height is cropped, not calculated — so it is exact by construction. 它建立在一个不起眼却很顽固的事实上: 你无法事先得知一个页面打印后的真实高度,所以本工具干脆不去预测。 它先渲染到一张超大的页面上,再从渲染好的 PDF 里量出内容的真实底边,然后裁切到刚好贴合。高度是裁出来的,不是算出来的 —— 因此天然精确。 Why onepage-pdf · 为什么用 onepage-pdf The browser's own \"Print to PDF\" cannot give you a single continuous page, and naïve HTML-to-PDF exports break in predictable ways: Chrome's print pipeline evaluates media queries against the default paper width ( 741px) instead of your @page size, viewport units drift, web fonts shift line he","default_branch":null,"files":null,"tree":[],"storefront":"/r/xntj-ai","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/xntj-ai/onepage-pdf/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}