feat(doc-processor): move more meta-data extraction to doc-processor