Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

inserting postscript commands in a Word97 document

0 views
Skip to first unread message

sebasti...@my-deja.com

unread,
Aug 6, 1999, 3:00:00 AM8/6/99
to
I'm using Distiller Assistant 3.01 to print
Word97 documents into postscript files and then I
convert these .ps into .pdf with Acrobat
Distiller. But when the Word97 document's
orientation is "landscape", the pdf document's
orientation is always "portrait".

I see that it is possible to send postscript
commands from Word to the postscript device
printer with the PRINT field, but I don't know
which command to use for setting the orientation
to "landscape".

Please help!!!

Seb.


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

Ken Sharp

unread,
Aug 6, 1999, 3:00:00 AM8/6/99
to
In article <7oedse$uo0$1...@nnrp1.deja.com>, sebasti...@my-deja.com
says...

> I'm using Distiller Assistant 3.01 to print
> Word97 documents into postscript files and then I
> convert these .ps into .pdf with Acrobat
> Distiller. But when the Word97 document's
> orientation is "landscape", the pdf document's
> orientation is always "portrait".
>
> I see that it is possible to send postscript
> commands from Word to the postscript device
> printer with the PRINT field, but I don't know
> which command to use for setting the orientation
> to "landscape".

You don't this is not the problem. Distiller is attempting to be helpful
by rotating the page until the majority of the text is horizontal. I
beleieve there is a way of preventing this by editing one of the startup
files, but I can no longer remember how. Try checking the help files.

Ken

LC's No-Spam Newsreading account

unread,
Aug 6, 1999, 3:00:00 AM8/6/99
to
On Fri, 6 Aug 1999, Ken Sharp wrote:

> You don't this is not the problem. Distiller is attempting to be helpful
> by rotating the page until the majority of the text is horizontal. I

Ah you mean like the proverbial joke about the boy scout who helps the
old lady to cross the street when she did not want to cross ? :-)

--
----------------------------------------------------------------------
nos...@ifctr.mi.cnr.it is a newsreading account used by more persons to
avoid unwanted spam. Any mail returning to this address will be rejected.
Users can disclose their e-mail address in the article if they wish so.


sebasti...@my-deja.com

unread,
Aug 6, 1999, 3:00:00 AM8/6/99
to
In article <MPG.1214d1d1b...@news.dircon.co.uk>,

k...@five-d.com (Ken Sharp) wrote:
> In article <7oedse$uo0$1...@nnrp1.deja.com>, sebasti...@my-deja.com
> says...
> > I'm using Distiller Assistant 3.01 to print
> > Word97 documents into postscript files and then I
> > convert these .ps into .pdf with Acrobat
> > Distiller. But when the Word97 document's
> > orientation is "landscape", the pdf document's
> > orientation is always "portrait".
> >
> > I see that it is possible to send postscript
> > commands from Word to the postscript device
> > printer with the PRINT field, but I don't know
> > which command to use for setting the orientation
> > to "landscape".
>
> You don't this is not the problem. Distiller is attempting to be
helpful
> by rotating the page until the majority of the text is horizontal. I
> beleieve there is a way of preventing this by editing one of the
startup
> files, but I can no longer remember how. Try checking the help files.
>
> Ken
>
> What are those startup files you are talking about ???

PEZ

unread,
Aug 6, 1999, 3:00:00 AM8/6/99
to sebasti...@my-deja.com
In article <7oedse$uo0$1...@nnrp1.deja.com>,

sebasti...@my-deja.com wrote:
> I'm using Distiller Assistant 3.01 to print
> Word97 documents into postscript files and then I
> convert these .ps into .pdf with Acrobat
> Distiller. But when the Word97 document's
> orientation is "landscape", the pdf document's
> orientation is always "portrait".

I think this is because Word doesn't supply the "landcape" information
to the postscript file. The printer doesn't need it anyway.

> I see that it is possible to send postscript
> commands from Word to the postscript device
> printer with the PRINT field, but I don't know
> which command to use for setting the orientation
> to "landscape".

There is no postscript command that does that. At least not that I know
of. But I would be REALLY surprised if Acrobat Distiller didn't honour
the Document Structure Convention (DSC). So you could add a postscript
comment to the file, like so:

%%PageOrientation: Landscape

