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

Distiller to landscape orientation

436 views
Skip to first unread message

Neal Ryan

unread,
Feb 22, 1996, 3:00:00 AM2/22/96
to
I need to use distiller and output landscape orientation
pages. When we do the obvious we get portrait pages with
the text rotated so it prints just fine but you sort of
have to rotate your head to read it from the screen.

I can use Acrobat Exchange to rotate all the pages and
then everthing is great but that isn't an option for the
automated system I need to set up.

Hopefully, there is some parameter I can tweak in distiller
to do this final page rotation but I can't find it and
Adobe help wasn't telling me.

Any clues?

DImagin

unread,
Feb 27, 1996, 3:00:00 AM2/27/96
to
Try looking at your printer driver. On the Mac, we use the PSPrinter, and
this allows you to chose both landscape orientation and to rotate the page
(its an option under page setup). This last feature is necessary if you
ever want to replace pages in a document with hyperlinks and rotated
pages. You will find that the link locations can't be rotated
independently of the text.

Good luck,

Bruce

John Gianni

unread,
Feb 29, 1996, 3:00:00 AM2/29/96
to
I have the same problem -- the fact that the Adobe Acrobat Distiller
(on Mac/Unix/Pc) cannot print landscaped documents makes electronic
viewing of landsacpe distilled files virtually useless.

I have never been able to get around it (except by the method you
mentioned, but, if everyone is to use Exchange, then we don't need
Distiller (see why I said it turns out to be virtually useless)).

We've wasted thousands of dollars on useless Distiller Mac/Unix/Pc
licensees in our company.

John Gianni
Cadence Design Systems Inc.

John Gianni

unread,
Feb 29, 1996, 3:00:00 AM2/29/96
to
From: p...@chekov.bristol.st.com (Peter Howe)
Newsgroups: comp.text.pdf
Subject: Re: Distiller landscape vs portrait mode?
Date: 12 Jan 1996 13:24:22 GMT
Organization: SGS-THOMSON Microelectronics, Bristol, UK
Sender: pjh@chekov (Peter Howe)

I had the same problem. The solution was to hand edit the source PostScript
file to unrotate the image and to adjust the coordinates to bring the image
back into the viewable area. From memory I believe the source PostScript
had the following lines close to the start of the file:

90 rotate
0.5 inch -10.5 inch translate

I deleted the line "90 rotate" and edited the translate line to become:
0.5 inch 0.5 inch translate

The problem then was that the paper size produced by Distiller was the
wrong orientation. In my case I used a batch file to create a single pdf
from multiple .ps files (as documented by Adobe). It contained the following
line after the initial batch file comment lines:

<</PageSize [1008 792]>> setpagedevice

This forced Distiller to produce an A3 landscape page.

As you can probably guess there is plenty of scope for experimentation...

-- Peter Howe

SGS-THOMSON Microelectronics, Bristol, UK

John Gianni

