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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no 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!r29g2000yqj.googlegroups.com!not-for-mail From: Maciej Sobczak Newsgroups: comp.lang.ada Subject: Re: Generating PDFs with Ada Date: Wed, 12 Jan 2011 01:00:42 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <4d2908c7$0$22120$742ec2ed@news.sonic.net> <9f23e50a-2c2c-4ccc-bd56-f6ffdc6c7ee7@37g2000prx.googlegroups.com> <82aaj73jsr.fsf@stephe-leake.org> NNTP-Posting-Host: 137.138.182.236 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1294822842 7623 127.0.0.1 (12 Jan 2011 09:00:42 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 12 Jan 2011 09:00:42 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: r29g2000yqj.googlegroups.com; posting-host=137.138.182.236; posting-account=bMuEOQoAAACUUr_ghL3RBIi5neBZ5w_S User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10,gzip(gfe) Xref: g2news2.google.com comp.lang.ada:17358 Date: 2011-01-12T01:00:42-08:00 List-Id: On Jan 11, 9:51=A0am, Stephen Leake wrote: > > As long as we're on sort of a similar subject, I've wondered several > > times if there are Ada libraries for creating Microsoft Word > > documents. > > I hope not :) Without getting involved into the discussion that follows, I would propose everybody to read this: http://www.joelonsoftware.com/items/2008/02/19.html The most important part starts with "Let Office do the heavy work for you", but the whole article is worth reading. Some years ago I have been working on the application that was supposed to produce Excel documents. I have done it via COM interfaces and consider it to be the only reasonable solution for this kind of tasks. The file format might be non-standard, intentionally obfuscated, evil and whatever you call it, but the API is documented and works very well. Reimplementing the internal file format engine is pointless if the document can be already produced at the level of its logical content. Now, the question is how to access COM interfaces from Ada, but I believe this problem is already solved, as it is much more generic than producing Word files. The article describes alternative solutions as well, but none of them is even close to writing Word files directly. -- Maciej Sobczak * www.msobczak.com * www.inspirel.com