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
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.1.1.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for pandoc_cover-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 124d40977a5dfade1f514a925a55ca86860ad256f9d981fdb115ed41e7f6d824 |
|
MD5 | dfbf23b3628036a4af88f47f3ae6ac04 |
|
BLAKE2b-256 | 7302b4860c357ae1e1553446c4bb8c8d4e4bae9f1b9ffac9f5687aecbc91f08b |