Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.postscript > #1454 > unrolled thread

erasepage

Started byCecil Westerhof <Cecil@decebal.nl>
First post2013-07-16 01:58 +0200
Last post2013-07-16 10:23 +0100
Articles 3 — 3 participants

Back to article view | Back to comp.lang.postscript


Contents

  erasepage Cecil Westerhof <Cecil@decebal.nl> - 2013-07-16 01:58 +0200
    Re: erasepage luser- -droog <mijoryx@yahoo.com> - 2013-07-15 19:53 -0700
    Re: erasepage bugbear <bugbear@trim_papermule.co.uk_trim> - 2013-07-16 10:23 +0100

#1454 — erasepage

FromCecil Westerhof <Cecil@decebal.nl>
Date2013-07-16 01:58 +0200
Subjecterasepage
Message-ID<87vc4bbcke.fsf@Aspire.decebal.nl>
The blue book says:
    – erasepage – paint current page white

But in reality it makes the page transparent. (Which in a way is more
logical.) Is this an error in the documentation, or in ghostscript?

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof

[toc] | [next] | [standalone]


#1456

Fromluser- -droog <mijoryx@yahoo.com>
Date2013-07-15 19:53 -0700
Message-ID<49c8552d-a72b-4086-9b01-2dc3dd1b4932@googlegroups.com>
In reply to#1454
On Monday, July 15, 2013 6:58:25 PM UTC-5, Cecil Westerhof wrote:
> The blue book says:
> 
>     – erasepage – paint current page white
> 
> 
> 
> But in reality it makes the page transparent. (Which in a way is more
> 
> logical.) Is this an error in the documentation, or in ghostscript?
> 

I think that changes with the language level. Postscript (Level) 3
also changes the interpretation of copypage to be the same as showpage.
Try this:

systemdict /.setlanguagelevel known {2 .setlanguagelevel} if

[toc] | [prev] | [next] | [standalone]


#1459

Frombugbear <bugbear@trim_papermule.co.uk_trim>
Date2013-07-16 10:23 +0100
Message-ID<ANSdnW0KbpRojXjMnZ2dnUVZ7qKdnZ2d@brightview.co.uk>
In reply to#1454
Cecil Westerhof wrote:
> The blue book says:
>      – erasepage – paint current page white
>
> But in reality it makes the page transparent. (Which in a way is more
> logical.) Is this an error in the documentation, or in ghostscript?

The blue book is not a spec - it's a tutorial, and a level 1 tutorial at that.
Further, I'm not sure what you mean by transparent, since that's
about the one thing that PostScript (famously) doesn't do.

erasepage – erasepage –
erases the current page by painting it with gray level 1.0 (which is ordinarily white,
but may be some other color if an atypical transfer function has been defined).
The entire page is erased, without reference to the clipping path currently in force.
erasepage affects only the contents of raster memory; it does not modify the
graphics state, nor does it cause a page to be transmitted to the output device.
The showpage operator automatically invokes erasepage after imaging a page.
There are few situations in which a PostScript page description should invoke
erasepage explicitly, since it affects portions of the page outside the current clipping
path. It is usually more appropriate to erase just the area inside the current
clipping path (see clippath). This allows the page description to be embedded
within another, composite page without undesirable effects.
Errors: none
See Also: showpage, fill, clippath

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.postscript


csiph-web