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 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Sun, 12 Feb 2006 11:26:19 -0600 Date: Sun, 12 Feb 2006 12:21:52 -0500 From: Jeffrey Creem User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: convert Word to PDF via GNATCOM References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <9e74c3-te9.ln1@newserver.thecreems.com> NNTP-Posting-Host: 24.147.74.171 X-Trace: sv3-IJ01ndPob09sTmr/pTwv3y4geNGf8sWuv7b3q/3CBloqJFIFQpXB4HV+6qLL3BCACw/gFGmd1EHKBps!dhpFMXwYrx80HTOZJFKoevhg4GrvV4TrYLqNYuP5BG5xKuci406T2Kh+E6/Nbw4uI6RIm79rKRzg!lKA= X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news1.google.com comp.lang.ada:2868 Date: 2006-02-12T12:21:52-05:00 List-Id: Stephen Leake wrote: > 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? > May not be quite as good but it looks like it might be easier to do this with http://wvware.sourceforge.net/ Since it ends up using the Acrobat Distiller for the final conversion to PDF the resulting PDF should be good with the exception of any possible misinterpretation of the word data. If that does not work, perhaps this articule will http://support.microsoft.com/kb/172483/