I am trying to create an image in LaTeX that shows a table auto-filling itself, such as the four tables shown below. I've seen some posts about animating pictures, but I haven't seen anything about compiling "slides" together into an image. The four slides are below.
\documentclass[12pt]{article}
\usepackage{amsmath,amssymb}
\begin{document}
\begin{tabular}{|c|c|}
\hline
1 & \\
\hline
&
\hline
\end{tabular}
\begin{tabular}{|c|c|}
\hline
1 & 2\\
\hline
& \\
\hline
\end{tabular}
\begin{tabular}{|c|c|}
\hline
1 & 2\\
\hline
3 & \\
\hline
\end{tabular}
\begin{tabular}{|c|c|}
\hline
1 & 2\\
\hline
3 & 4\\
\hline
\end{tabular}
\end{document}
This produces the tables, but I don't know how to make them into one image. How do I combine them?

convertto make an animated GIF out of a multi-page PDF. – Werner Jul 16 '15 at 20:37