pub fn optimize(doc: &mut Document, options: &Options)
Apply all enabled optimizations to the document.