From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-4.sys.kth.se (smtp-4.sys.kth.se [130.237.48.193]); by fantadrom.bsd.lv (OpenSMTPD) with ESMTP id 6cc48272; for ; Mon, 9 Mar 2015 06:34:27 -0500 (EST) Received: from smtp-4.sys.kth.se (localhost.localdomain [127.0.0.1]) by smtp-4.sys.kth.se (Postfix) with ESMTP id 83ABB1DF4 for ; Mon, 9 Mar 2015 12:34:26 +0100 (CET) X-Virus-Scanned: by amavisd-new at kth.se Received: from smtp-4.sys.kth.se ([127.0.0.1]) by smtp-4.sys.kth.se (smtp-4.sys.kth.se [127.0.0.1]) (amavisd-new, port 10024) with LMTP id cLy9UMTIAyjM for ; Mon, 9 Mar 2015 12:34:24 +0100 (CET) X-KTH-Auth: kristaps [92.136.205.40] X-KTH-mail-from: kristaps@bsd.lv X-KTH-rcpt-to: discuss@mdocml.bsd.lv Received: from pc3.home (AToulouse-651-1-38-40.w92-136.abo.wanadoo.fr [92.136.205.40]) by smtp-4.sys.kth.se (Postfix) with ESMTPSA id 1DA4E200 for ; Mon, 9 Mar 2015 12:34:16 +0100 (CET) Message-ID: <54FD8539.3090601@bsd.lv> Date: Mon, 09 Mar 2015 12:34:17 +0100 From: Kristaps Dzonsons User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 X-Mailinglist: mdocml-discuss Reply-To: discuss@mdocml.bsd.lv MIME-Version: 1.0 To: discuss@mdocml.bsd.lv Subject: Re: Linking in mdoc(7) References: <54FC74F4.9090200@bsd.lv> <20150309062921.GA29323@danbala.tuwien.ac.at> <13739.1425883122@CATHET.us> <54FD5DFB.7090407@bsd.lv> <20150309111207.GA26239@britannica.bec.de> In-Reply-To: <20150309111207.GA26239@britannica.bec.de> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 >> term_ps.c is incredibly simple in this regard: it outputs word >> by word. This is why the PS and PDF it generates is so huge. > > Trust me, you can do a lot worse. Even Microsoft's SaveAsPDF > creates output character by character :) It should be pretty trivial to compress page content, actually. Basically, between the stream/endstream parts, everything can be compressed. I'm not sure if zlib supports PDF's compression schemes, however; or if not, whether it's possible to inline a public domain implementation. If you can come up with one, I can add in the bits for it. Cf. http://acroeng.adobe.com/PDFReference/PDF%20Reference%201.1.pdf, section 4.8, "filters". -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJU/YU5AAoJEMT2SUY9XBEScWIQAKBg7t1j75MY0K2RrHDo47cN BHrFvx49IBJvg1TXMHChWlGhbBXc9uokhY3AIyfr3kdp+00KlCUgLskShzj5Bxja iAblVWki9Rpomz5gfrMGqcTe8lgnxj0tZKk2C2Y0MQQpCHXxd7fjhdiu2kiJFSHr ZcUsWeMzngH7zNRduWod44cfb1kXW80MH//IeZg/L0VT2kHs3OdcRfYLMwKEiyB8 w4/5D7nPwjBCRYfV2auQmN4sqNSN8pcayDfHLDfqXU8Yv4ww/BfgtaNmwcCYj0E2 UTMTgL4bxE4A9UnGZEa3rFjcCvbIdGaxnG1NdLswkI98XW3endE5iBVDnaAGfEXT 7JXDSyniM1oiNUYjLV4Dp+ZkiqcO6Ss5u7FsGXRPlg/50Rw7r4GC+dgr/y/jRXdZ UVkPCnsUuOhmqfCZFtKriwWMQtP0UHOlUXJSa5gFS7zF6G2XCjA4zDZOKscm/61c Aw2JKYMdEVIo8PBWdPQS2cZHJEMf3WuF7rd6vcjkX01LNKOG5FYLlU0V5rt6xp6c ocWNU3SL3koTvZxI3A4diK8E2LQWQq0i9m2wKabkPM5Iy3qwu0ZJmA7/fEnrATDx rOCWozS9vlYKOhNA2VLB3+GXhC7rIvVcUhxGQl17H9C2tfR1IneF1ivGSAia9TwY 5I0WAZHNrYfeS7p5Q6Re =1q3J -----END PGP SIGNATURE----- -- To unsubscribe send an email to discuss+unsubscribe@mdocml.bsd.lv