Ddoc to PDF

David Gileadi gileadis at NSPMgmail.com
Mon Oct 18 11:19:59 PDT 2010


On 10/18/10 11:13 AM, Walter Bright wrote:
> Alix Pexton wrote:
>> After a lot of thought, I have come to the conclusion that giving DDoc
>> the power required to calculate layout in a way that is general enough
>> to be used not only by PDF but by any other layout technology, and the
>> ability to work with a flattened tree, is a non starter.
>
> Perhaps you're right. But it strikes me as possible that a Ddoc template
> that emits the text in some custom format, which is then read by a
> custom pdf generator program, could work. In other words, a two step
> process.

Presuming that custom format is HTML then this is close to actuality. 
During the look 'n' feel changes for d-programming-language.org I 
experimented with using wkhtmltopdf 
(http://code.google.com/p/wkhtmltopdf/) to generate PDF versions of the 
documentation using the print CSS styles.  Besides a couple of defects 
to do with page numbering the results looked very good.


More information about the Digitalmars-d mailing list