Skip to main content
Known Participant
Jul 21, 2008 7:04 AM UTC
Question

Bounding Box

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 is closed to new replies. Start a new post to keep the conversation going.

7 replies

Known Participant
Jul 21, 2008 10:23 AM UTC
Thanks a lot.

David
Translate
Known Participant
Jul 21, 2008 10:06 AM UTC
Yes, exactly.
Could that be the problem?

David
Translate
Participating Frequently
Jul 21, 2008 10:06 AM UTC
>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
Translate
Known Participant
Jul 21, 2008 9:54 AM UTC
I just want to set the page size.

David
Translate
Participating Frequently
Jul 21, 2008 9:59 AM UTC
>I just want to set the page size.

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

Aandi Inston
Translate
Participating Frequently
Jul 21, 2008 9:59 AM UTC
Sorry, what is the POSTSCRIPT consumer?

Aandi Inston
Translate
Participating Frequently
Jul 21, 2008 7:12 AM UTC
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
Translate