extract doc