comp.lang.ada
 help / color / mirror / Atom feed
From: Ludovic Brenta <ludovic@ludovic-brenta.org>
Subject: Re: Generating PDFs with Ada
Date: Thu, 13 Jan 2011 00:29:49 -0800 (PST)
Date: 2011-01-13T00:29:49-08:00	[thread overview]
Message-ID: <2a7cf3ea-0740-4a77-85f3-48dac4fbf85f@j25g2000yqa.googlegroups.com> (raw)
In-Reply-To: iglbch$m8k$1@munin.nbi.dk

Randy Brukardt wrote on comp.lang.ada:
> "Ludovic Brenta" <ludo...@ludovic-brenta.org> wrote in message
>
> news:87lj2rgkaz.fsf@ludovic-brenta.org...
> ...
>
>>> And I'm sure there are other tools out there (besides MS Office) that
>>> generate .doc files.
>
>> Apart from Microsoft's own, I can't think of any such tool.  Then again,
>> I don't use office software much, I don't use Windows, and I would
>> certainly not use, much less buy, a tool that locks my data into a
>> proprietary format like .doc.  Maybe that's because I'm a software
>> engineer and not a lemming :)
>
> You're not trying very hard. :-)
> OpenOffice produces .doc files. I think most of the web-based "office
> suites" also do. All for pragmatic reasons.

OK.  The reason I forgot about them is because I was thinking of
automated document generation, but your point is valid.

> I've tried to take the attitude you are espousing and it has proven
> completely impractical. I've tried distributing documents in .odf format
> (the supposedly open format of OpenOffice) and hardly anyone seemed to be
> happy. It's a lot easier to distribute in .doc format (although I try to
> distribute read-only documents as .PDF).

Yes, in my experience .PDF is the way to go. I generally *don't* want
people to change the documents I send them anyway.

> I think the "library" should be able to generate any kind of file that you
> want. The ARM_Formatter uses an O-O design which allows plugging in any kind
> of output that you might dream up. So long as the clients write to that
> interface (and there is no alternative!), any sort of output can be made.

Again, this argument is technically valid.  But if you're going to
generate documents, it is better to generate them in a standard format
over a non-standard one.

> Personally, I wouldn't want to try to directly create PDF files, because
> that would require doing detailed character layout, justification,
> pagination, indexing, table of contents, and the like. Doing these properly
> is a very complex job (I have experience with writing programs to output via
> typesetters back when I was much younger, and this is very difficult to get
> right). That's why I use MS Word and/or OpenOffice as an intermediary for
> creating the Ada standard and lots of other documents. If I was starting
> that today I would write directly to the .ODF format and let OpenOffice do
> all of the work (but that wasn't an option in 1998).

I agree that typesetting is difficult.  That's why I recommend using
typesetting programs to do that job.  Word processors are generally
bad at handling automatically generated input.  My preferred way would
be to generate TeX, LaTeX or DocBook and use the appropriate system do
the typesetting for me.

--
Ludovic Brenta.



  reply	other threads:[~2011-01-13  8:29 UTC|newest]

Thread overview: 69+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-09  1:00 Generating PDFs with Ada R. Tyler Croy
2011-01-09  9:29 ` Pascal Obry
2011-01-10  2:29   ` Stephen Leake
2011-01-10  3:48     ` Yannick Duchêne (Hibou57)
2011-01-10 10:19       ` Georg Bauhaus
2011-01-10 17:02         ` Yannick Duchêne (Hibou57)
2011-01-15 13:55       ` Elias Salomão Helou Neto
2011-01-15 14:51         ` Pascal Obry
2011-01-15 15:20           ` Elias Salomão Helou Neto
2011-01-15 17:55           ` Yannick Duchêne (Hibou57)
2011-01-16  3:13             ` Elias Salomão Helou Neto
2011-01-16  3:42               ` Yannick Duchêne (Hibou57)
2011-01-09  9:43 ` Dmitry A. Kazakov
2011-01-09 11:28   ` leonid
2011-01-09 15:36 ` Gautier write-only
2011-01-10 18:54 ` Adam Beneschan
2011-01-11  1:50   ` Randy Brukardt
2011-01-11  8:51   ` Stephen Leake
2011-01-11 15:37     ` Adam Beneschan
2011-01-11 18:41       ` Ludovic Brenta
2011-01-11 20:09         ` Yannick Duchêne (Hibou57)
2011-01-11 20:47         ` Adam Beneschan
2011-01-11 22:05           ` Yannick Duchêne (Hibou57)
2011-01-11 22:14           ` Ludovic Brenta
2011-01-11 22:22             ` Yannick Duchêne (Hibou57)
2011-01-11 22:32               ` Ludovic Brenta
2011-01-11 22:38             ` Yannick Duchêne (Hibou57)
2011-01-12  1:37             ` Shark8
2011-01-12  9:42             ` Stephen Leake
2011-01-12 22:53             ` Randy Brukardt
2011-01-13  8:29               ` Ludovic Brenta [this message]
2011-01-11 22:14           ` Yannick Duchêne (Hibou57)
2011-01-12  9:36           ` Pascal Obry
2011-01-12 13:02             ` Yannick Duchêne (Hibou57)
2011-01-12 14:16               ` Pascal Obry
2011-01-12  9:00     ` Maciej Sobczak
2011-01-12  9:44       ` sjw
2011-01-12 10:44         ` Manuel Collado
2011-01-12 13:12           ` Georg Bauhaus
2011-01-12 10:04       ` Dmitry A. Kazakov
2011-01-12 21:25         ` Maciej Sobczak
2011-01-12 21:57           ` Dmitry A. Kazakov
2011-01-12 23:14       ` Randy Brukardt
2011-01-13  8:33         ` Ludovic Brenta
2011-01-13  9:11           ` Georg Bauhaus
2011-01-13 20:40           ` Randy Brukardt
2011-01-13 22:34             ` Georg Bauhaus
2011-01-14  6:26               ` Thomas Løcke
2011-01-13 23:59             ` Edward Fish
2011-01-15 15:04         ` Elias Salomão Helou Neto
2011-01-15 17:45           ` Yannick Duchêne (Hibou57)
2011-01-15 23:58             ` Georg Bauhaus
2011-01-16  2:49             ` Elias Salomão Helou Neto
2011-01-16  3:21               ` Yannick Duchêne (Hibou57)
2011-01-16 11:59             ` Simon Wright
2011-01-16 12:57               ` Dmitry A. Kazakov
2011-01-16 14:25                 ` (see below)
2011-01-16 16:43                   ` Dmitry A. Kazakov
2011-01-16 20:48                     ` Yannick Duchêne (Hibou57)
2011-01-16 15:33                 ` Simon Wright
2011-01-16 16:44                   ` Dmitry A. Kazakov
2011-01-16 21:05                   ` Yannick Duchêne (Hibou57)
2011-01-16 20:34               ` Yannick Duchêne (Hibou57)
2011-01-16  1:27           ` Georg Bauhaus
2011-01-16  2:49             ` Yannick Duchêne (Hibou57)
2011-01-16 12:27             ` Elias Salomão Helou Neto
2011-01-16 19:22               ` Georg Bauhaus
2011-01-12 21:06   ` Florian Weimer
2011-01-12 14:14 ` RasikaSrinivasan@gmail.com
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox