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,CP1252 Path: g2news2.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!news.in2p3.fr!in2p3.fr!kanaga.switch.ch!switch.ch!news.uv.es!not-for-mail From: Manuel Collado Newsgroups: comp.lang.ada Subject: Re: Generating PDFs with Ada Date: Wed, 12 Jan 2011 11:44:52 +0100 Organization: Universitat de Valencia Message-ID: References: <4d2908c7$0$22120$742ec2ed@news.sonic.net> <9f23e50a-2c2c-4ccc-bd56-f6ffdc6c7ee7@37g2000prx.googlegroups.com> <82aaj73jsr.fsf@stephe-leake.org> <229d8cdb-4055-46a8-b415-47b37e0f04f9@n10g2000yqd.googlegroups.com> NNTP-Posting-Host: melva.ls.fi.upm.es Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Trace: peque.uv.es 1294829094 27498 138.100.10.218 (12 Jan 2011 10:44:54 GMT) X-Complaints-To: newsmanager@uv.es NNTP-Posting-Date: Wed, 12 Jan 2011 10:44:54 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.9.2.9) Gecko/20100825 Thunderbird/3.1.3 In-Reply-To: <229d8cdb-4055-46a8-b415-47b37e0f04f9@n10g2000yqd.googlegroups.com> Xref: g2news2.google.com comp.lang.ada:17363 Date: 2011-01-12T11:44:52+01:00 List-Id: El 12/01/2011 10:44, sjw escribi�: > On Jan 12, 9:00 am, Maciej Sobczak wrote: >> On Jan 11, 9:51 am, 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. > > I especially liked this bit: > > "If you really want to generate fancy formatted Word documents, your > best bet is to create an RTF document. Everything that Word can do > can > be expressed in RTF, but it�s a text format, not binary, so you can > change things in the RTF document and it�ll still work. You can > create > a nicely formatted document with placeholders in Word, save as RTF, > and then using simple text substitution, replace the placeholders on > the fly. Now you have an RTF document that every version of Word will > open happily." Another possibility is to use the "Microsoft Office XML formats": http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats Any general-purpose XML tool or library can handle them. -- Manuel Collado - http://lml.ls.fi.upm.es/~mcollado