Skip to main content

Convert HTML documents into continuous, single-page PDFs.

Project description

Seamless PDF

Convert HTML and Markdown documents into continuous, single-page PDFs without page breaks.

Features

  • Single-page PDF output sized to the full document height and width
  • Supports HTML and Markdown inputs
  • CLI and Python API
  • GitHub-style Markdown rendering with syntax highlighting

Installation

pip install seamless-pdf
python -m playwright install chromium

Quick Start

CLI:

seamless-pdf input.html -o output.pdf
seamless-pdf README.md -o README.pdf

Python:

from seamless_pdf import convert

convert("input.html", "output.pdf")
convert("README.md", "README.pdf")

Usage

The convert function detects the input type by extension (.html, .htm, .md, .markdown). You can override detection with input_type="html" or input_type="markdown".

from seamless_pdf import convert

convert("docs/notes.md", "notes.pdf", input_type="markdown")

Requirements

  • Python >= 3.10 (tested on 3.10-3.12)
  • Playwright (Chromium)
  • markdown >= 3.10.1
  • Pygments >= 2.17.0
  • pymdown-extensions >= 10.0

License

MIT License - see LICENSE for details.

Roadmap

  • Add support for additional input formats (PDF, DOCX)
  • Expand error handling and diagnostics
  • Broaden the PDF manipulation toolset

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

seamless_pdf-0.2.0.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

seamless_pdf-0.2.0-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file seamless_pdf-0.2.0.tar.gz.

File metadata

  • Download URL: seamless_pdf-0.2.0.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for seamless_pdf-0.2.0.tar.gz
Algorithm Hash digest
SHA256 50d0996afa2270addfd368f27d14fa4c8ebc6ca887fe02e24bca94047693185a
MD5 780d999a9a45bef01e5baa0c124e79d0
BLAKE2b-256 c0f335f761a4c2e8d82a4f068e39b446b213493b7c6bec843521da95ac73c6e1

See more details on using hashes here.

Provenance

The following attestation bundles were made for seamless_pdf-0.2.0.tar.gz:

Publisher: publish.yml on SleepyPandas/Seamless-pdf

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file seamless_pdf-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: seamless_pdf-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for seamless_pdf-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9ae48d58558aa71bcbdad06c223ed17dded0594f5100cc96c7b863ad39a89418
MD5 188a85b269abf7b335d4c450b8721e7c
BLAKE2b-256 68467d1123d94fc9c4c209665fb1e1ea8c16815753329f8572dc29957fcc1c1c

See more details on using hashes here.

Provenance

The following attestation bundles were made for seamless_pdf-0.2.0-py3-none-any.whl:

Publisher: publish.yml on SleepyPandas/Seamless-pdf

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page