Open topic with navigation

# Display Vector Graphics on UNIX and Linux

Export offers the option of rasterizing vector graphic content from source documents into a variety of graphics formats, including JPEG, PNG, WMF, and CGM. This solution is implemented with Windows Graphical Device Interface (GDI) code, and therefore is not portable to other platforms.

The output format of vector graphics is defined by using the `setOutputVectorGraphicType()` method in the `Xml` `OptionInfo` class, and the options are defined as constants in the Export class.

To display vector graphics in presentation, word processing, and spreadsheet files on UNIX and Linux, Export can convert the files directly to JPEG by using a Java program named `kvraster.class`. This program uses the Java Abstract Windowing Toolkit (AWT). The AWT requires access to an X Server.

NOTE: If you are using KeyView 10.5.0.0 or Java 1.6, you do not have to set up an X Server; however, if you are using a version of KeyView lower than 10.4 with a version of Java lower than 1.6, you must set up an X Server.

To set up an X Server, do one of the following:

- Run a virtual X Server, such as the Xvfb utility. This utility is included in the X11R6 distribution or can be downloaded from the following site:

  http://www.x.org/Downloads.html

  For example, to run the Xvfb utility on a 512 Mb, Solaris 2.8 platform, follow these steps:

  1. Start Xvfb at root:

         /usr/X11R6/bin/Xvfb :1 -screen 0 1152x900x8 &

  1. Set the display environment variable:

         setenv DISPLAY:1.0

- Make an X display available to the Java runtime using the `DISPLAY` environment variable. No windows appear on the display. For example, set the `DISPLAY` environment variable as follows:

      setenv DISPLAY computername:0.0

  or

      setenv DISPLAY ipaddress:0.0

After the X Server is set up, convert the file by following these steps:

1. Add the location of the JRE to the `PATH` environment variable.

2. Use one of the following methods to set the graphic type to JPEG:

   - Use the `setOutputVectorGraphicType` method of the `OptionInfo` class to set the type to `Export.GRAPHIC_TYPE_JPEG`.

   - Set the `OutputVectorGraphicType` parameter of the `defunix.ini` template file to `KVGFX_JPEG`.

3. Convert the document to XML. The graphics in the document are converted to JPEG and stored in the output directory.

© 2006-2018 EntIT Software LLC, a Micro Focus company | Send documentation feedback to Micro Focus Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm