Resized the generated document