Wolfram Language & System 10.3 (2015)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

EPS (.eps, .epsf)

  • Import and Export generally create PostScript level 2 files, and include certain level 3 features if appropriate.


    MIME types: application/postscript, application/eps, application/x-eps, image/eps, image/x-eps
    EPS page description language and file format.
    Commonly used in 2D vector graphics and page layout applications.
    Self-contained PostScript fragment, suitable for inclusion in other documents.
    EPS is an acronym derived from Encapsulated PostScript.
    Plain text format.
    Stores text and vector graphics using the PostScript language.
    Can include fonts and embedded raster graphics.
    Supports various color encodings, including monochrome, grayscale, RGB, and CMYK.
    Precursor to PDF.
    PostScript was introduced in 1984 by Adobe.

Import and ExportImport and Export

  • Import["file.eps"] imports an EPS file, returning its content as graphics.
  • Export["file.eps",expr] exports an arbitrary text string, vector graphics, Notebook, or Cell expression to EPS.
  • Wolfram System fonts and other nonstandard fonts are by default embedded in the exported file if necessary.
  • Import["file.eps"] converts an EPS file to Wolfram Language vector graphics.
  • Import["file.eps","Plaintext"] gives a plain text version of an EPS file.
  • Export["file.eps",expr,elem] creates an EPS file by treating expr as specifying element elem.
  • The export format can be explicitly specified with the command Export["file",expr,"EPS"].
  • Import["file.eps",elem] imports the specified element from an EPS file.
  • Import["file.eps",{elem,suba,subb,}] imports a subelement.
  • Import["file.eps",{{elem1,elem2,}}] imports multiple elements.
  • The import format can be specified with Import["file","EPS"] or Import["file",{"EPS",elem,}].
  • Export["file.eps",expr, elem] creates an EPS file by treating expr as specifying element elem.
  • Export["file.eps",{expr1,expr2,},{{elem1,elem2,}}] treats each as specifying the corresponding .
  • Export["file.eps",expr,opt1->val1,] exports expr with the specified option elements taken to have the specified values.
  • Export["file.eps",{elem1->expr1,elem2->expr2,},"Rules"] uses rules to specify the elements to be exported.
  • See the reference pages for full general information on Export.
  • ExportString supports the EPS format.

Notebook InterfaceNotebook Interface

  • In the notebook front end, Save As exports the active notebook as an EPS file.
  • Save Selection As exports the selected part of a notebook to EPS.


  • Data representation elements:
  • "Graphics"arbitrary 2D graphics
    "Plaintext"textual content given as a string
    "Image"raster image
    "Preview"embedded preview image
  • Import and Export use the element by default.


  • General options:
  • BackgroundAutomaticbackground color shown in transparent image regions
    ImageSizeAutomaticoverall image size
    ImageResolution72image resolution for rasterization in dpi
  • Advanced Export options:
  • "AllowRasterization"Automaticwhether to rasterize 2D and 3D graphics
    "EmbeddedFonts"Truewhether to include nonstandard fonts
    "PreviewFormat"Noneformat of the image preview to be included
  • Possible settings for are:
  • None no embedded preview
    "Interchange" device-independent preview (EPSI)
    "Metafile" Windows metafile preview (WMF)
    "TIFF" TIFF raster image
  • Possible settings for :
  • Automatic rasterize graphics with features such as transparency that cannot be reproduced faithfully in EPS
    True always rasterize graphics
    False always use vector graphics

ExamplesExamplesopen allclose all

Basic Examples  (7)Basic Examples  (7)

Import an EPS file as vector graphics:

Click for copyable input

Export vector graphics to EPS:

Click for copyable input
Click for copyable input

Export a function plot to EPS:

Click for copyable input
Click for copyable input

When converting output containing characters to EPS, the Wolfram System by default includes all nonstandard fonts in the exported document:

Click for copyable input

This exports a Cell expression to EPS:

Click for copyable input

This converts a Notebook expression to EPS:

Click for copyable input

Create an EPSI file:

Click for copyable input
Introduced in 1999
| Updated in 2010