File format · .svm

SVM File (StarView Metafile) Format Explained and Repair Guide

The SVM (StarView Metafile) format: how StarOffice, OpenOffice and LibreOffice use it, why .svm files fail, and how their graphics are recovered.


A StarView Metafile, almost always encountered with the .svm extension, is the vector graphics metafile format that originated with StarDivision's StarOffice suite and survives today inside its descendants, Apache OpenOffice and LibreOffice. Unlike a bitmap, which stores a grid of pixels, an SVM file stores a recorded sequence of drawing commands: move here, stroke this polyline, fill this polygon, draw this text in this font, place this bitmap. That design makes the format compact, resolution independent, and, usefully for recovery purposes, partially salvageable when damage strikes.

What the Format Is and Which Software Uses It

StarView was the cross-platform C++ application framework StarDivision built in the 1990s to develop StarOffice for Windows, OS/2 and several Unix desktops from a single code base. The graphics layer that carried the StarView name forward inside the office suite became known as VCL, the Visual Class Library, and the metafile format it reads and writes kept the StarView Metafile name. Sun Microsystems acquired StarDivision in 1999 and released the source code behind OpenOffice.org in 2000; the LibreOffice fork followed in 2010 and the Apache OpenOffice project took over the original code base shortly afterwards. All of these suites, and tools built on top of them, can read and write SVM data, and the office suites list an import and export filter for it under the name SVM, StarView Metafile.

In practice, SVM files turn up in several places:

  • As standalone .svm graphics exchanged between users of the StarOffice family.
  • Inside legacy StarOffice binary documents, where embedded vector graphics were stored as SVM streams within the suite's compound container.
  • Inside OpenDocument Format packages, where SVM data can still appear, for example as replacement or preview graphics associated with embedded objects.
  • Internally and invisibly, as the office suite's own representation for the clipboard, drag and drop, and undo snapshots of vector graphics.

Support outside the StarOffice family is limited. Very few third-party graphics tools open SVM directly, which is why a damaged file rarely has an easy escape route into another application.

Structure and Key Technical Facts

An SVM file is a flat binary stream rather than a compound document. Its key characteristics:

  • Signature: the file begins with the ASCII string VCLMTF (hex bytes 56 43 4C 4D 54 46), identifying it as a VCL metafile.
  • Header: after the signature comes a short header carrying size and version information, which tells the reader which revision of the format the action records follow.
  • Action records: the remainder of the file is a sequential list of drawing actions. Each record identifies its action type and then carries that action's parameters: coordinates, colors, line styles, font descriptions, text strings, bitmap data, gradient definitions, clipping regions and transparency settings. The action vocabulary covers strokes, polygons and multi-part polygon groups, text in various layouts, raster images, gradients, clipping, transparency effects, and comment records used to carry extension data.
  • Text and images: text actions embed the string itself along with font name, size, color and position, and bitmap actions embed the raster data, so both survive inside the file independently of the rest of the drawing.

There is no formal published specification for SVM and, to our knowledge, no IANA-registered MIME type. The de facto reference is the drawing layer source code of LibreOffice and Apache OpenOffice, and the projects' developer documentation is authoritative on the details. Conceptually, SVM sits in the same family as Windows Metafile (WMF), Enhanced Metafile (EMF), PICT on the Mac, and CGM: recorded graphics command streams. SVG plays the modern, XML-based counterpart role, and the office suites can convert SVM content to SVG, PNG, PDF and other formats when the file is intact.

Why SVM Files Become Corrupt or Unreadable

