## 5.2.4 Generating Vector Images

If you have a vector imager configured (such as pdf2svg), you can generate a vector version of the requested image. The nice thing about vector versions of images is that they can scale infinitely and not loose resolution.

Generating a vector image is just as easy as generating a bitmap image, you simply access the vectorImage property of the node that you want an image of. This will return an plasTeX.Imagers.Image instance that corresponds to the vector image.

Everything that was described about generating images in the previous section is also true of vector images with the exception of cropping. plasTeX does not attempt to crop vector images. The program that converts the LaTeX output to a vector image is expected to crop the image down to the image content. Depending on the renderer configuration, a bitmap may be generated to determine the proper height, width and depth of the vector image.