Skip to content

A web service for converting markdown to PDF

License

Notifications You must be signed in to change notification settings

PeterDaveHelloKitchen/md-to-pdf

 
 

Repository files navigation

md-to-pdf

A web service for converting markdown to PDF

Web UI

For quick experimentation, you can use the web version. Just paste your markdown and download the converted PDF.

API

You can convert markdown by sending a POST request to https://md-to-pdf.fly.dev.

curl --data-urlencode 'markdown=# Heading 1' --output md-to-pdf.pdf https://md-to-pdf.fly.dev
Parameter Required Description
markdown Required The markdown content to convert
css Optional CSS styles to apply
engine Optional The PDF conversion engine, can be weasyprint, wkhtmltopdf or pdflatex, defaults to weasyprint

Send data from files like this:

curl --data-urlencode "markdown=$(cat example.md)" 

Deploy

A prebuilt container image is available at Docker Hub. You can run it yourself like this:

docker run --publish=8000:8000 spawnia/md-to-pdf

Built with

About

A web service for converting markdown to PDF

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 61.1%
  • Dockerfile 19.5%
  • Makefile 17.1%
  • Shell 2.3%