Sounds interesting. I used a cli tool for Google Drive before (gdrive), and for those who are interested, you probably can chain them together to upload a PDF and download a docx from it and pipe it from there.