comp.lang.ada
 help / color / mirror / Atom feed
From: "Rod Chapman" <rod.chapman@praxis-his.com>
Subject: Re: convert Word to PDF via GNATCOM
Date: 13 Feb 2006 01:16:36 -0800
Date: 2006-02-13T01:16:36-08:00	[thread overview]
Message-ID: <1139822196.875118.291400@o13g2000cwo.googlegroups.com> (raw)
In-Reply-To: <ufymor723.fsf@acm.org>

> 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




  parent reply	other threads:[~2006-02-13  9:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-12 14:21 convert Word to PDF via GNATCOM Stephen Leake
2006-02-12 17:21 ` Jeffrey Creem
2006-02-12 17:42 ` Pascal Obry
2006-02-13  9:16 ` Rod Chapman [this message]
2006-02-14  3:06   ` Stephen Leake
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox