🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: adobe.postscript.programming
8 messages
8 total messages Started by David_Cristian Mon, 21 Jul 2008 08:04
Bounding Box
#304
Author: David_Cristian
Date: Mon, 21 Jul 2008 08:04
9 lines
940 bytes
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?
Re: Bounding Box
#305
Author: Aandi_Inston
Date: Mon, 21 Jul 2008 08:12
7 lines
886 bytes
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
Re: Bounding Box
#306
Author: David_Cristian
Date: Mon, 21 Jul 2008 10:54
3 lines
638 bytes
I just want to set the page size.

David
Re: Bounding Box
#307
Author: Aandi_Inston
Date: Mon, 21 Jul 2008 10:59
5 lines
858 bytes
>I just want to set the page size.

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

Aandi Inston
Re: Bounding Box
#308
Author: Aandi_Inston
Date: Mon, 21 Jul 2008 10:59
3 lines
858 bytes
Sorry, what is the POSTSCRIPT consumer?

Aandi Inston
Re: Bounding Box
#309
Author: David_Cristian
Date: Mon, 21 Jul 2008 11:06
4 lines
663 bytes
Yes, exactly.
Could that be the problem?

David
Re: Bounding Box
#310
Author: Aandi_Inston
Date: Mon, 21 Jul 2008 11:06
16 lines
1048 bytes
>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
Re: Bounding Box
#311
Author: David_Cristian
Date: Mon, 21 Jul 2008 11:23
3 lines
546 bytes
Thanks a lot.

David
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads