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,bd1f474070392152,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon06.news.prodigy.com!prodigy.net!newspeer.monmouth.com!nntp.abs.net!news.abs.net!not-for-mail Newsgroups: comp.lang.ada Subject: convert Word to PDF via GNATCOM From: Stephen Leake Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (windows-nt) Cancel-Lock: sha1:TVkvf5Oyhse06Q6Sf8ccJ8X6hOA= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 12 Feb 2006 09:21:56 -0500 NNTP-Posting-Host: 66.159.65.1 X-Complaints-To: abuse@toad.net X-Trace: news.abs.net 1139754118 66.159.65.1 (Sun, 12 Feb 2006 09:21:58 EST) NNTP-Posting-Date: Sun, 12 Feb 2006 09:21:58 EST Xref: g2news1.google.com comp.lang.ada:2867 Date: 2006-02-12T09:21:56-05:00 List-Id: I have several Microsoft Word documents that are updated occasionally, and I'd like to automate converting them to PDF for publication on a Web page. (Yes, I'd rather they were in LaTeX or some other source, but I'm stuck with MS Word for now). I have Adobe Acrobat installed. It adds a button to Word that does the conversion nicely. I'd like to use Gnu make to automate things, but I'm open to other suggestions. I don't know how to invoke a Word button (or the underlying macro) from a command line. So I'm trying to use GNATCOM to generate a binding, and write a simple Ada main that invokes the Word macro that does the PDF conversion. I've run bindcom on MSWORD.TLB, and generated lots of Ada code, but I don't see anything that looks like "call a macro". Any suggestions? -- -- Stephe