Skip to main content

Add a PDF cover to a document using an SVG template and the pandoc metadata

Project description

PyPI version


Add a cover to a pdf document using an SVG template and the pandoc metadata.


  1. Create a SVG template called foo.svg. Write {{ title }} in place of the title and {{ whatever }} in place of whatever information you want to display on the cover (see templates/sample_front.j2.svg for an example).

  2. Add title and whatever variables in your document

    title: 'Hello World !'
    whatever: 'This is so simple'
      front: 'path/to/foo.svg'
  3. Launch pandoc with the pandoc_cover filter.

    pandoc --filter=pandoc-cover -o bar.pdf


pip install pandoc-cover

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

pandoc-cover-0.2.1.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

pandoc_cover-0.2.1-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

Supported by

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