This function adjusts the size of the document, so that it exactly covers the content of the active page. If some layers are outside of the page, the document may become larger, too.