Date: Thu, 3 Aug 2017 05:37:18 +0200 From: Polytropon <freebsd@edvax.de> To: William Dudley <wfdudley@gmail.com> Cc: freebsd-questions <freebsd-questions@freebsd.org> Subject: Re: html -> pdf conversion + pdf generation Message-ID: <20170803053718.ed6d97e4.freebsd@edvax.de> In-Reply-To: <CAFsnNZLdJpkVwdtF4hYL2my8Jc4%2B_SHNjTO3n131fHSQpN-Yog@mail.gmail.com> References: <85a6a91f-bf58-3d76-befa-6fee0a4bb6c8@paz.bz> <CAFsnNZ%2B2fs42K1LZxwEFb24V0d0maz=rho_CpRPnJOb=G=9KJw@mail.gmail.com> <CAFsnNZLdJpkVwdtF4hYL2my8Jc4%2B_SHNjTO3n131fHSQpN-Yog@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 2 Aug 2017 23:27:52 -0400, William Dudley wrote: > HTML conversion to anything is messy and inaccurate in my experience. HTML is not "pixel perfect" and not "print ready" even though there are means to achieve good formatting in CSS. However, just let the user have a standard paper format like ISO A4 instead of US Letter and you'll have the chance to get quite surprising results. :-) I think web browsers whose primary function is to render HTML (and CSS and JS and images and media, to a certain extent) are the best tool to generate PDFs from web pages (which is a good term to summarize what "HTML" in the subject refers to, because it _never_ is "just HTML"), and the browser's print function can easily create PDF files, even with "extensions" like headers or footers with title or page number. It probably is even possible to use this approach in a "headless way", i. e., without user interaction and driven from command line, so converting bigger amounts of web pages to PDF can be done automatically. This is all of course nonsense when you are a VC-backed startup in the market of B2C leverage interactive social BS ninja agile mobile web big data NoQSL real-time ad revenue organic unicorn devops service-as-a-service service and you want to make yourself fully dependent on 3rd party tools for anything you do... ;-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170803053718.ed6d97e4.freebsd>