Vector Graphics Output

Sometimes an input document contains vector graphics like charts or diagrams that can be included in the output produced by KeyView. For presentation formats like PowerPoint, the entire slide can be considered as a vector graphic.

You can choose the output format for vector graphics. In most cases, SVG output is likely to give the best results. SVG is a vector graphic format that can be embedded into HTML documents, and provides a clear print-quality image with text that can be selected or searched for in the browser like any other text in an HTML document. In most cases OpenText recommends using SVG output for vector graphics, but if you wish KeyView can convert vector graphics to a raster format such as JPEG or PNG.

NOTE: On Linux and macOS, conversion of vector graphics to raster formats such as JPEG requires a Java Runtime Environment (JRE). You must add the location of your JRE to the PATH environment variable.

KeyView sample programs produce SVG output by default but you can change the default options by editing your initialization file (see Explore Conversion Options with the Sample Programs). For HTML Export, set OutputVectorGraphicType in the [KVHTMLOptionsEx] section. For XML Export, set eOutputVectorGraphicType in the [KVXMLOptions] section.

To choose the output format for vector graphics

  • Call the setOutputVectorGraphicType method on your XmlOptionInfo object. Set the type to one of the options enumerated by XmlGraphicType, for example KVGFX_SVG.