Open ghost opened 3 years ago
One possible solution is:
\@media print { .draftWatermark { display: block; width:40%; position: fixed; top: 40%; left: 30%; font-size: 82px; font-weight: bold; opacity: 0.5; color:grey; z-index: 5; transform: rotate(-45deg); } }
\@media screen { .draftWatermark { display: block; width:40%; position: fixed; top: 40%; left: 30%; font-size: 82px; font-weight: bold; opacity: 0.5; color:grey; z-index: 5; transform: rotate(-45deg); } }
.draftWatermark::before { content: "DRAFT"; }
"markdown.styles": ["css/draft-watermark.css"],
[//]: # (Comment out if you want to remove to the draft watermark) ::: draftWatermark :::
This should generate pages with a "draft" watermark on:
BTW: This also adds a watermark to the HTML generated document.
Is it possible to add a watermark to the exported PDF using this markdown-pdf plugin?