Enabling document processing automation