From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/24940 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Anders Eriksson DC Newsgroups: gmane.text.pandoc Subject: =?UTF-8?Q?Re=3a_HTML_=e2=86=92_EPUB=3a_Either_=22Out_of_memory=22_o?= =?UTF-8?Q?r_=22openBinaryFile=3a_invalid_argument_=28Invalid_argument=29=22?= Date: Tue, 21 Apr 2020 21:40:32 +0200 Message-ID: References: <65ccb50b-6595-450d-86ca-c8103867e3bf@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="129313"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBD72P5XHTUORBNUY7X2AKGQEL2PBMGQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Apr 21 21:40:41 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lj1-f187.google.com ([209.85.208.187]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jQyl7-000XWr-3Q for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 21 Apr 2020 21:40:41 +0200 Original-Received: by mail-lj1-f187.google.com with SMTP id 82sf1654529ljf.22 for ; Tue, 21 Apr 2020 12:40:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1587498040; cv=pass; d=google.com; s=arc-20160816; b=uWPZNhvkL8f3Pzi+zwNwCSQPHk7Mukqec42agwfGrq26bcVtdJvAqvUoojC5dOzXe3 iJ6iqgycChvNvwZG4Xd4RubOvVeH0Ejj0RiFZJymX0KbAXq7wesZ5Bs9frgx9Mw3GVQf d2uE8MD1vzoc0Ll6tTko9eLOcpGTeBIL+am8ZMtSBxB/iOvjqsBBocoTgmiz2cH5hc/Z 8C1+yJdcsZj3J/hkjLwIVu+mDvvecvSadmPwXqbCDnb11MUoh0u8evZHucbiNreZPQsq n6fphNIqdlXV1DLTuAF9N/XH2Mjz/0S3lmtHPwjx3NQVb+Yfp/bX+Nh4EGfjx44Rtq2I xsmg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:sender:dkim-signature; bh=kYVhkpm4bEWNrb3ymdSb1culpoxuCKh4nnvvBPQWv5E=; b=HBmA78iUE5g+937b0WwJOSaqdXjqO+yKniLb8OXn4T51wq9F5PxnhLv1oZcfz4wiUb ZAvW3hBPI4FrpP94rBLGnZzudBhNGdcmYHSNbkIGcUwOCMvgqyQAGwKNZsz0wK4wGR64 ++Yz2hFBrXcnh+AmEyB6zp5NXt66krPdLJBbtXSm38dVsCyKB01QXf8JAntOOR9K8H6x wMaQFCMr1dDMGH2NX0RB09+5gJBYsHFTB/grs1VHsV1AxkJ8cBBeB6/Zdmw/QaqQOSlZ VpbKQPajUqR3s0cW4YB17x5TLa77W01yV/xa0klYpNyGYDyESLlenUU1bFD01FAhdcpT qwVA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@dclasersystem.com header.s=20191106 header.b=AAz7eLOU; spf=neutral (google.com: 46.30.210.184 is neither permitted nor denied by best guess record for domain of anders-gxScWWR+X5axBppYLAEN5wC/G2K4zDHf@public.gmane.org) smtp.mailfrom=anders-gxScWWR+X5axBppYLAEN5wC/G2K4zDHf@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=kYVhkpm4bEWNrb3ymdSb1culpoxuCKh4nnvvBPQWv5E=; b=ZDvW2NjqD5VoHNst1B2KLwzL/d9Qw0QkOuBg4r5SyNpubysxeSd8M4Q9XKT0xost1k +wSfmzEtkzYje1kPi0EEQs1q/K2CIe5AkuAhm8t1DvAkM5fhSqBsy/Jq/pSoH8hiN6+X gpzQaMcw2JtOWWT8x0KnK5W39s/DmPWS+6+IFYJTCFLownpMPasSbFpwzVx3mV0e2yaj wIDf2dyNMnCU4W7Q+XUSFo38hkRijgWpzq2QhX3g0c1wpahE9terHbmWZZijZjVj4SNb tGLD4bGJ3S+RO4VqMQMpmNJDaxbqUCNVb3J2IwF/lsK/k6yaLpJBft1LwjTomVx0AEXQ Z/yA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=kYVhkpm4bEWNrb3ymdSb1culpoxuCKh4nnvvBPQWv5E=; b=CWe14oCFIBcMTPgrIM0Zx+dq9WG4Tj8eaVfV00G+6x9q6BJn3trpYxhaSygEOU2OFv 8LvGgHpHVJKUGcfi/+QepdObDKdMh0V9Gfv7ke9HbhpVcWmUCXTK1ARWF1sksyWTq9kW WzQY1jd7g81IswqbbtuY9IHgYtBCs6OZ/4UsQZPkTGDvP4dCBokcjJzHyRWXgNwO/lbr a11L+3ts/Xrb10ngMgQwdf5hy0xtV8SON5sHAEnmaTntnjkCMKy3AYr65gDVwYkcjDJg q12b6aYLidFhWxQi5BThqWTuXu2d990T6Eyx Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AGi0PubWf0rCoOBR2YsbPksBcaXQ0ZU59WmuSWrgmsCaXcFIc/gU1A32 lNBnt47zeaJ857VbC84vQbk= X-Google-Smtp-Source: APiQypLHI3zZTu6vSSta2ay0DcWmJMHuK75g0Kwk6lNusl/9EgBIIaaOcMaGjSCE9Cx55NAES2L03g== X-Received: by 2002:a2e:b4a5:: with SMTP id q5mr2769483ljm.58.1587498040515; Tue, 21 Apr 2020 12:40:40 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:ac2:5a0e:: with SMTP id q14ls2492242lfn.3.gmail; Tue, 21 Apr 2020 12:40:37 -0700 (PDT) X-Received: by 2002:a05:6512:318a:: with SMTP id i10mr14837043lfe.96.1587498037533; Tue, 21 Apr 2020 12:40:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587498037; cv=none; d=google.com; s=arc-20160816; b=a+QX8IiFtRhMCqqWVFWfm5mjdMI3Vt8MbcuxUko7HJiChRVNeQJc2pm/1mB5As0KRr OGumrZxJn/n4EafQa6w3AX11elvVbp38TL3PBwPSQ+Bi+tId+2VCH+BgUvQcJwBxp6Hb lOu/69DpcDuRFkHxe4N7ZzfWdUxU3OJzH/etMvEjktmtB+p2aqk//T3wJO3V2ZY+QVgB zKW3ee00yegxfcaMKSfy2R6JpIGIxnTJElp7QzuYb0VWM4gZoSWkrWZAi0/oa57NIKLl /uDsgSnYPhQYnl9btcXPub3gRthx1M1JwJ5xR/k9RiuFnrfRnKRRuubl4PXdEfyUxhZZ YaWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-language:content-transfer-encoding:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject :dkim-signature; bh=17xl+c3tS9GW1UI6cB3C/O8suLBZChlCqtGDbINluJ4=; b=Sxbab3QoIMaE9B0bME3jSTU9Pl9OhPqjFujgrcg3Ych8sOMtwOd5Dp7eoiG3VP9joo yOyrarMX/d3UGFugn43aRCeb003qIYndxojksXoojIyQAuV4Yg0B20rx8BO5FYLXcJAK +9s/quC4h6/GaVB3TRcM8B6jw40hxOYRW/5t6bSC3t0zW+TN99ksN+hQSSqIE9HLj97N KwJCEUBBnBaHdgfgSznTOWgXTNnTMfChNAUBZdv1rktENr5UZaJ0PRv752DJsNK+jIwv b60o77g6cfIvfunTlik9l4KklBHATuvqmN2LZ8fKCS/DXeJpvnkeyHjrkdqywiIjQXiF B+Vg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@dclasersystem.com header.s=20191106 header.b=AAz7eLOU; spf=neutral (google.com: 46.30.210.184 is neither permitted nor denied by best guess record for domain of anders-gxScWWR+X5axBppYLAEN5wC/G2K4zDHf@public.gmane.org) smtp.mailfrom=anders-gxScWWR+X5axBppYLAEN5wC/G2K4zDHf@public.gmane.org Original-Received: from mailrelay3-1.pub.mailoutpod1-cph3.one.com (mailrelay3-1.pub.mailoutpod1-cph3.one.com. [46.30.210.184]) by gmr-mx.google.com with ESMTPS id a12si183779ljm.2.2020.04.21.12.40.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Apr 2020 12:40:37 -0700 (PDT) Received-SPF: neutral (google.com: 46.30.210.184 is neither permitted nor denied by best guess record for domain of anders-gxScWWR+X5axBppYLAEN5wC/G2K4zDHf@public.gmane.org) client-ip=46.30.210.184; X-HalOne-Cookie: 17ef1d4ef1d2f9fff3915424df6bd2f950ee5877 X-HalOne-ID: f7f88646-8407-11ea-9e61-d0431ea8bb03 Original-Received: from [192.168.1.3] (unknown [83.172.125.39]) by mailrelay3.pub.mailoutpod1-cph3.one.com (Halon) with ESMTPSA id f7f88646-8407-11ea-9e61-d0431ea8bb03; Tue, 21 Apr 2020 19:40:35 +0000 (UTC) In-Reply-To: Content-Language: sv-SE X-Original-Sender: anders-gxScWWR+X5axBppYLAEN5wC/G2K4zDHf@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@dclasersystem.com header.s=20191106 header.b=AAz7eLOU; spf=neutral (google.com: 46.30.210.184 is neither permitted nor denied by best guess record for domain of anders-gxScWWR+X5axBppYLAEN5wC/G2K4zDHf@public.gmane.org) smtp.mailfrom=anders-gxScWWR+X5axBppYLAEN5wC/G2K4zDHf@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:24940 Archived-At: On 2020-04-21 20:21, John MacFarlane wrote: > Yes, pandoc can use stdin (see the manual), but only when > files aren't explicitly specified on the command line. You > can't use stdin AND name input files, as in your batch file. > > I have no idea why you wouldn't be getting shell expansion > of *.html; maybe someone who uses Windows could comment. > Are there perhaps special characters or spaces in your > .html file names? Try > > pandoc "*.html" Windows doesn't support shell expansion! You need to create a batch file or run in PowerShell ... More info here https://superuser.com/questions/460598/is-there-any-way-to-get-the-windows-= cmd-shell-to-expand-wildcard-paths // Anders > Heck Lennon writes: > >> Per this thread=E2=80=A6 >> https://groups.google.com/d/msg/pandoc-discuss/eMfCGU3Gn8E/bEhyLpUYBAAJ >> =E2=80=A6 I named the batch file pandoc.cmd, and re-ran the command thus= ly: >> >> echo output.epub | pandoc *.html - >> >> It runs for a few minutes, and ends with displaying some HTML=E2=80=A6 b= ut no .epub >> can be found. >> >> I assume I'm not using the command correctly. Can pandoc use the standar= d >> input? >> >> >> Le mardi 21 avril 2020 12:10:30 UTC+2, Heck Lennon a =C3=A9crit : >>> It's Windows (7, 32 bits) and pandoc 2.9.2.1. >>> >>> Le mardi 21 avril 2020 07:40:45 UTC+2, John MacFarlane a =C3=A9crit : >>>> >>>> That's extremely strange. Your shell should be expanding the * >>>> in *.html before it even gets to pandoc. So if pandoc can see >>>> the *, your shell hasn't done what it's supposed to. >>>> >>>> What OS are you using, and what version of pandoc? >>>> >>>> Heck Lennon writes: >>>> >>>>> Hello >>>>> >>>>> >>>>> On Windows (7, 32 bits), I'm trying to convert a ~450 page PDF into >>>> EPUB. >>>>> >>>>> 1. I used "mutool draw" to convert the PDF into a single, ~10MB HTML: >>>>> >>>>> >>>>> pandoc -f html -t epub3 -o output.epub input.html >>>>> >>>>> (~10mn wait on my sluggish computer) >>>>> >>>>> "Out of memory": >>>>> >>>>> >>>>> 2. Next, I reran "mutool draw" to convert the PDF as one page =3D one >>>> HTML >>>>> page: >>>>> >>>>> >>>>> pandoc -o output.epub *.html >>>>> >>>>> pandoc: *.html: openBinaryFile: invalid argument (Invalid argument) >>>>> >>>>> >>>>> 3.Finally, I used pandoc to concatenate all the HTML files, but still >>>> got a >>>>> "openBinaryFile: invalid argument (Invalid argument)". >>>>> >>>>> >>>>> pandoc *.html > full.html >>>>> >>>>> pandoc: *.html: openBinaryFile: invalid argument (Invalid argument) >>>>> >>>>> >>>>> What do you suggest I try? >>>>> >>>>> >>>>> Thank you. >>>>> >>>>> --=20 >>>>> 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, sen= d >>>> an email to pandoc-...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/pandoc-discuss/cfd086c1-9fe5-41bd-b7= 35-3cd8db7579d9%40googlegroups.com. >>>> >>>> >> --=20 >> You received this message because you are subscribed to the Google Group= s "pandoc-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send a= n email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To view this discussion on the web visit https://groups.google.com/d/msg= id/pandoc-discuss/f11a136c-0f32-4a59-b7cf-4aab865e1d68%40googlegroups.com. --=20 Anders Eriksson Software Engineer DC Lasersystem AB Norsborsgsv=C3=A4gen 3 S-145 90 NORSBORG SWEDEN +46 (0)73 029 45 74 (Mobile) anders-gxScWWR+X5axBppYLAEN5wC/G2K4zDHf@public.gmane.org --=20 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 e= mail 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/e592c58b-5076-51aa-e09b-6bb3b31666d7%40dclasersystem.com.