Added pdf optimization commands (for latex).