Help:Manual Importvectors

From Scribus Wiki
Jump to navigation Jump to search


Table of Contents


Importing Vector Drawings

Supported formats

Here's a short description of the vector formats currently supported by Scribus:

  • AI (Adobe Illustrator): The native format of Illustrator, or, more precisely, formats. Older versions of AI are basically EPS files that contain some additional features only used by Illustrator. As of Illustrator 9, AI is based on PDF, and, like its predecessor, adds some Illustrator-only information. AI import is still experimental but works very well in most cases. One of the major advantages of the AI import filter (and the EPS filter as well) is that Scribus will load spot colors in AI and EPS files correctly. If PDF-based AI files are opened directly (via File > Open), Scribus will also import AI/PDF layers.
  • EPS (Encapsulated PostScript): Probably the most wide-spread graphics format in pre-press and a subset of the PostScript standard. See the section about EPS import for more information.
  • PS (PostScript): A page description language created by Adobe Systems and the foundation of almost all modern print workflows. The PDF format is also derived from PostScript. Since PostScript files can contain more than one page, import may not deliver the expected result.
  • FIG (Xfig): This is the native format of the UNIX drawing veteran Xfig. While rarely used by designers, it's ubiquitous in scientific environments like universities for technical drawings or diagrams. The format is well-documented, and import into Scribus works flawlessly.
  • Scalable Vector Graphics (SVG): An open and widely used standard for two-dimensional vector graphics. See the section about <a href="scribus-svg.html">SVG import</a> for more information.
  • SXD (OpenOffice.org Draw 1) and ODG (OpenDocument Graphics): These are the vector file formats used by OpenOffice.org and other Open Source Office Suites. Since "Office Drawing" is quite different from working with a typical vector drawing program, the formats use a lot of features, like automatic connectors, that aren't well-suited for a print workflow. As a result, import will only work with limited success. See Scribus and OpenOffice.org/OpenDocument for possible workarounds.
  • WMF (Windows Metafile): A vector format used by many Office Suites and also the Windows clipboard. While WMF files are usually rejected by creative professionals, most collections of "Office Clipart" use this format. The WMF filter has been added to enable users to import these simple vector drawings.
  • PICT (Macintosh Picture): The graphics file format used by Mac OS, similar to WMF on Windows. It can contain bitmap or vector data.
  • CVG (Calamus Vector Graphic): A simple vector format used by the DTP veteran Calamus. It only supports grayscale colors.
  • SHAPE (Dia Shapes) and SML (Kivio Shape): Basic vector shapes used by the diagram programs Dia and Kivio. Grayscale/RGB only.

How it works

Importing vector drawings into Scribus is rather different if compared to most other DTP programs, and it's also an exception to the "frame paradigm" used for almost everything else in Scribus.

When you import a vector drawing via File > Import > Get Vector File, the vector data of the original file will be converted into native Scribus vector objects. The major advantage of this approach is that imported vector graphics remain fully editable in Scribus, which is useful even if you don't intend to use Scribus as a vector editor. For example, the conformance to published specifications like EPS or SVG can vary enormously between programs or different versions of the same program. Importing files as native vector objects allows for easy and quick corrections like closing paths etc. It also enables Scribus to easily change or modify the colors of imported vector graphics (see below).

The Scribus approach to vector import comes at a cost, though, and you need to consider carefully whether you are willing to pay this price or rather export your drawing as a bitmap image and import it into an image frame. First, as you will notice when you try to load a complex vector file, importing can take very long, as Scribus may have to create hundreds or even thousands of Scribus vector objects. Moreover, the creation of that amount of objects also results in an Undo/Redo event for each object. You can speed up import a little bit by disabling Undo/Redo before you import a complex drawing. Likewise, scaling or moving a complex drawing means changing the properties of all objects within this drawing, and if you don't have enough memory on your computer, Scribus may even crash.

A similar problem may be the number of colors in your color list. Since Scribus imports the colors of all objects in a drawing (see below), you may end up with a seemingly endless list of colors. Again, you need to decide whether you need the advantages of this approach.

Finally, every drawing that consists of more than one vector object (i.e., almost every drawing) is imported as a group of objects, and text flow around groups doesn't work. This means you have to draw a separate shape around the drawing to let text flow around it.

Editing imported vector drawings

Working with the built-in vector tools is described in Editing Shapes. But as you will notice after importing a vector drawing, the tools are not availabe immediately, the reason being the import of a drawing as a group of vector objects. Thus, you need to ungroup the graphic first. This can be achieved via the "Ungroup" command in the "Item" menu, the Context Menu of the drawing or by using the shortcut Ctrl+Shift+G:


Help vectimp1.png


The more complex an imported drawing, the more likely the necessity to apply "Ungroup" several times, as the drawing will probably consist of many sub-groups.

The drawback of this approach is that it decomposes the whole drawing, even if you only want to edit a small part of it. If you later want to move or resize the whole graphic, you have to regroup all parts again. Fortunately, Scribus comes with a powerful tool that comes to the rescue in this situation, namely the Document Outline (Windows > Outline). This dialog lists all elements in a Scribus document, sorted per page. Here you can select single parts of the imported group, and if you're lucky, the creator of the drawing assigned meaningful names to the respective elements, although not all programs and file formats provide this feature. Scribus will jump to each selected element and indicate the selection by showing the frame border of the item in red:

"Using the Document Outline to select items in grouped objects"


You can now use the Context Menu in the Document Outline to detach the selected item from the rest of the group by using the "Ungroup" command. As described above, you may have to use the command several times, depending on how deeply nested the groups in the drawing are. At the end of the process, you can see the item as a separate entry in the Document Outline:


"The item “path13122” has been detached from the group “svg1061”, an imported SVG file."
The item "path13122" has been detached from the group "svg1061", an imported SVG file."

Solid colors in imported vector drawings

A consequence of the way Scribus imports vector files is that all colors in a drawing will be added the list of available colors. Depending on the complexity of a drawing and the number of imported files, the list can become quite long, and depending on the source format and the used color spaces, the color names may not be very meaningful:

"Imported colors from a vector drawing (SVG)"


This may initially be confusing to some users, but there are ways to make life easier for you. First of all, Scribus does not duplicate colors, i.e., if an imported drawing uses a color whose color values match those of an already existing color, the imported color will be "mapped" to the list of colors. This works even with spot colors. Second, Scribus supports <a href="color1.html">named colors</a>, so if a vector program and the file format can save color names, those will be imported:


"Xfig uses a name for every color, and Scribus will import the named colors."
Xfig uses a name for every color, and Scribus will import the named colors.


If you delete an imported drawing, its colors won't disappear from the color list automatically, as it's difficult to determine whether they have been "mapped" or are being used by other objects. This is not a problem, because after deleting the drawing, you can open the color manager (Edit > Colors) and click "Remove Unused", which will remove all colors that aren't used by any item in your document.

An example for the usefulness of the color import is the "Replace Colors" feature. Imagine you are working with a vector logo that is supposed to appear in different colors in different documents. By using "Replace Colors", you can work with one single source file. Import the logo into your document and replace one or more logo colors just as your specific document requires. And speaking of logos: These are often required to use a spot color. If you created or edited the logo in a program that doesn't support spot colors, you can load the graphic into Scribus and use "Replace Colors" to replace a CMYK or RGB color with a spot color:


"Replacing colors"
This material may be distributed only subject to the terms and conditions set forth in the Open Publication License, v1.0 or later. Distribution of the work or derivative of the work in any standard (paper) book form is prohibited unless prior permission is obtained from the copyright holder. A copy of the license is included in the section entitled "Text of the Open Publication License."