There are plenty of moments when you need a permanent, printable copy of a web page — a news article, a recipe, a flight itinerary, an online invoice. PDFXINET's HTML-to-PDF tool converts any URL or raw HTML into a downloadable PDF in seconds.
http:// or https://).Switch to the HTML tab and paste your HTML markup directly. This is ideal for generating PDFs from templates — invoices, letters, and branded documents — without needing a hosted page.
PDFXINET uses WeasyPrint for CSS-faithful rendering when available on the server. WeasyPrint reproduces fonts, colours, layout, and images accurately — the PDF looks very close to what you see in a browser.
If WeasyPrint's system libraries are not available, the tool automatically falls back to a plain-text extraction renderer. You still get a usable PDF containing all the visible text, but without visual styling.
WeasyPrint itself is already included in requirements.txt and installs with pip install -r requirements.txt. It also requires GTK3 system libraries on the host operating system:
sudo apt install libpango-1.0-0 libpangocairo-1.0-0 libcairo2 libgdk-pixbuf-2.0-0 shared-mime-info fonts-liberationDockerfile — Docker deployments work automatically.)
brew install pango cairo gdk-pixbuf libffi
Once the libraries are installed, verify WeasyPrint is working:
python -c "from weasyprint import HTML; HTML(string='<h1>Test</h1>').write_pdf('test.pdf'); print('OK')"