From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Tomas Hlavaty Newsgroups: gmane.emacs.devel Subject: Re: "Why is emacs so square?" Date: Fri, 05 Jun 2020 18:37:31 +0200 Message-ID: <87a71hv584.fsf@logand.com> References: <863691n4xl.wl-me@enzu.ru> <86blno9yle.wl-me@enzu.ru> <87d0845msg.fsf@yahoo.com> <87h7xgjasw.fsf@yahoo.com> <875zdwjais.fsf@yahoo.com> <6a198677-41b6-4dbd-39d0-2b01550d53cf@yandex.ru> <32f6a2ce-e30f-059f-dcd4-233d666a10a1@yandex.ru> <87tuzqmskt.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="117285"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Steinar Bang , Richard Stallman , emacs-devel@gnu.org To: Juri Linkov , Arthur Miller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jun 05 18:38:20 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jhFMJ-000UPN-LU for ged-emacs-devel@m.gmane-mx.org; Fri, 05 Jun 2020 18:38:19 +0200 Original-Received: from localhost ([::1]:58180 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jhFMI-0001YZ-Nu for ged-emacs-devel@m.gmane-mx.org; Fri, 05 Jun 2020 12:38:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38372) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jhFLg-0000Yp-5Q for emacs-devel@gnu.org; Fri, 05 Jun 2020 12:37:40 -0400 Original-Received: from logand.com ([37.48.87.44]:56544) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jhFLd-0007O0-Rl; Fri, 05 Jun 2020 12:37:39 -0400 Original-Received: by logand.com (Postfix, from userid 1001) id BE78A1A162A; Fri, 5 Jun 2020 18:37:35 +0200 (CEST) X-Mailer: emacs 26.3 (via feedmail 11-beta-1 I) In-Reply-To: <87tuzqmskt.fsf@mail.linkov.net> Received-SPF: pass client-ip=37.48.87.44; envelope-from=tom@logand.com; helo=logand.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/05 12:15:54 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:251911 Archived-At: Juri Linkov writes: > Maybe chromium-browser --print-to-pdf=doc.pdf --headless --disable-gpu > --run-all-compositor-stages-before-draw --no-margins doc.html > or using its wrapper chromehtml2pdf. there are alternatives which don't require malware: abiword --to=PDF -o a.pdf a.html soffice --headless --convert-to pdf a.html wkhtmltopdf -B 24 -L 24 -R 24 -T 24 a.html a.pdf But none of those produce good documents. As an experiment, I tried to produce the ebooks.pdf document from org-mode, exported to html, opened in firefox, printed to pdf. It gave the best result. It looked almost like the original and was easy to tune in org-mode. I only had to iterate a few times. But still, all these solutions require huge dependencies.