comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <stephen_leake@acm.org>
Subject: Re: convert Word to PDF via GNATCOM
Date: Mon, 13 Feb 2006 22:06:31 -0500
Date: 2006-02-13T22:06:31-05:00	[thread overview]
Message-ID: <uy80ezljc.fsf@acm.org> (raw)
In-Reply-To: 1139822196.875118.291400@o13g2000cwo.googlegroups.com

"Rod Chapman" <rod.chapman@praxis-his.com> writes:

> 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

That's not as nice as invoking the "convert to PDF" button; you
don't get the table of contents as PDF bookmarks.

But I can't actually find the name of the macro that button invokes,
so maybe I'll just go with your approach.

> We then have a makefile rule that uses Word's little-documented "/m"
> command-line
> switch:

_That's_ what I was looking for! Why can't MS document things like
that!? Or perhaps I should ask how you found out about it?

Way easier than sorting thru thousands of lines of GNATCOM output.

-- 
-- Stephe



      reply	other threads:[~2006-02-14  3:06 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
2006-02-14  3:06   ` Stephen Leake [this message]
replies disabled

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