### What problem does this PR solve? Add file convert to document API just like file2document_app.py ### Type of change - [x] New Feature (non-breaking change which adds functionality)