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 the eOutputVectorGraphicType member of the KVXMLOptions structure, and the options are enumerated in KVXMLGraphicType in kvxml.h. KVXMLOptions and KVXMLGraphicType.

To display vector graphics in presentation, word processing, and spreadsheet files on UNIX and Linux, Export converts 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:

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. Set OutputVectorGraphicType to KVGFX_JPEG in the defunix.ini template file or directly in the API.

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

NOTE:

kvvector.jar must reside in the output directory.


_HP_HTML5_bannerTitle.htm