Service-based pipelines for document processing