Available only with Corda® 7 Enterprise.
Encapsulated PostScript (EPS) is a standard file format for importing and exporting PostScript files. A Corda image in this format is essentially a single page PostScript file that describes the graph or map.
The EPS format is very similar to PDF, and consequently Corda images in EPS format are of the same size as images in PDF. They are of very high quality, but like PDF, have no drilldown or hover capability and can't display transparency.
The main purpose of an EPS file is to be included in other applications or documents. EPS images cannot be viewed from a Web browser and must instead be viewed from a graphics manipulation program, such as Adobe* PhotoShop*. They cannot be embedded in a Web page.
The Corda Server™ EPS capabilities are not applicable for most users.
EPS images cannot be embedded in a Web page—they can only be downloaded and viewed with an external viewer. One common practice is to create a scheduled task to generate an EPS image at regular intervals and then provide a link to it for users to download.
Generate an EPS Corda image by setting the Corda Embedder outputType attribute to "EPS." For example, assuming the Corda Embedder object is named myImage, you use the following command to set the image format to EPS:
myImage.outputType = "EPS";
This creates an EPS Corda image that can be downloaded by itself or can be embedded into other EPS documents. If this is the intent, the getBytes method allows you to access a byte array of the EPS image and even return a EPS image directly from a Java* Servlet.
Another alternative is to save an EPS image for future viewing using either the saveToAppServer or the saveToCordaServer Corda Embedder methods. For example: create a scheduled task to generate an EPS image at regular intervals and then provide a link to it for users to download. If you save the EPS image to the Corda Server, load the image in a different session with the loadFromCordaServer method.
Use the Corda Server Java Library to create EPS images for non-Web applications. To learn how to create a Corda image using Corda Server Java Library, contact the Corda Technologies support team (support@corda.com).
Request that Corda Server generate an image in the EPS format by using the @_EPS server command. For example, the following HTTP request generates an EPS Corda image:
http://<server_address>:2001/?@_FILEexamples/bar.itxml@_EPS
If you attempt to browse to an EPS image—for example, entering the location above in the location bar of a browser—you are prompted to enter a location on the computer to download the file. This is because you cannot view it in a browser. Save it with an .eps extension and then open it in a suitable graphics program.
EPS images cannot be embedded in a Web page. Instead, provide a link to the EPS image that can be viewed separately. The example below shows how you might link to an EPS image:
<a href="http://<server_address>:2001/?@_FILEexamples/bar.itxml@_EPS">
Click here to view the graph in EPS format
</a>
When a viewer clicks on the EPS link, the Web browser downloads an EPS file containing the Corda image.
Accessing an EPS Corda image in any way other than as a file download requires a proprietary system. To do this, you probably want to generate the EPS Corda images using the methods outlined in the previous section.
Corda Server does not embed fonts in its EPS output. Text in the following fonts are referenced in the Corda Server EPS output: Times, Courier, and Helvetica. It is assumed that these fonts are available in most situations.
Text in all other fonts, including fonts that you import with the Corda Font Converter, are drawn manually. In other words, each character is drawn as a vector—from a technical standpoint they aren't characters at all, they're images.
Fonts that Corda Server has to draw may look bad on screen but print well. Fonts that Corda Server references (Times, Courier, and Helvetica), however, look great on screen and in print.
In some publishing processes, the fonts that Corda Server references (Times, Courier, and Helvetica) may be unavailable. If this is the case, have Corda Server draw these fonts as well. If you select this option, these fonts look bad on screen but don't cause problems during publishing processes.
To use this setting, set the image type to EPS_CF, as illustrated below:
myImage.outputType = "EPS_CF";
Or use the @_EPS_CF server command, as illustrated below:
http://<server_address>:2001/?@_FILEexamples/bar.itxml@_EPS_CF