Portable HTML-to-PDF Converter -- 2

Замовник: AI | Опубліковано: 16.03.2026

I need a small, self-contained Python solution that turns one or more HTML files into a single PDF while preserving the original layout and, most importantly, keeping every internal or external link fully clickable—especially links that point to other PDFs stored alongside the output file. The finished document must remain portable, so if the folder is moved to another machine the links still resolve correctly without hard-coded absolute paths. I am happy for you to choose whichever open-source Python library best fits the job—ReportLab, pdfkit/wkhtmltopdf, PyPDF2, or a hybrid approach—as long as it is free to use and can be installed easily with pip on Windows and Linux. Deliverables • A Python script (or minimal package) that accepts an input HTML file path and an output name, then produces the linked PDF in one step. • Clear README covering setup, required dependencies, and an example command. • Demonstration files: the source HTML plus at least two linked PDFs to prove the click-through works after copying the whole folder elsewhere. Acceptance criteria – Visual fidelity matches the HTML when rendered in a modern browser. – All hyperlinks remain functional after relocating the output folder. – Code is clean, documented, and free of proprietary components. would like to work together now on this Please only reply if you are happy to work together with me remotley on a call