Note: original title was "Is there a maximum size PDF that Latex can create?". I've edited the title to better reflect what I've discovered the issue to be.
I'm creating a presentation in Beamer and I'm including several animations, using the animate package.
This works well when I have about 6 animations and produces a fairly large pdf (~95 Mb). When I try to add a couple more animations however my compiler freezes after a while. No error message is given. If I comment out the new animations everything still works. I tried compiling using both pdflatex and lualatex but ended up with the same result.
Is there a limit to how big a pdf latex can make? Or some other explanation?
Edit 1:
As pointed out below the problem is not with the size of the PDF. I seem to be able to reproduce the problem by including multiple copies of the same animation. I've done some searching and I cannot find any reports of this happening elsewhere. Does anyone know what might be causing this?
If a MWE is needed I can try and provide one.
Edit 2:
Here is a MWE. It actually does compile, but it hangs for about a minute after adding the first copy of the animation. I tried letting my original presentation compile, but after an hour it was still hanging. I am using a Windows 10 machine.
\documentclass{beamer}
\usepackage[utf8]{inputenc}
\usepackage{animate}
\begin{document}
\begin{frame}
\animategraphics[autoplay,loop,width=0.4\textwidth]{8}{animation}{1}{99}
\animategraphics[autoplay,loop,width=0.4\textwidth]{8}{animation}{1}{99}
\end{frame}
\end{document}
animation.pdf
linked in the question and runningpdflatex
on the above tex file), it takes my computer about 12 seconds to compile: it does indeed seem to hang for ~10 seconds towards the end, though. Hopefully someone who knows more aboutanimate
now has enough to answer the question. But a presentation that hangs for an hour (for you) may be even better.