From: "'Saku Laesvuori' via pandoc-discuss" <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: Converting all PDF in a folder to Markdown quick question
Date: Tue, 10 May 2022 09:36:12 +0300 [thread overview]
Message-ID: <20220510063612.vqsdojt3hltxloib@X-kone.localdomain> (raw)
In-Reply-To: <846e351a-a762-4c7d-8026-6fb700893f44n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 721 bytes --]
> I'm now trying to convert all pdf in a folder to Markdown using a similar
> approach:
Pandoc can't convert from pdf (see `pandoc --list-input-formats`).
>
> find ./ -iname "*.pdf" -type f -exec sh -c 'pandoc "${0}" -o
> "${0%.html}.md"' {} \;
>
> All that happens when I trigger the same for pdf conversion is terminal
> then says:
>
> dquote>
This means that the shell is expecting a closing double quote (").
>
> *Do I have to do a full pdflatex install, or is there a better formula
> here? Thanks!*
pdflatex is used to convert *to* pdf, it can't be used to convert from
pdf. You could try to use `pdftotext` from poppler to extract text from
a pdf file, but it converts to plain text, not markdown.
next prev parent reply other threads:[~2022-05-10 6:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-10 2:10 D.J.
[not found] ` <846e351a-a762-4c7d-8026-6fb700893f44n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-05-10 6:30 ` AW: " denis.maier-NSENcxR/0n0
2022-05-10 6:36 ` 'Saku Laesvuori' via pandoc-discuss [this message]
2022-05-10 8:09 ` Bastien DUMONT
2022-05-11 1:37 ` D.J.
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=20220510063612.vqsdojt3hltxloib@X-kone.localdomain \
--to=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).