[Tex/LaTex] How to include online postage in a scrlttr2 letter

graphicskoma-scriptlettersscrlttr2tikz-pgf

The class scrlttr2 is well suited for using
window envelopes by default. That means that it prints the address at the
standardized position.

In Germany, you can buy online postage which is supposed to be
printed on the envelope or on the letter into the window area next to the
address.

Using the window area is of course more convenient.

The German Post Office ('Deutsche Post') only provides an
integration for Microsoft Word (of course ;)).

Thus my question: How to include online postage in a scrlttr2
document?

The online postage is available at the Deutsche Post. I used
the output format 'DIN A4 Normalpapier (Einlegeblatt)' (which is
only available if a recipient is entered – a single character
will do). You can get a sample file there. Since the page is in
german I put the resulting sample PDF-file also on a private web-server.

The standardized position of the window is well explained in
Wikipedia – the article is in german, but the figure
contains all the information.

Best Answer

Another possibiltiy is to use tikz:

\documentclass[a4paper]{scrlttr2}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{graphicx}
\usepackage{tikz}
\setkomavar{fromname}{John Doe}
\setkomavar{fromaddress}{Fakestreet 1\\123 Faketown}
\begin{document}
\begin{letter}{%
  Jane X\\
  456 Fake Village
}
\begin{tikzpicture}[remember picture, overlay]
  \node [xshift=65mm,yshift=-60mm] at (current page.north west)
    [below right]
    {\includegraphics[trim=57mm 228mm 114mm 55mm,clip]{pstge.pdf}} ;
\end{tikzpicture}
\opening{Sehr geehrte Damen und Herren,}
\closing{Mit freundlichen Grüßen}
\end{letter}
\end{document}

Advantage: Easy to place the postage absolutely.

Disadvantage: You have to compile the document 2 times.