unread,
Feb 29, 1996, 3:00:00 AM2/29/96
to
From: l...@waikato.ac.nz (Lawrence D'Oliveiro)
Newsgroups: comp.text.pdf,comp.lang.postscript

Subject: Re: Distiller landscape vs portrait mode?
Date: Wed, 31 Jan 1996 17:14:04 +1300
Organization: University of Waikato

This must be some kind of bug in Distiller. My own Tumbler utility
<ftp://sumex-aim.stanford.edu/info-mac/gst/grf/tumbler-06d2.hqx> produces
PDF versions of landscaped pages just fine.


John Gianni

unread,
Feb 29, 1996, 3:00:00 AM2/29/96
to
Neal Ryan (nr...@ksads.wpic.pitt.edu) wrote:
: I need to use distiller and output landscape orientation pages.
: I can use Acrobat Exchange to rotate all the pages...
:--------------------------------------------------------------------------
Aandi Inston (10012...@compuserve.com) wrote:
-Date: Tue, 09 Jan 1996 03:50:49 GMT
-
-Correct, only Exchange can rotate pages. If you have exchange, you can
-fix rotated pages, and save the document before redistributing.
-
- ...if the application supports custom page sizes via
-a driver (e.g. for a linotronic). [You may try to] define the pages as
-portrait (so they aren't rotated), but wider than they are tall.
-
-Still, no marks to Adobe for not adding a simple option to Distiller
-to sort this out. I get the impression that the Distiller people
-refuse to budge and put everything down to incorrect PostScript. True
-or not, not everyone wants to become a PostScript expert.
---------------------------------------------------------------------------

John Gianni

unread,
Feb 29, 1996, 3:00:00 AM2/29/96
to
Newsgroups: comp.text.pdf
From: h...@cix.compulink.co.uk ("Robert Schifreen")

Subject: Re: Distiller landscape vs portrait mode?
Organization: Compulink Information eXchange
Date: Thu, 11 Jan 1996 15:44:41 GMT
X-News-Software: Ameol32

Try editing the PDF file. Look for a record that starts with:

/Type /Page

and add a line, somewhere in that record, that says:

/Rotate 90


This will rotate the page to which the record applies, by 90 degrees
clockwise.

Unfortunately, adding characters to a PDF file will mess up the pointers
and checksums, but you may find that Exchange will automatically fix
things when you view the file.

R.

John Gianni

unread,
Feb 29, 1996, 3:00:00 AM2/29/96
to
Date: Sat, 13 Jan 1996 17:14:19 -0500
From: ri...@sg25.aud.temple.edu (Ernest Rojem)
To: jjg (John Gianni)

Subject: Re: Distiller landscape vs portrait mode?
Newsgroups: comp.text.pdf,comp.lang.postscript

We have the same problem with the electronic distribution of our landscape
reports. PDF supports a /Rotate command with an integer (a multiple of 90)
as an argument. It is possible to distill a PS file and then insert the
/Rotate command after your /MediaBox.

3 0 obj
<<
/Type /Page
/Parent 4 0 R
/MediaBox[0 0 612 792 ]
/Rotate 90
>>
endobj

PDF files contain page objects, and here is the problem. The PDF is read
bottom up. At the bottom of the file is a cross-reference table, which
contains the byte offset of each object in the file. Adding the /Rotate 90
command causes the byte offset in the reference table pertaining to each
object that comes after the object that was changed, to be off by -11.
There is also a byte offset for the cross-reference table after the trailer,
which will be off by -11.

Adding the /Rotate command without adjusting the byte offsets in the xref
table will cause the file to appear damaged when it is opened by the
reader. The reader however, will still open the file, in a now correctly
rotated, landscape mode.

I am currently working on a program that will adjust the byte offsets to
compensate for this problem, and allow the reader to correctly open the file
with no complaints of it being damaged. Time allowing, I should hopefully
have something ready by the end of this month. I hope this information helps!

Ernest Rojem
Document Specialist
Owens-Corning Fiberglas
(419) 248-8829

Sebastian Rahtz

unread,
Feb 29, 1996, 3:00:00 AM2/29/96
to

bizarre statements.
a) if you dont have distiller, you can only create simplistic PDF
document with no automatic links
b) to get landscape pages from Distiller is easy, tell your
application to put out a PageSize setpagedevice command to the PS
file. if your application cant do it, junk the application
c) why did you keep on buying licenses for multiple machines if it
could do what you wanted?

yrs, a happier acrobat user

sebastian rahtz


Fred Bacon

unread,
Mar 3, 1996, 3:00:00 AM3/3/96
to
In article <DnIqA...@Cadence.COM>, j...@nntp.cadence.com (John Gianni) wrote:

> Adding the /Rotate command without adjusting the byte offsets in the xref
> table will cause the file to appear damaged when it is opened by the
> reader. The reader however, will still open the file, in a now correctly
> rotated, landscape mode.
>
> I am currently working on a program that will adjust the byte offsets to
> compensate for this problem, and allow the reader to correctly open the file
> with no complaints of it being damaged.

Oh my God! That is a *hideous* hack. Have you read the documentation for
the PDF file format? The PDF document specs make it possible to change an
attribute of an object in the document without updating all of the byte
offsets.

The correct way to do this is spelled out in Chapter 5 of the
documentation with examples in Appendix A. You just need to mark the old
object in the xref table as being free. Add the correction to the end of
the file, add a new xref subsection with the xref entry of your
correction, and then build a new trailer.

The trailer contains a /Size attribute which lists the number of entries
in the old xref tables plus the number of new entries in your subsection.
Followed by a /Root keyword with the obj reference for the Catalog. You
can copy this from the previous trailer. Then give a /Prev keyword with
the byte offset of the old xref table from the beginning of the document.
This can be obtained from the old startxref listing. Finally, you have to
add a new startxref which gives the byte offset of your new xref from the
beginning of the file.

This is the basic method for making an incremental change to a PDF file.
I hope that it helps.

Fred

===================================================================================
Most people believe they are thinking
when they really rearranging their prejudices.
---Edward R. Murrow
===================================================================================

0 new messages