Closes the page previously opened with beginPage. Must be called before either another beginPage or finish.