\synctex=-15
\noindent
\setbox1=\hbox to 2000000sp{$p$\hfill$q$}%
\pdfxform 1%
\hbox to 1000000sp{XX}%
\pdfrefxform\pdflastxform%
\hbox to 1000000sp{YY}%
\noindent \hrule height 200000sp
\noindent\leavevmode
\setbox2=\vbox to 1000000sp{\hbox to 2000000sp{$p$\hfill$q$}}%
\pdfxform 2%
\hbox to 1000000sp{XX}%
\pdfrefxform\pdflastxform%
\hbox to 1000000sp{YY}%
\vfill\eject
\leavevmode
\hbox to 1000000sp{XX}%
\pdfrefxform\pdflastxform%
\hbox to 1000000sp{YY}%
\vfill\eject
\leavevmode
\hbox to 1000000sp{%
\setbox3=\hbox to 2000000sp{$q$\hfill$p$}%
\pdfxform 3%
\hbox to 1000000sp{XX}%
\pdfrefxform\pdflastxform%
ZZ}%
\vfill\eject
\leavevmode
Text before
\par\noindent
\hbox to 1000000sp{%
\setbox4=\hbox to 2000000sp{$q$\hfill$q$}%
\immediate\pdfxform 4%
\hbox to 1000000sp{XX}%
\pdfrefxform\pdflastxform%
AA}%
\par\noindent
Text after

sdf sdf sdf sdf sdf sdf sdf sdf 
sdf sdf sdf sdf sdf sdf sdf sdf 
sdf sdf sdf sdf sdf sdf sdf sdf 
sdf sdf sdf sdf sdf sdf sdf sdf 
sdf sdf sdf sdf sdf sdf sdf sdf 
sdf sdf sdf sdf sdf sdf sdf sdf 
sdf sdf sdf sdf sdf sdf sdf sdf 
sdf sdf sdf sdf sdf sdf sdf sdf 
\end