public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>
To: 'russurquhart1' via pandoc-discuss
	<pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>,
	pandoc-discuss
	<pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: --extract-media not generating directory and extracting graphic files from .docx
Date: Fri, 23 Aug 2019 15:39:30 -0700	[thread overview]
Message-ID: <yh480k36hrbj6l.fsf@johnmacfarlane.net> (raw)
In-Reply-To: <6c49eae1-56cf-499a-80b1-e1261b84662e-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>


I suspect that maybe the ~ in your path is the problem.
Try this form

--extract-media ~/Desktop

rather than

--extract-media=~/Desktop

In the former version, your shell will expand the ~.
In the latter version, pandoc gets passed the raw string
and the ~ isn't expanded.

"'russurquhart1' via pandoc-discuss"
<pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> writes:

> Hi,
>
> I just downloaded the latest pandoc and tried to convert a .docx file to an 
> asciidoc file and extract the graphics as well:
>
> pandoc -f docx -t asciidoc -o test.asc --extract-media=~/Desktop --verbose 
> test.docx
>
> Verbose shows that the graphics are extracting, but neither the media 
> directory or the graphics are written.
>
> I've used this command before on other computers and it always worked.
>
> Any ideas?
>
> Thanks,
>
> Russ
>
> -- 
> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/6c49eae1-56cf-499a-80b1-e1261b84662e%40googlegroups.com.


  parent reply	other threads:[~2019-08-23 22:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-23 20:34 'russurquhart1' via pandoc-discuss
     [not found] ` <6c49eae1-56cf-499a-80b1-e1261b84662e-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-08-23 22:39   ` John MacFarlane [this message]
     [not found]     ` <yh480k36hrbj6l.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2019-08-23 23:13       ` 'russurquhart1' via pandoc-discuss

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=yh480k36hrbj6l.fsf@johnmacfarlane.net \
    --to=jgm-tvlzxgkolnx2fbvcvol8/a@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).