Spaces at page breaks are swallowed, as usually one doesn't want them. TeX starts counting from zero, so the first page is after a page break. :)
The solution is to issue \vspace*
instead of \vspace
.
I recommend not to use px
which is not what one with a CSS background would expect. Use rather cm
, mm
or in
or multiples of \baselineskip
:
\vspace*{2cm}
\vspace*{4\baselineskip}
The default value of 1px
is just 1bp
(where 72bp = 1in); it's a special unit of measure that can be tailored for specific applications concerning on-screen only documents. For example, to make a document as wide as a 1200 pixel screen at 96dpi, one can pass geometry a paper width of 1200px by
\pdfpxdimen=1in % just to start the computation
\divide\pdfpxdimen by 96 % 96 px are now 1in
\geometry{paperwidth=1200px}
For "paper" document, this is irrelevant.