Ddoc to PDF

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Mon Oct 18 07:14:33 PDT 2010


On 10/18/2010 06:54 AM, 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.

There's no need for all that. It took me a short time to produce a set 
of macros that would generate LaTeX files from ddoc. I'm sure I have it 
somewhere, or I could rewrite it. From there you get to produce high 
quality PDFs.

Andrei



More information about the Digitalmars-d mailing list