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 HtmlOptionInfo 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: Note: If you are using HPE KeyView or Java 1.6, you do not have to set up an X Server; however, if you are using a version of HPE 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:

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:

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