Add a PDF cover to a document using an SVG template and the pandoc metadata
Project description
pandoc-cover
Add a cover to a pdf document using an SVG template and the pandoc metadata.
Example
-
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 (seetemplates/sample_front.j2.svg
for an example). -
Add
title
andwhatever
variables in yourbar.md
documenttitle: 'Hello World !' whatever: 'This is so simple' pandoc-cover: front: 'path/to/foo.svg'
-
Launch pandoc with the pandoc_cover filter.
pandoc --filter=pandoc-cover bar.md -o bar.pdf
Install
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 details)
Built Distribution
File details
Details for the file pandoc-cover-0.2.1.tar.gz
.
File metadata
- Download URL: pandoc-cover-0.2.1.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 802dc5fb4a64ff636332c6e7b840496b45e8d1fb0fee87242c53dcb889dec3d1 |
|
MD5 | ac94720e198552ef59163e76017dc45f |
|
BLAKE2b-256 | a3c1b49f2882fcc392a194d012c7c982a6f1c899dac3505837620bd122c82ae6 |
File details
Details for the file pandoc_cover-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: pandoc_cover-0.2.1-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 950e622a52270ba1dd8c0011052da828acdb110a55a4e44c2c5ce07895b190ed |
|
MD5 | 5b61551b4c46c6e5df52b8c07e793e83 |
|
BLAKE2b-256 | bd76bef1ceb1d04e295359e866b760f707e5ec6a7383cb19ef1c71a9408e51f7 |