On Mon, 18 Oct 2010 12:54:13 +0100, Alix Pexton wrote: > On 17/10/2010 18:45, Walter Bright wrote: >> Apparently, it is fairly simple to convert plain text files to PDF. >> >> http://re-factor.blogspot.com/2010/10/text-to-pdf.html >> >> Which suggests to me it should be equally simple to create a Ddoc macro >> file to allow Ddoc to emit pdf files directly. >> >> Anyone want a nice weekend project to product this? > > I read the PDF spec once*, I can see in my mind what a PDF generated by > DDoc could look like, and I'm quite confident in saying that it is > nothing like as pretty or simple to produce as the current, most basic > HTML output. > > The "Hello Worlrd" for PDF (found in appendix H of the spec) makes DNA > look simple and concise**. > > [...] > > I still think it would be more than 1 weekend's work though***.
I, too, suspect it would be quite a lot of work. The path of least resistance would probably be to go via LaTeX. Making DDOC macros for LaTeX output sounds more like a one-weekend mini project. -Lars
