From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,666bab5bfbdf30c2 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!j25g2000yqa.googlegroups.com!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: Generating PDFs with Ada Date: Thu, 13 Jan 2011 00:29:49 -0800 (PST) Organization: http://groups.google.com Message-ID: <2a7cf3ea-0740-4a77-85f3-48dac4fbf85f@j25g2000yqa.googlegroups.com> References: <4d2908c7$0$22120$742ec2ed@news.sonic.net><9f23e50a-2c2c-4ccc-bd56-f6ffdc6c7ee7@37g2000prx.googlegroups.com><82aaj73jsr.fsf@stephe-leake.org><9600f7e1-496b-4232-a5b8-50bc97d8dd7a@g26g2000vbi.googlegroups.com><87tyhfgu5y.fsf@ludovic-brenta.org> <87lj2rgkaz.fsf@ludovic-brenta.org> NNTP-Posting-Host: 153.98.68.197 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1294907390 21404 127.0.0.1 (13 Jan 2011 08:29:50 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 13 Jan 2011 08:29:50 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: j25g2000yqa.googlegroups.com; posting-host=153.98.68.197; posting-account=pcLQNgkAAAD9TrXkhkIgiY6-MDtJjIlC User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.6) Gecko/2009012111 Red Hat/3.0.6-1.el5 Firefox/3.0.6,gzip(gfe) Xref: g2news2.google.com comp.lang.ada:17379 Date: 2011-01-13T00:29:49-08:00 List-Id: Randy Brukardt wrote on comp.lang.ada: > "Ludovic Brenta" 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. =A0Then agai= n, >> 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. =A0Maybe 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 yo= u > want. The ARM_Formatter uses an O-O design which allows plugging in any k= ind > 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 proper= ly > 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 g= et > 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 d= o > 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.