Optimize PDF

Clean up PDF structure and remove redundant data