Draw Guide

Chapter 1
Introducing Draw

Drawing Vector Graphics in LibreOffice





Copyright

This document is Copyright © 2005–2011 by its contributors as listed below. You may distribute it and/or modify it under the terms of either the GNU General Public License (http://www.gnu.org/licenses/gpl.html), version 3 or later, or the Creative Commons Attribution License (http://creativecommons.org/licenses/by/3.0/), version 3.0 or later.

All trademarks in this guide belong to their legitimate owners.

Contributors

Martin Fox John Cleland Jean Hollis Weber

Feedback

Please direct any comments or suggestions about this document to: documentation@global.libreoffice.org

Acknowledgments

This chapter is based on an original French document written for OpenOffice.org 1.x by Michel Pinquier (translated into English by Alex Thurgood) and previous content revised by Jim Taylor. The chapter was revised for OpenOffice.org 2.0 by Linda Worthington, Daniel Carrera, Jean Hollis Weber, and Agnes Belzunce, and later translated into German by Wolfgang Uhlig. The German revisions were then translated into English and revised for OpenOffice.org 3.3 and LibreOffice 3.3 by Martin Fox. Other contributors included Peter Hillier-Brook, Hazel Russman, Gary Schnabl, and Claire Wood.

Publication date and software version

Published 13 August 2011. Based on LibreOffice 3.3.3.

Note for Mac users

Some keystrokes and menu items are different on a Mac from those used in Windows and Linux. The table below gives some common substitutions for the instructions in this chapter. For a more detailed list, see the application Help.

Windows/Linux

Mac equivalent

Effect

Tools > Options menu selection

LibreOffice > Preferences

Access setup options

Right-click

Control+click

Opens a context menu

Ctrl (Control)

z (Command)

Used with other keys

F5

Shift+z+F5

Opens the Navigator

F11

z+T

Opens the Styles and Formatting window

Contents

Copyright 2

Note for Mac users 2

Introduction 4

The Draw workplace 4

Rulers 5

Status bar 6

Toolbars 7

Standard toolbar 7

Drawing toolbar 7

Line and Filling toolbar 8

Text Formatting toolbar 8

Color bar 8

Choosing a color palette 8

Options toolbar 9

Drawing grid and guides 10

Floating and moving toolbars 10

Customizing toolbars 11

Quick printing 12

Controlling printing 13

Selecting general printing options 13

Printing multiple pages on a single sheet of paper 14

Selecting pages to print 14

Printing a brochure 15

Printing in black and white (on a color printer) 16

Exporting to PDF 17

Quick export to PDF 17

Controlling PDF content and quality 17

Exporting to other formats 17

Exporting Draw documents as web pages 17

E-mailing documents 18



Introduction

Draw is a vector graphics drawing tool, although it can also perform some operations on raster graphics (pixels). Using Draw, you can quickly create a wide variety of graphical images.

Vector graphics store and display a picture as simple geometric elements such as lines, circles, and polygons rather than as a collection of pixels (points on the screen). This permits simpler storage and supports precise scaling of the picture elements.

Draw is fully integrated into the LibreOffice suite, and this simplifies exchanging graphics with all components of the suite. For example, if you create an image in Draw, reusing it in a Writer document is as simple as copying and pasting the image. You can also work with drawings directly from within Writer or Impress, using a subset of the functions and tools from Draw.

Draw’s functionality is extensive, and even though it was not designed to rival high-end graphics applications, it possesses significantly more functionality than the drawing tools that are generally integrated with most office productivity suites.

A few examples of the drawing functions are: layer management, magnetic grid-point system, dimensions and measurement display, connectors for making organization charts, 3D functions that enable small three-dimensional drawings to be created (with texture and lighting effects), drawing and page-style integration, and Bézier curves.

The Draw Guide is not a course book to be worked through from beginning to end. Rather, it is a reference work in which you can browse for guidance on particular topics.

This document describes only the functions associated with Draw. Some concepts, such as file management or the way the LibreOffice environment works, are mentioned only briefly; they are covered in more detail in the Getting Started guide.

The Draw workplace

The main components of the Draw interface are shown in Figure 1.

The large area in the center of the window is where you make the drawings. You can surround the drawing area with toolbars and information areas. The number and position of the visible tools vary with the task in hand and user preferences. Therefore, your setup may look different. For example, many users put the main Drawing toolbar on the left-hand side of the workspacenot at the bottom, as shown here.

You can split drawings in Draw over several pages. Multi-page drawings are used mainly for presentations. The Pages pane, on the left side of the Draw window in Figure 1 gives an overview of the pages that you create. If the Pages pane is not visible on your setup, you can enable it from the View menu (View > Page Pane). To make changes to the page order, just drag and drop one or more pages.

In Draw 3, the maximum size of a drawing page is 300 cm by 300 cm.

Frame1

Figure 2: Rulers show the size of the selected object


Rulers

You should see rulers (bars with numbers) on the upper and left-hand sides of the workspace. If they are not visible, you can enable them by selecting them from the View menu (View > Ruler).

The rulers show the size of a selected object on the page (see the gray double lines, highlighted in Figure 2). When no object is selected, they show the location of the mouse pointer, which helps to position drawing objects more accurately.

Figure 3: Rulers units


You can also use the rulers to manage object handles and guide lines, making it easier to position objects.

The page margins in the drawing area are also represented on the rulers. You can change the margins directly on the rulers by dragging them with the mouse.

To modify the units of measurement of the rulers (which you can define independently), right-click on the desired ruler, as illustrated for the horizontal ruler in Figure 3.

Status bar

The Status bar is located at the bottom of the Draw window and includes several Draw-specific fields, as identified in Figures 4 and 5.

Frame298

Frame9

The Information field shows which action is being carried out, or which object type is selected.

The Position field shows different information, depending on whether objects are currently selected or not:

In the Indicator field, an asterisk (*) is shown whenever any change is made to the document but not yet saved to disk.

If you wish to digitally sign the document, a double-click or right-click in the Signature field brings up the signature box. Note that a document must be saved at least once before it can be signed. After it is signed, an indicator is present in this field.

The Slide field shows the sequence number for the current drawing page, in addition to the total number of pages that you created so far. This is useful when your drawing has a number of pages. If you select an object, the field enclosed by parentheses shows the layer in which the object resides within the drawing. In the example of Figure 5, the object is on the Layout layer of Slide 1, and there is a total number of one slide, so far.

The Page style field shows which template is being used.

The vertical bar in the middle of the Zoom slider represents a zoom factor of 100%. To change the view magnification, drag the Zoom slider, or click on the + and – signs, or right-click on the zoom level percent to pop up a list of magnification values from which to choose. Double-clicking on the zoom level percent to open the Zoom & View Layout dialog.

Toolbars

You can display or hide the various Draw toolbars, according to your needs. To display or hide a toolbar, click View > Toolbars. On the menu that appears, choose which toolbars you want to display.

You can also select the icons that you wish to appear on the toolbars. To change the visible icons on any toolbar, click the arrow at the right-hand end of that toolbar and choose Visible Buttons from the drop-down menu. Visible icons are indicated by an outline around the icon. Click on icons to hide or show them on the toolbar.

Frame7

The tools available in the various toolbars are explained in the following sections.

Standard toolbar

The Standard toolbar is the same for all LibreOffice components and is not described in detail here.

Frame11

Drawing toolbar

The Drawing toolbar is the most important toolbar in Draw. It contains all the necessary functions for drawing various geometric and freehand shapes and for organizing them on the page. It is described in detail in Chapter 2, Drawing Basic Shapes.

Frame4

Line and Filling toolbar

The Line and Filling toolbar lets you modify the main properties of a drawing object: the icons and pull-down lists vary, according to the type of object selected. For example, to change the thickness of a line with the spinner, hover the mouse over the spinner and click the up or down arrow to achieve the desired thickness.

Frame12

In the example above, the available functions enable you to change the color, style, and width of the line drawn or the fill color, style, and other properties of an object. The object must first be selected with a mouse click. If the selected object is a text frame, the buttons for line style and fill color are changed to Invisible by default. You can change them to something else if you want.

Text Formatting toolbar

When text is selected, the Line and Filling toolbar changes to the Text Formatting toolbar, which is very similar to the Formatting toolbar in Writer. A more detailed explanation of the buttons on this toolbar can be found in Chapter 4, Changing Object Attributes.

Frame13

Color bar

To display the Color bar, use View > Toolbars > Color Bar. The toolbar then appears at the bottom of the workspace and displays the current color palette.

Frame15

This toolbar lets you rapidly choose the color of the various objects (lines, areas, and 3D effects) in your drawing. The first box in the panel corresponds to transparency (no color).

Choosing a color palette

You can access several specialized color palettes in Draw, as well as change individual colors to your own taste. This is done using the Area dialog, reached by choosing Format > Area, or the pouring can icon on the Line and Filling toolbar (Figure 9).

On the Area dialog, choose the Colors tab (Figure 12).

To load another palette, click on the Load Color List button (circled). The file selector dialog asks you to choose one of the standard LibreOffice palettes (files bearing the file extension *.soc). For example, web.soc is a color palette that is particularly adapted to creating drawings that are going to appear in Web pages. These colors will display correctly on workstations with screens capable of at least 256 colors.

A more detailed description of color palettes and their options can be found in Chapter 8, Tips and Tricks.

.Frame6

Options toolbar

The Options toolbar lets you activate or deactivate various drawing aids. The Options Bar is not one of the toolbars displayed by default. To display it, select View > Toolbars > Options.

Frame16

The options are described in the table below and in greater detail in other chapters of the Draw Guide.

Table 1: Functions on the Options toolbar

Icon

Function

Rotation mode after clicking object

Display (or hide) the grid

Display (or hide) the guides

Display (or hide) guides when moving

Snap to grid

Snap to guides

Snap to page margins

Snap to object borders

Snap to object points

Allow quick editing

Select text area only

Double-click to edit text

Simple handles

Large handles

Modify object with attributes

Exit all groups

Drawing grid and guides

Draw offers a grid as a drawing aid. The grid can be turned on or off by clicking on the Grid icon on the Options toolbar. The points of the grid displayed on the screen are not shown on the printed drawing. The color, spacing, and resolution of the grid points can be individually chosen for each axis. This is described in more detail in Chapter 8, Tips and Tricks, in the section titled “Configuring the grid”.

Guides are special “helper lines” that can be turned on or off by clicking on the Guides icon on the Options toolbar. Draw offers a “Snap” function, with which you can place drawings exactly on these guides or on a grid point, a page margin, or a border or point of another object. All snap functions are described in detail in Chapter 8, Tips and Tricks.

Showing the position of the object while moving it makes positioning the object much easier. If the Guides function is activated, pairs of vertical and horizontal lines enclosing the object are shown while moving the object. These lines extend to the edges of the drawing area. This function is also described in detail in Chapter 8.

Floating and moving toolbars

Many toolbar icons are marked with a small arrow. The arrow indicates that this icon has additional tools. Click the arrow to display the full set of tools (see Figure 14). You can “tear off” this tool set so it becomes a floating toolbar. Click the area at the bottom of the toolset, drag it across the screen to a location you want, and then release the mouse button.

To dock a floating toolbar to the top or side of the Draw workspace, Ctrl+click on the title of the toolbar. To float a docked toolbar, click on its handle and drag it off the side of the workspace (see Figure 15). The floating-toolbar capability is common to all components of LibreOffice.

Frame2

Note

When a toolset is made into a floating toolbar, the icon on the existing toolbar remains in the toolbar and always shows the last command you used. This means that the icon you see on your screen may differ from the icon shown in this Guide.

Frame10

Tip

When you double-click on an icon on a floating toolbar, the command corresponding to that icon will run. You can then repeat this action as often as you like. To exit from this mode, press the Esc key or click on another icon (for example ). This may not work for every icon on every toolbar.

Customizing toolbars

You can customize toolbars in several ways. To show or hide icons defined for a toolbar, see Figure 6 on page 7.

To add functions to a toolbar, move tools between toolbars, or create new toolbars., choose View > Toolbars > Customize, select the Toolbars tab (Figure 16) and the toolbar you want to change, and then select the desired buttons for that toolbar.

Frame5

Each toolbar has a different list of functions. For details, see Chapter 14, Customizing LibreOffice, in the Getting Started guide. That chapter also describes how to customize menus.

Quick printing

Click the Print File Directly icon to send the entire document to the default printer defined for your computer.

Note

You can change the action of the Print File Directly icon to send the document to the printer defined for the document instead of the default printer for the computer. Go to Tools > Options > Load/Save > General and select the Load printer settings with the document option.

Controlling printing

For more control over printing, use the Print dialog (File > Print or Ctrl+P).

Note

The options selected on the Print dialog apply to this printing of this document only.

To specify default printing settings for LibreOffice, go to Tools > Options > LibreOffice – Print and Tools > Options > LibreOffice Draw – Print.

Frame17

The Print dialog has four tabs, from which you can choose a range of options, as described in the following sections.

Selecting general printing options

On the General tab of the Print dialog, you can choose:

Select the Properties button to display a dialog where you can choose portrait or landscape orientation, which paper tray to use, and the paper size to print on.

On the Options tab of the Print dialog (Figure 18) you can set a number of other, lesser used, options for printing.

Frame19

Printing multiple pages on a single sheet of paper

You can print multiple pages of a document on one sheet of paper. To do this:

  1. In the Print dialog, select the Page Layout tab.

  2. In the Layout section, select from the drop-down list the number of pages to print per sheet. The preview panel on the left of the Print dialog shows how the printed document will look.

When printing more than two pages per sheet, you can choose the order in which they are printing across and down the paper. The two pictures below show the difference.

  1. In the Page sides section, select whether to print all pages or only some pages.

  2. Click the Print button.

Selecting pages to print

In addition to printing a full document, you can choose to print individual pages, ranges of pages, or a selection of a document.

To print an individual page:

  1. Choose File > Print from the menu bar.

  2. Select the page to print.

    1. In the Ranges and copies section of the Print dialog, select the Pages option.

    2. Enter the number of the page to print.

  3. Click the Print button.

To print a range of pages:

  1. Choose File > Print from the menu bar.

  2. Select the pages to print.

    1. In the Ranges and copies section of the Print dialog, select the Pages option.

    2. Enter the number of the pages to print (for example 1-4 or 1,3,7,11), or any combination of the two, for example: 1-4,5-9,10.

  3. Click the Print button.

To print a selection of a page, or a selection from multiple pages:

  1. In the document, select the section of the page to print.

  2. Choose File > Print from the menu bar.

  3. Choose the Selection option in the Ranges and copies section of the Print dialog.

  4. Click the Print button.

Printing a brochure

In Writer, Impress, and Draw, you can print a document with two pages on each side of a sheet of paper, arranged so that when the printed pages are folded in half, the pages are in the correct order to form a booklet or brochure.

Tip

Plan your document so it will look good when printed half size; choose appropriate margins, font sizes, and so on. You may need to experiment.

To print a brochure on a single-sided printer:

  1. Choose File > Print.

  2. In the Print dialog, click Properties.

  3. Check the printer is set to the same orientation (portrait or landscape) as specified in the page setup for your document. Usually the orientation does not matter, but it does for brochures. Click OK to return to the Print dialog.

  4. Select the Page layout tab in the Print dialog (see Figure 19).

  5. Select the Brochure option.

  6. In the Page sides section, select Back sides / left pages option from the Include drop-down list.

  7. Click the Print button.

  8. Take the printed pages out of the printer, turn the pages over, and put them back into the printer in the correct orientation to print on the blank side. You may need to experiment a bit to find out what the correct arrangement is for your printer.

  9. On the Print dialog, in the Page sides section, select Front sides / right pages option from the Include drop down box.

  10. Click the Print button.

Frame14

Tip

If your printer can print double-sided automatically, choose All pages.

Printing in black and white (on a color printer)

You may wish to print documents in black and white on a color printer. Several choices are available. Please note that some color printers may print in color regardless of the settings you choose.

To change the printer settings to print in black and white or grayscale:

  1. Choose File > Print to open the Print dialog.

  2. Click Properties to open the Properties dialog for the printer. The available choices vary from one printer to another, but you should find options for the Color settings. See your printer’s help or user manual for more information.

  3. The choices for color might include black and white or grayscale. Choose the required setting.

  4. Click OK to confirm your choice and return to the Print dialog,

  5. Click the Print button to print the document.

Tip

Grayscale is best if you have any graphics in the document.

To change the LibreOffice settings to print all color text and graphics as grayscale:

  1. Choose Tools > Options > LibreOffice > Print.

  2. Select the Convert colors to grayscale option. Click OK to save the change.

  3. Open the Print dialog (File > Print).

  4. Click the Print button to print the document.

To change the Draw settings to print all color text as black, and all graphics as grayscale:

  1. Choose Tools > Options > LibreOffice Draw > Print.

  2. Under Contents, select the Print text in black option. Click OK to save the change.

  3. Open the Print dialog (File > Print).

  4. Click the Print button to print the document.

Exporting to PDF

LibreOffice can export documents to PDF (Portable Document Format). This industry-standard file format is ideal for sending the file to someone else to view using Adobe Reader or other PDF viewers.

The process and dialogs are the same for Writer, Calc, Impress, and Draw, with a few minor differences mentioned in this section.

Quick export to PDF

Click the Export Directly as PDF icon to export the entire document using your default PDF settings. You are asked to enter the file name and location for the PDF file, but you do not get a chance to choose a page range, the image compression, or other options.

Controlling PDF content and quality

For more control over the content and quality of the resulting PDF, use File > Export as PDF. The PDF Options dialog opens. This dialog has five pages (General, Initial View, User Interface, Links, and Security). Select the appropriate settings, and then click Export. In the following dialog, enter the location and file name of the PDF to be created, and click Save to export the file. See Chapter 10, Printing, Exporting, Emailing, in the Getting Started book for details.

Exporting to other formats

LibreOffice uses the term “export” for some file operations involving a change of file type. If you cannot find what you want under File > Save As, look under File > Export as well.

LibreOffice can export files to XHTML. In addition, Draw can export to Adobe Flash (.swf) and a range of image formats.

To export to one of these formats, choose File > Export. On the Export dialog, specify a file name for the exported document, then select the required format in the File format list and click the Export button.

See Chapter 6, Editing Pictures, in this book for more about exporting graphics.

Note

The content of the exported file will depend on the element(s) selected on the page. No selection results in the entire image being exported. For most export formats only the image on the current page will be exported.

Exporting Draw documents as web pages

To export a multi-page Draw document to a series of web pages, choose File > Export and select HTML Document as the file type. The HTML Export wizard opens. Follow the prompts to creat the web pages. If you wish, the wizard can generate a navigation aid to help in moving from page to page.

E-mailing documents

LibreOffice provides several ways to send documents quickly and easily as an e-mail ttachment in one of three formats: OpenDocument (LibreOffice’s default format), Microsoft Office formats, or PDF.

Note

Documents can only be sent from the LibreOffice menu if a mail profile has been set up.

To send the current document in OpenDocument format:

  1. Choose File > Send > Document as E-mail. LibreOffice opens your default e-mail program. The document is attached.

  2. In your e-mail program, enter the recipient, subject, and any text you want to add, then send the e-mail.

If you choose E-mail as PDF, LibreOffice first creates a PDF using your default PDF settings (as when using the Export Directly as PDF toolbar button) and then opens your email program with the PDF file attached.

You can email a document to several recipients. For details, see Chapter 10, Printing, Exporting, Emailing, in the Getting Started book.