Update document size