This question already has an answer here:
It seems that all LaTeX formatting assumes we will ultimately print the document but if the goal is to publish online - under some circumstances, we might desire to have all the document in one "infinite" page so the reader can scroll it. That is the idea behind the infinite canvas. How should go about to try to implement this idea in a TikZ picture? How to avoid the picture being cropped by the page length set by document class?