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!postnews.google.com!o13g2000cwo.googlegroups.com!not-for-mail From: "Rod Chapman" Newsgroups: comp.lang.ada Subject: Re: convert Word to PDF via GNATCOM Date: 13 Feb 2006 01:16:36 -0800 Organization: http://groups.google.com Message-ID: <1139822196.875118.291400@o13g2000cwo.googlegroups.com> References: NNTP-Posting-Host: 217.205.167.130 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1139822201 19311 127.0.0.1 (13 Feb 2006 09:16:41 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 13 Feb 2006 09:16:41 +0000 (UTC) In-Reply-To: User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.7.8) Gecko/20050511 Firefox/1.0.4,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: o13g2000cwo.googlegroups.com; posting-host=217.205.167.130; posting-account=EhC47gwAAABJYiJ7JUJjwDyYMTWH1OKq Xref: g2news1.google.com comp.lang.ada:2871 Date: 2006-02-13T01:16:36-08:00 List-Id: > I'd like to use Gnu make to automate things, but I'm open to other > suggestions. We make makefiles and Word macros to do this. hang on...got it... Install this in a macro file that is loaded into your global Normal.dot template: Sub pdfprint() ActivePrinter = "Acrobat PDFWriter" Application.PrintOut FileName:="", Range:=wdPrintAllDocument, Item:= _ wdPrintDocumentContent, Copies:=1, Pages:="", PageType:=wdPrintAllPages, _ Collate:=True, Background:=False, PrintToFile:=True, OutputFileName:="wibble" ActiveDocument.Saved = True ActiveDocument.Close Application.Quit End Sub We then have a makefile rule that uses Word's little-documented "/m" command-line switch: %.pdf : %.doc $(msword) /mpdfprint $< mv wibble.pdf $@ Or something like that...I'm sure you get the idea... - Rod