From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/24931 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: HTML =?utf-8?Q?=E2=86=92?= EPUB: Either "Out of memory" or "openBinaryFile: invalid argument (Invalid argument)" Date: Mon, 20 Apr 2020 22:40:27 -0700 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="72316"; mail-complaints-to="usenet@ciao.gmane.io" To: Heck Lennon , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBWMO7L2AKGQEI5QI52Q-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Apr 21 07:40:45 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pl1-f188.google.com ([209.85.214.188]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jQleG-000IiK-PS for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 21 Apr 2020 07:40:44 +0200 Original-Received: by mail-pl1-f188.google.com with SMTP id n18sf7071322plp.17 for ; Mon, 20 Apr 2020 22:40:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1587447643; cv=pass; d=google.com; s=arc-20160816; b=sfnr1vJUANPrQh5NhJw678q85b+X+TpMkWg/azbPtWKvTbSFEYrMwuaHa6nhCtnpzM QaKbgFdpkfMxjNDktBOo2lS1bPzHfsO1gN92nKvHxqPUquy2vpEpQOrFagRkKwZCS3lf t13P+G2eiVBD2xLsShRza0X6FIbbVdQEz8wHntwmMXH2VjjqIFlTeThlPATXWUsfhtMK koniUpCU9H7altB/EdpTxECl0B0fQnEsWKxdVNWMdI2oh40sKWIoiUwX2Mbr43G4W3gU 3sTfvM2XkeHPeUq42510gL98Yz29TQ9uzd3oLrNLs0GAN7FvELjUVJQGhm92uhkY2EAo BJ4w== 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:mime-version:message-id :date:references:in-reply-to:subject:to:from:sender:dkim-signature; bh=RP9XWgqNWlasjq+4gzY9e83ligIRGldKuZV8/HtEMnc=; b=bq1HH8Rh2WKwQjYGBmDb0QgPAqRowtql9BKgKTmj5HdQLEFqMCisrfHV8ZNN1YfVkC PNOKFgWfYVBnhep9xre1kJTGNnOwF6gFDHFHepix5v7Oo5SE00o9SGmDDUkhh/H28CP6 mkQWhEM3RUYGyLm2oYbcYdwm/ZtcBAQ7M5fjN3Ma4wSLjLi5WfaA8LsnqsZBcqBp9t5b Dt/CVLwE2/qbwLukZy2jnBeeP+wHXECtx0LB92caz9V1HLpjR1mkp8RiWXNgKzaKQGnM AM3dWN/zq9MPpuLp+CuGXatnEVv8xPTSaCmhpvflxccE6a49yI2YRWnrofbMczvwdvaR AsNw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b="aj2w/a3B"; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::102f as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version: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=RP9XWgqNWlasjq+4gzY9e83ligIRGldKuZV8/HtEMnc=; b=VPpjMw3+R6UGvsRbAlPaFg7D16GRMSKCZr5M+kcTSRpV7zc1Nu23idSzounhFAWmAN zJTiV2tl05RulHMkDCTDT7Wj1nXVI34bjQ/nRwPZsf3Qr3BocqIR8/ryB7Hv3juVt0CW aIPDhoJ3S8uzz2C7umtsCAJCQ/wUZ/uc1EceSJDc6hc1CXdAW/PQpUkX2wcipVc+ve/g Eg9snJhOoFq0SIb2mnvVpf5u5UxDW7eemyOfj0tzjmAN0IefpPK5pBi5dMc8J0ZNUFL8 BOEb/Dr7LiXXnlFhBExkYvWVyZrj3mnfrZ/82dbJWP7LTWu9wdwRlC5eJbrPtJPF95iX pzLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version: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=RP9XWgqNWlasjq+4gzY9e83ligIRGldKuZV8/HtEMnc=; b=aa2YsTMtn7t1lh4NVlbkq/OWwHLRPUmbXGWQU6Q9y7XJq5I9SUdanOJ4FLJunSdikd SymsbhVqqmdOEM45AXnO2a25IgzGNzN5dqNfJWhnJU1geLDYtsRxOD7/7VuqbY5gwNWO jVh7BElHxyaa/WI+C2pOMjXrc8AjRRpheUkZnVQ25/UKcm993JAa/FNr2POWQbA82oHo VSMI5Y3iLVL0GmBJyVYtD5m+oVNN7Ef65Vf6wRrVYXsvjhv+ear1G6t+TagxALFl52SN IsyjQ38eKTN+8hsneZeX8pM5RTZ0XF8oBq8xTrz64/IP1FSZ4AfO4Wcu4V9jHOjUwzg/ lhjA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AGi0Pua9tS7FN9aZsygu+f/oeVMtniry5JwJb4YZ8oDlIzVb/fmXs1y8 phJQvUOlc6h/jMtMhaP6Uc8= X-Google-Smtp-Source: APiQypLOoHnh86t6HiCG1tbS9FHe3FpK3vpdbj3HKnjsMlPwC1YAHbXYWsl+UCsv/r1KEdwUeitOtQ== X-Received: by 2002:a62:1c97:: with SMTP id c145mr821406pfc.68.1587447643590; Mon, 20 Apr 2020 22:40:43 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aa7:8ac8:: with SMTP id b8ls11695941pfd.2.gmail; Mon, 20 Apr 2020 22:40:40 -0700 (PDT) X-Received: by 2002:a63:cf0b:: with SMTP id j11mr19075793pgg.404.1587447640696; Mon, 20 Apr 2020 22:40:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587447640; cv=none; d=google.com; s=arc-20160816; b=PpjxGFjs/tOSWoelhet/qc6RNGHVKSfYbFRyCGeFFGN+szx1LHZfYMEG0uNTJQk/6W xYH8rkPYGm4SwzeAbXrvUzCaMFBnPsRGF5D94U9HFRRiTkGytnVOMuQwI/hbNIhUf1Jx FsjlnFqIYNMtDkSW8yeYpaIHColMCQNZ6JUv6tj5rIGJTucAzEitkXQ4dXDk7tiCTtjZ tSibI6Ftv6cSxBSXjzN/qyEuBGSh3ExSahR70reapKDNknVFJGvSvy9/9Kg7YzUkEcX4 TqEUSE9ivFLbKiWM48D5kvVdDvvDwYpmQ9AX0eZeBxUlqwQNvW0CqwKqxQfAEjo5Y/U6 O0QQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :dkim-signature; bh=XjTFYNQvnhIrvwXM04hxrNefGbvzY3MXDUbx35tae+c=; b=qrq0BFAg1IH/UkMcbljklC4nqiPcQ4gMIhhWjpRA44q/lvSk8E4KWjOHaDciWmgN/f 1sPaRY7l6Wjy/JYHdG12UCVj3o0/X40Q0cKZju6fONY+B7K2tT+RdvOfRreppFhc2CCa 9uJmAK+6KsRsXqND+CNsHbkHaUza89o3R0d1VOafJ9/igbEyh8McZvwHsV8zttyq9sD0 GvzMIjrrdjIx4lFY6iyvJB2q7AQOvCm4b+ASUDJ+PQMHSLl9dbQ36yL6QgAcVlNJ+Sn0 Jpu/KNIUrMlWqioTVE+85Cn+O7ySANAGtQqPBPowlHfB/PtjgIqe7gWQ8N9xhByapheu WSmg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b="aj2w/a3B"; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::102f as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com. [2607:f8b0:4864:20::102f]) by gmr-mx.google.com with ESMTPS id a13si66146pjv.2.2020.04.20.22.40.40 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 20 Apr 2020 22:40:40 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::102f as permitted sender) client-ip=2607:f8b0:4864:20::102f; Original-Received: by mail-pj1-x102f.google.com with SMTP id nu11so904496pjb.1 for ; Mon, 20 Apr 2020 22:40:40 -0700 (PDT) X-Received: by 2002:a17:902:bf09:: with SMTP id bi9mr3879643plb.193.1587447640345; Mon, 20 Apr 2020 22:40:40 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id h11sm1220543pfo.120.2020.04.20.22.40.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Apr 2020 22:40:39 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 9E144A256; Tue, 21 Apr 2020 01:40:28 -0400 (EDT) In-Reply-To: X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b="aj2w/a3B"; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::102f as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@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:24931 Archived-At: 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 = 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. > > -- > 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/cfd086c1-9fe5-41bd-b735-3cd8db7579d9%40googlegroups.com.