I tried to do the following code... what I want is that Latex will remove the second page if there is no "image2" in the directory that I'm using (I want it to be such a "dynamic" doc), is it possible?
\documentclass[10pt,a4paper]{article}
\usepackage{graphicx}
\usepackage{subfig}
\usepackage{float}
\usepackage{textpos}
\usepackage[margin=0.5in,includefoot]{geometry}
\begin{document}
\begin{textblock}{2.5}(0,0)
\raggedright
\begin{figure}[H]
\includegraphics[height=3.2in]{image1}
\centering
\end{figure}
\end{textblock}
\newpage
\begin{textblock}{2.5}(0,0)
\raggedleft
\begin{figure}
\includegraphics[height=3.2in]{image2}
\centering
\end{figure}
\end{textblock}
\end{figure}
\end{document}
figureenvironment. It's not necessary to place\includegraphicsin afigure, TeX just considers it as a big character. – egreg Jan 14 '15 at 08:00