Here is a bash function that does it. It leaves the docx file in your working directory and pipes the markdown to STDOUT.

function pdf2md() {
   key=$(gdrive import "$1" | cut -d' ' -f2)
   gdrive export "$key" --mime application/vnd.openxmlformats-officedocument.wordprocessingml.document
   pandoc "$1.docx" -t markdown -s
}

On Wednesday, September 13, 2017 at 10:20:20 AM UTC-5, Paulo Ney de Souza wrote:
I would be interested in hearing how!

Paulo Ney

On Tue, Sep 12, 2017 at 11:07 PM, Kolen Cheung <christi...@gmail.com> wrote:
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.

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discus...@googlegroups.com.
To post to this group, send email to pandoc-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/8cd2b406-4f28-4c44-9fe8-2ff183276db8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/8d8de477-28cb-4c44-8021-803c03baeb69%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.