Squeak
  links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
EPSCanvas
Last updated at 7:07 pm UTC on 30 September 2017
subclass of PostscriptCanvas
I am a canvas for generating Encapsulated PostScript (EPS) files from single morphs, for example for screen-dumps.

I make sure that the bounding box of the EPS surrounds exactly the morph, and am not capable of generating multiple pages. I do not generate an on-screen Preview for the EPS file, though that should be possible.


aMorph asEPS

uses as target a PostscriptEncoder to generate the code

 defaultTarget
	^PostscriptEncoder stream.

Encapsulated PostScript (EPS) is a DSC-conforming (Document structuring conventions) PostScript document with additional restrictions which is intended to be usable as a graphics file format.
...
At minimum, an EPS file contains a BoundingBox DSC comment, describing the rectangle containing the image described by the EPS file. Applications can use this information to lay out the page, even if they are unable to directly render the PostScript inside.
...
Many programs will save or convert text and vector art to EPS format.
...
An EPS file is a stream of generic PostScript printing commands.
https://en.wikipedia.org/wiki/Encapsulated_PostScript

How to use Adobe PostScript language files properly

Postscript tutorial

Postscript does not specifically support Unicode