The following text uses PGF/TikZ to write on top of a PDF file. The use case is filling a PDF form.
In some cases, one wants to write a block of text which is aligned. Let's say left aligned, as in the example below.
However, in addition one might want the lines in that block of text to be arbitrarily spaced. I'm not sure of a good way to this, so that is my question.
How can I write a block of left aligned text that has arbitrarily specified spacing, including the possibility of non-uniform spacing?
The code I'm using writes the block of text inside a node. I don't have to do it that way, but that's the way I've been doing is so far. If I put the lines in separate nodes, then I would have to align them manually.
\documentclass[twoside=semi, 12pt]{scrartcl}
\usepackage{tikz}
\usepackage{pdfpages}
\usepackage[T1]{fontenc}
\usepackage{fouriernc}
% From https://unix.stackexchange.com/q/277892/4671
% echo | groff -T pdf > blank.pdf
% echo "" | ps2pdf -sPAPERSIZE=a4 - blank.pdf
\def\Filename{blank.pdf}
%http://www.freepubquiz.co.uk/famous-addresses.html
\begin{document}
\includepdf[pagecommand=
{\begin{tikzpicture}[remember picture, overlay]
\node [font=\fontsize{11}{11}\bfseries, align=left] at (11, -1.5){Dr John Dolittle\Oxenthorpe Road\Puddleby-on-the-Marsh
\Slopshire, England};
\end{tikzpicture}}
,pages=1]{\Filename}
\end{document}

\fontsize{11}{11}for multiline text) – David Carlisle Nov 21 '21 at 12:24\matrix [matrix of nodes,nodes={anchor=base west, font=\bfseries\strut}, row sep={15pt,between origins}] {Dr John Dolittle\\Oxenthorpe Road\\Puddleby-on-the-Marsh\\Slopshire, England\\};with\usetikzlibrary{matrix}work? Modify the15ptto whatever you prefer. – Torbjørn T. Nov 21 '21 at 12:34\\[2cm]. – Torbjørn T. Nov 21 '21 at 12:48\\[2cm]indeed works, though I'm not familiar with that syntax. I tried\vspace, but that does not work correctly in horizontal mode - the space is inserted after the line containing the\vspacecommand. – Faheem Mitha Nov 21 '21 at 12:58