pdfstamp

add a stamp to temporary pdf articles
git clone https://a3nm.net/git/pdfstamp/
Log | Files | Refs

commit ed298fc45ed02e0539abe359945b0b69198972e2
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Wed, 11 Dec 2013 21:14:43 +0100

initial commit

Diffstat:
stamp.sh | 6++++++
water.tex | 21+++++++++++++++++++++
2 files changed, 27 insertions(+), 0 deletions(-)

diff --git a/stamp.sh b/stamp.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +sed "s/LEFT/Draft preview -- not a final published version/; + s/RIGHT/Generated `date`/" water.tex > water2.tex \ + && pdflatex water2.tex && pdftk "$1" stamp water2.pdf output "$2" + diff --git a/water.tex b/water.tex @@ -0,0 +1,21 @@ +\documentclass[a4paper]{article} +\usepackage{anysize} +\marginsize{0.3cm}{0.5cm}{-1.4cm}{0.8cm} +\usepackage{rotating} +\pagestyle{empty} +\begin{document} +\huge +\begin{sideways} + \begin{minipage}{\textheight} + \centering + \texttt{LEFT} + \end{minipage} +\end{sideways} +\hfill +\begin{sideways} + \begin{minipage}{\textheight} + \centering + \texttt{RIGHT} + \end{minipage} +\end{sideways} +\end{document}