Skip to main content
Known Participant
July 21, 2008
Question

Bounding Box

  • July 21, 2008
  • 4 replies
  • 896 views
Hello!

I am trying to set the page size in a PostScript Document and it doesn't seem to work.
I found something that sets up this with :
%%BoundingBox: 0 0 5 5

but when i generate a PDF it doesn't seem to work.

Can anybody help me with this?
This topic has been closed for replies.

4 replies

Known Participant
July 21, 2008
Thanks a lot.

David
Known Participant
July 21, 2008
Yes, exactly.
Could that be the problem?

David
Participating Frequently
July 21, 2008
>Yes, exactly.

Ok...

>Could that be the problem?

The problem is that %%BoundingBox is a comment. It is usually ignored,
though if you create a completly DSC compliant EPS file it should not
be.

To set page size you would use the setpagedevice operator with the
PageSize key.

<< /PageSize [ width height ] >> setpagedevice

Aandi Inston
Known Participant
July 21, 2008
I just want to set the page size.

David
Participating Frequently
July 21, 2008
>I just want to set the page size.

For what? What is the PDF consumer? Is it Acrobat Distiller?

Aandi Inston
Participating Frequently
July 21, 2008
Sorry, what is the POSTSCRIPT consumer?

Aandi Inston
Participating Frequently
July 21, 2008
That bounding box is valid, but extremely small.
The bounding box is not usually the same as the page size, and is
usually ignored in a print stream.

What is the exact problem you are trying to solve?

Aandi Inston