From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30534 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "D.J." Newsgroups: gmane.text.pandoc Subject: Converting all PDF in a folder to Markdown quick question Date: Mon, 9 May 2022 19:10:02 -0700 (PDT) Message-ID: <846e351a-a762-4c7d-8026-6fb700893f44n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_7294_652942056.1652148602563" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11396"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCPNVOXBXIARB7MS46JQMGQECDS7NGI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue May 10 04:10:11 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f60.google.com ([209.85.210.60]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1noFKD-0002n8-6M for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 10 May 2022 04:10:09 +0200 Original-Received: by mail-ot1-f60.google.com with SMTP id a25-20020a0568301dd900b00605db1550cbsf7376101otj.4 for ; Mon, 09 May 2022 19:10:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=uCq5ErvStcKKCaM24uqNtvAldQXKj6Cl9n1zlkVx1jk=; b=DHLjT1rkH3Qqg4uHwhMShrxIzuWFqr7ZdEBROuv5iQ3myRUaTQD1Pme+dLgUjqjYGo hs5yojYUUk8d+eQ71mYt9mQzIUMrBjyJvBaDa+DTfVzy7uHU9Iundn8IlgDW/EO39RBS V9r+LhdRFvCnu3LBCgT70/jiDKXPZc0UbRNNDkodxDQDRFRIu6uy81Jr5p3+o/4zDqTU BdYmc2cJryj5xfacJ1Mg2BVPoCzDJrtRI+SJN6j24n6uucuGu+2XrnOus2JflGil5bHl ORBqkDWx1cxKg5y42RZb6jhfLsITiyoOZXIVgERKN/ahPGLqqLuNji0vO+AL2RTEPDra nZWw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=uCq5ErvStcKKCaM24uqNtvAldQXKj6Cl9n1zlkVx1jk=; b=oh5+tfXqR1u8/eFTL3Bpt16lrwwHSXGYTk3m4RjeddLC8IrfLZp1zuTkPSzBKLtblG CsAGyl6yNBmLJWtzCgIf0ju2azDOSUOXfAwytbM1HSR038ep2pg79mGwh9E85hl+MIhy GEGKnHG94zC1sXoNwSVCDHJqUneaux9KLVo9u0SuZYgilue8gRPxdKbf9mqS98iJOF6j bJYMWrIRGSbgWhfvAnVSLmLyPWrYGLy1zKBJe+uulXP32LJebKMk/XuetP1JwmPkapf+ 8h64iDTrMV+XbNW2LE8kp2PyJzUGnOS+dqemWtTuLCBafzenH8ccns6hwShy4v4qHDw1 nzyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:date:from:to:message-id:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=uCq5ErvStcKKCaM24uqNtvAldQXKj6Cl9n1zlkVx1jk=; b=0MTdFSQyf3i0tyEmDJULi5efMosoGhD7olejNeuMJIn8vLX1Ic36HLKrKSgqs5STdX 8tNSrmcQuWD92Y+Lnq2v367mA0RmmrzMjMum7MBNuozd7H/BGcgsDYYfFJGEU7FSazq8 aVvRIEvTruxJesWZolUcwIXAgArY1GbhkE+lqCyQAWCH8bLa7dVjxAmX68LTbmz6b0GT NVjpzAs4H77YyvCIkuxThD2Q/iGbvxgnKxeNjxkGykY3CeOzrjzKMt4KdulJ2emZo5NO 7a2Hu2ORrUTJYIGIkeu2GTorWRkGfhiZxUC5ygMelPAOxLXd5uud9cGwiVxGJAbOiCeo e+bw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM531ATPyojzEf6ItvPeneeKIO6uSUBQxy41oOPyqK7Tagg2V6e/n8 mePSJqRHpTnYRIZKaL2Hn7w= X-Google-Smtp-Source: ABdhPJy5wYNLzi1BLJ70EJpT79v/VCMU3ArgrTIpiZdvfYOwP/CShCDxfoTKBDkGN4YVY7ZJMlYKpQ== X-Received: by 2002:a05:6808:1703:b0:2f9:cd2d:41c5 with SMTP id bc3-20020a056808170300b002f9cd2d41c5mr12702458oib.77.1652148607936; Mon, 09 May 2022 19:10:07 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6870:2405:b0:d7:627b:b530 with SMTP id n5-20020a056870240500b000d7627bb530ls6306088oap.9.gmail; Mon, 09 May 2022 19:10:04 -0700 (PDT) X-Received: by 2002:a05:6870:5625:b0:ec:4635:691f with SMTP id m37-20020a056870562500b000ec4635691fmr8889859oao.289.1652148603202; Mon, 09 May 2022 19:10:03 -0700 (PDT) X-Original-Sender: futurevintage-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:30534 Archived-At: ------=_Part_7294_652942056.1652148602563 Content-Type: multipart/alternative; boundary="----=_Part_7295_2004422803.1652148602563" ------=_Part_7295_2004422803.1652148602563 Content-Type: text/plain; charset="UTF-8" I've been able to convert all html in a folder to Markdown using: find ./ -iname "*.html" -type f -exec sh -c 'pandoc "${0}" -o "${0%.html}.md"' {} \; I'm now trying to convert all pdf in a folder to Markdown using a similar approach: 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> The PDF isn't converted to Markdown. I'm a terminal/Pandoc newb so maybe it's different for PDF? I have installed Mactex using Brew install librsvg python homebrew/cask/basictex *Do I have to do a full pdflatex install, or is there a better formula here? Thanks!* -- 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/846e351a-a762-4c7d-8026-6fb700893f44n%40googlegroups.com. ------=_Part_7295_2004422803.1652148602563 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I've been able to convert all html in a folder to Markdown using:

find ./ -iname "*.html" -type f -exec sh -c= 'pandoc "${0}" -o "${0%.html}.md"' {} \;

I'm now trying to convert all pdf in a folder to Markdown= using a similar approach:

find ./ -iname "*.pdf" -type f -exec sh -c 'pandoc "${0}" -o "${0%.= html}.md"' {} \;

All tha= t happens when I trigger the same for pdf conversion is terminal then says:=  

dquote>

The PDF isn't converted t= o Markdown. I'm a terminal/Pandoc newb so maybe it's different for PDF? I h= ave installed Mactex using Brew install librsvg python homebrew= /cask/basictex

=
Do I have to do a full pdflat= ex install, or is there a better formula here? Thanks!

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/846e351a-a762-4c7d-8026-6fb700893f44n%40googlegroups.= com.
------=_Part_7295_2004422803.1652148602563-- ------=_Part_7294_652942056.1652148602563--