Skip to main content
Participating Frequently
July 17, 2013
Answered

EndPage In Pagedevice

  • July 17, 2013
  • 2 replies
  • 2230 views

Hi all,

i tried to redefine /EndPage procedue in Currentpagedevice as follows.

<<

/EndPage

{

%Calling another procedure "Myproc"

Myproc

}

>> setpagedevice

Is this correct way of doing this stuff?

Regards,

S.Sudhagar

This topic has been closed for replies.
Correct answer Test Screen Name

Looks OK so far. Myproc must consume the arguments passed to EndPage.

2 replies

Inspiring
July 17, 2013

There are rules set by Adobe when you are using  /EndPage  and /BeginPage 

You mus create both of them otherwise an error will occure!

There are values placed on the stack when you call/create these procedures and the application (your code)  must consume them!

There are limitation on what you can do in these procedures and better you read the RedBook -

For example

in /EndPage

The procedure must return a boolean value (true or false)  which specifying whether to print the page or not !!

the PS Engine expect to find that logical vlaues at the end - if there is no logical value as error will be generated !

Dr.  Adam

Participating Frequently
July 17, 2013

Thanks Adam.

Both the procedure are alreday created in printer, I need to redefine the /EndPage alone. I hope in this is case it will not lead to any issues. Kindly advice

Regards,

S.Sudhagar

Inspiring
July 17, 2013

logically your structure is OK

just leave at the end of  Myproc    true or false  ifyou want the page to be printed or not

If you still see an error better let me know it?


Test Screen NameCorrect answer
Legend
July 17, 2013

Looks OK so far. Myproc must consume the arguments passed to EndPage.