Because SVM is a sequential command stream with a strict header, several distinct failure modes appear in practice:

  • Truncated writes: a crash, power loss or forced quit while a document or graphic was being saved leaves the stream cut off mid-record, so the reader hits an incomplete action and stops.
  • Container damage: many SVM streams live inside a ZIP-based ODF package or an older StarOffice compound file. If the container's index or compressed streams are damaged, the SVM data inside may be unreachable or decompress into garbage.
  • Header damage: if the VCLMTF signature or the version fields are overwritten, even a perfectly healthy body of drawing commands will be rejected outright.
  • Bit-level corruption: failing drives, bad sectors, faulty transfers or an FTP copy made in text mode can flip or drop bytes anywhere in the stream, breaking individual action records.
  • Version skew: a file written by a newer suite version can contain action types an older version has never heard of, which typically renders as a partial or blank graphic rather than an error message.
  • Encoding damage in legacy documents: older XML-based StarOffice formats embedded some graphics as encoded streams, and a single mangled character in that encoding corrupts the decoded SVM.

What Data Can Be Recovered

The command-stream design is a genuine advantage here. A reader does not need the whole file to make sense of the beginning of it, so recovery typically yields:

  • All geometry, fills, colors and line styles from every action before the first structural break, and often actions after it as well, since a repair tool can resynchronise on the next plausible record boundary.
  • Complete text runs with their fonts, sizes, colors and positions, extracted directly from the text actions.
  • Embedded bitmaps, which can be carved out of their action records even when the surrounding drawing commands are lost.
  • Gradient and transparency definitions and the clipping structure, wherever their records remain intact.

In many cases the practical outcome is a re-rendered graphic that is visually complete or missing only the elements whose records were destroyed.

How SVM Recovery Works

Our approach to a damaged StarView Metafile follows the structure of the format itself:

  1. Repair the container first. If the SVM stream sits inside a damaged ODF package or StarOffice compound file, we rebuild the container's index and extract the raw stream before touching the metafile.
  2. Validate and repair the header. We confirm or restore the signature and version fields so the parser will accept the file and interpret the records under the correct revision.
  3. Walk the action stream. We parse record by record, logging the offset and type of each action, and quarantine any record that fails to parse rather than aborting the walk.
  4. Salvage and resynchronise. Valid actions before the damage are kept as-is; after a break we scan forward for the next coherent record so that later, independent drawing commands are not lost with the damaged region.
  5. Rebuild and re-render. The salvaged action list is written back as a clean, well-formed metafile and rendered to confirm fidelity, then exported to whatever destination is most useful: a fresh SVM, SVG for editing, PDF for archival, or PNG at the required resolution.
  6. Report the outcome. We document which actions were recovered, which were lost, and what the re-rendered graphic contains, so you can judge the result before committing to it.

Frequently Asked Questions

What does SVM stand for?

SVM stands for StarView Metafile, named after the StarView application framework StarDivision used to build StarOffice. The file signature, VCLMTF, reflects the Visual Class Library that implemented the format inside the suite.

Which programs can open an SVM file?

Apache OpenOffice, LibreOffice and older StarOffice releases handle SVM natively through their graphics filters. Support in third-party tools is rare, so conversion through one of the office suites, or through a repair process like ours, is usually the practical route.

Is the SVM format obsolete?

As a document-facing format, largely yes: modern OpenDocument workflows favour SVG and standard raster images. SVM remains alive internally, however, as the office suites' own metafile representation for the clipboard, undo and vector graphics interchange, and it is still embedded in many legacy documents.

Can a corrupt SVM file be converted to SVG or PNG?

Only after it is repaired. Conversion filters expect a well-formed stream, so the damage must be fixed or the salvageable actions extracted first; after that, export to SVG, PNG, PDF or a clean SVM is straightforward.

Why does my document show a blank or partially drawn graphic?

That is the classic symptom of a truncated stream or an unreadable action record: the renderer draws everything it can parse and silently stops at the break. A blank graphic usually points to header damage or an unreachable stream inside a damaged container.

If a StarView Metafile that matters has stopped opening, renders partially, or is trapped inside a document that will not load, send it to our team for a free evaluation. We will examine the file, tell you what can realistically be recovered, and show you the re-rendered result before you decide anything further.

Send us your .svm file for a free evaluation

Our recovery engineers will tell you exactly what can be recovered — at no cost. There is no charge if we cannot recover your data.

Start a free evaluation