(I'm not sure it is the correct DSC instructions, but I think so.) Then
the distiller ought to produce landscape PDFs for you.

Note that in order to get DSC treatment of the file to kick in it
should start with:

%!PS-Adobe-2.0

(Or 3.0 or whatever version of DSC that is used.) MS Word does this for
you.

I hope this helped,
/Peter Strömberg
-= Second place is only the best of the losers =-

Ken Sharp

unread,
Aug 6, 1999, 3:00:00 AM8/6/99
to
In article <7oek00$2l3$1...@nnrp1.deja.com>, sebasti...@my-deja.com
says...

> > What are those startup files you are talking about ???

Any file in the Distiller\startup folder, the default is example.ps, but
you can make any other you choose. Try checking the documentation on
setdistillerparams.

Ken Sharp

unread,
Aug 6, 1999, 3:00:00 AM8/6/99
to
In article <7oekq3$3b8$1...@nnrp1.deja.com>, pe...@my-deja.com says...

> There is no postscript command that does that. At least not that I know
> of. But I would be REALLY surprised if Acrobat Distiller didn't honour
> the Document Structure Convention (DSC). So you could add a postscript
> comment to the file, like so:
>
> %%PageOrientation: Landscape

<</Orientation 1>> setpagedevice

Distiller ignores the PageOrientation comment. It is almost certainly
using AutorotatePages to rotate the page until the majority of the text
is horizontal.

PEZ

unread,
Aug 11, 1999, 3:00:00 AM8/11/99
to
In article <MPG.121501081...@news.dircon.co.uk>,

k...@five-d.com (Ken Sharp) wrote:
> In article <7oekq3$3b8$1...@nnrp1.deja.com>, pe...@my-deja.com says...
>
> > There is no postscript command that does that. At least not that I
know
> > of. But I would be REALLY surprised if Acrobat Distiller didn't
honour
> > the Document Structure Convention (DSC). So you could add a
postscript
> > comment to the file, like so:
> >
> > %%PageOrientation: Landscape
>
> <</Orientation 1>> setpagedevice

Oh? I did say "that i know of" ... I'm still back in Level 1 postscript
it seems. I happen to need it right now. I'm trying to implement
landscape printing in a little project of mine. I checked the red book
and came up with the following:

%PageDims, sets PW and PH from the physical pages dimensions
/PageDims { %def
land? { %if
<< %setpagedevice
/Orientation 1
>> setpagedevice
} if
currentpagedevice begin
PageSize
end
aload pop
/PH exch def %physical page height
/PW exch def %physical page width
} bind def

But regardless of whether land? is true or false PH and PW get the same
values. What am I missing here? Should I exchange the width and hight
in the PageSize array myself? Can I?

Of course I could just rotate and translate, but then GhostView still
shows the page in portrait. Which it does anyway, but I thought maybe
this setpagedevice thingy could help that. I'm again missing something.
DSC fixes the GV problem, but I can't use DSC in this case.

> Distiller ignores the PageOrientation comment. It is almost certainly
> using AutorotatePages to rotate the page until the majority of the
text
> is horizontal.
>

Thanks for this added info. Can setpagedevice defeat it?

Regards,
/Peter Strömberg
--
-= Spam safe(?) e-mail address: pez68 at netscape.net =-

Martin Bailey

unread,
Aug 17, 1999, 3:00:00 AM8/17/99
to
PEZ <pe...@my-deja.com> wrote:
>
>Oh? I did say "that i know of" ... I'm still back in Level 1 postscript
>it seems. I happen to need it right now. I'm trying to implement
>landscape printing in a little project of mine. I checked the red book
>and came up with the following:
>
>%PageDims, sets PW and PH from the physical pages dimensions
>/PageDims { %def
> land? { %if
> << %setpagedevice
> /Orientation 1
> >> setpagedevice
> } if

Orientation doesn't affect whether the page is portrait or landscape,
in the sense of higher than wide or vice versa. It rotates the page on
the paper, so you still end up with a 'portrait' page, but rotated by
90 degrees.

You probably do want to swap the values for width and height instead.

Regards

Martin Bailey

----------------------------------------------------------
Digital Print & Publishing Harlequin Ltd
mar...@harlequin.com http://www.harlequin.com
----------------------------------------------------------
I try to ensure that my views expressed here accord with
my employers, but I am not a spokesman for Harlequin and
the buck stops with me for what I say here
----------------------------------------------------------

0 new messages