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 OutputVectorGraphicType member in the KVHTMLOptionsEx structure, and the options are enumerated in KVHTMLGraphicType in kvhtml.h. See KVHTMLOptionsEx and KVHTMLGraphicType.

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). Alternatively, rather than rasterizing, Export can output text from vector graphics in SVG format, which works the same as on Windows.

To convert the file

  1. If rasterizing, add the location of the JRE to the PATH environment variable.

  2. Set OutputVectorGraphicType to KVGFX_JPEG (for raster output), or KVGFX_SVG (for text-only vector output) in the defunix.ini template file or directly in the API.

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