LibreOfficeLogo

Getting Started Guide 7.4

Chapter 10,
Working with File Formats, Security, and Exporting

Copyright

This document is Copyright © 2022 by the LibreOffice Documentation Team. Contributors are listed below. You may distribute it and/or modify it under the terms of either the GNU General Public License (https://www.gnu.org/licenses/gpl.html), version 3 or later, or the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/), version 4.0 or later.

All trademarks within this guide belong to their legitimate owners.

Contributors

To this edition

Skip Masonsmith

Kees Kriek

 

To previous editions

Jean Hollis Weber

Steve Fanning

Kees Kriek

Dave Barton

Olivier Hallot

Paul Figueiredo

Winston Min Tjong

Miklos Vajna

Hazel Russman

Ron Faile Jr.

John A Smith

 

Feedback

Please direct any comments or suggestions about this document to the Documentation Team’s forum at https://community.documentfoundation.org/c/documentation/loguides/ (registration is required) or send an email to: loguides@community.documentfoundation.org.

Note

Everything you send to a mailing list, including your email address and any other personal information that is written in the message, is publicly archived and cannot be deleted.

Publication date and software version

Published January 2022. Based on LibreOffice 7.4.
Other versions of LibreOffice may differ in appearance and functionality.

Using LibreOffice on macOS

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

Windows or Linux

macOS equivalent

Effect

Tools > Options
menu selection

LibreOffice > Preferences

Access setup options

Right-click

Control+click or right-click depending on computer setup

Open a context menu

Ctrl (Control)

(Command)

Used with other keys

Alt

(Option) or Alt, depending on keyboard

Used with other keys

F11

+T

Open Styles deck in Sidebar

File formats LibreOffice can open

LibreOffice can open a wide variety of file formats in addition to the OpenDocument formats, including Portable Document Format (PDF).

Opening text documents

In addition to OpenDocument formats (.odt, .ott, .oth, .odm, and .fodt), Writer can open the following text document formats, and a variety of legacy formats not listed below:

Microsoft Word 6.0/95/97/2000/XP/Mac) (.doc and .dot)
Microsoft Word 2003 XML (.xml)
Microsoft Word 2007/2010 XML (.docx, .docm, .dotx, .dotm)

Microsoft WinWord 5 (.doc)

WordPerfect Document (.wpd)

Microsoft Works (.wps)

Lotus WordPro (.lwp)

Abiword Document (.abw, .zabw)

ClarisWorks/Appleworks Document (.cwk)

MacWrite Document (.mw, .mcw)

Rich Text Format (.rtf)

Text CSV (.csv and .txt)

StarWriter formats (.sdw, .sgl, .vor)

DocBook (.xml)

Unified Office Format text (.uot, .uof)

T602 Document (.602, .txt)

Hangul WP 97 (.hwp)

Apple Pages (.pages)

eBook (.pdb)

HTML Document (.htm, .html)

OpenOffice.org 1.x (.sxw, .stw, and .sxg)

... and many others

 

Most of these file types are automatically detected by LibreOffice, so they can be opened without explicitly selecting the document type in the file picker.

When opening .htm or .html files (used for web pages), LibreOffice customizes Writer for working with these files.

Opening spreadsheets

In addition to OpenDocument formats (.ods, .ots, and .fods), Calc can open the following spreadsheet formats:

Microsoft Excel 97/2000/XP (.xls, .xlw, and .xlt)
Microsoft Excel 4.x–5.0/95 (.xls, .xlw, and .xlt)
Microsoft Excel 97-2003 (.xml)
Microsoft Excel 2007-365 (.xlsx, .xlsm, .xltx, .xltm)
Microsoft Excel 2007-2010 binary (.xlsb)
Lotus 1-2-3 (.wk1, .wks, and .123)
Data Interchange Format (.dif)
Rich Text Format (.rtf)
Text CSV (.csv and .txt)
StarCalc (.sdc and .vor)
OpenOffice.org 1.x (.sxc and .stc)
dBASE (.dbf)
SYLK (.slk)
Unified Office Format spreadsheet (.uos, .uof)
HTML Document (.htm and .html files, including Web page queries)
Quattro Pro 6.0 (.wb2)
Apple Numbers 2 (.numbers)
... and many others

Opening presentations

In addition to OpenDocument formats (.odp, .odg, .otp, and .fopd), Impress can open the following presentation formats:

Microsoft PowerPoint 97/2000/XP (.ppt and .pot)
Microsoft PowerPoint 2007-365 (.pptx, .pptm, .potx, .potm)
StarDraw and StarImpress (.sda, .sdd, .sdp, and .vor)
OpenOffice.org 1.x (.sxi and .sti)
Unified Office Format presentation (.uop, .uof)
CGM – Computer Graphics Metafile (.cgm)
Portable Document Format (.pdf)
Apple Keynote 5 (.key)
... and many others

Opening graphic files

In addition to OpenDocument formats (.odg and .otg) and Portable Document Format (.pdf), Draw can open the following graphic formats:

Adobe Photoshop (*.psd)
AutoCAD Interchange Format (*.dxf)
Corel Draw (*.cdr)
Corel Presentation Exchange (*.cmx)
Microsoft Publisher 98-2010 (*.pub)
Microsoft Visio 2000-2013 (*.vdx; *.vsd; *.vsdm; *.vsdx)
WordPerfect Graphics (*.wpg)
OpenOffice.org 1.x (.sxd and .std)

BMP

JPEG, JPG

PCX

RAS

TGA

DXF

MET

PGM

SDA

TIF, TIFF

EMF

PBM

PNG

SDD

WMF

EPS

PCD

PPM

SVG

XBM

GIF

PCT

PSD

SVM

XPM

Opening formula files

In addition to OpenDocument Formula (.odf) files, Math can open the formats used by OpenOffice.org 1.x (.sxm), StarMath (.smf), and MathML (.mml) files.

When opening a Word document that contains an embedded equation editor object, if the option MathType to LibreOffice Math or reverse is checked in Tools > Options > Load/Save > Microsoft Office, the object will be automatically converted to a LibreOffice Math object.

File formats LibreOffice can save to

Saving in an OpenDocument format guarantees the correct rendering of the file when it is transferred to another person or when the file is reopened with a later version of LibreOffice or with another program. It is strongly recommended that you use OpenDocument as the default file formats. However, you can save files in other formats, if you wish.

Tip

When sharing a document that you do not expect the recipient to modify, the preferred option is to convert the document to PDF. LibreOffice provides a straightforward way to convert documents to PDF. See Error: Reference source not found on page 1.

Saving text documents

In addition to OpenDocument formats (.odt, .ott, and .fodt), Writer can save in these formats:

Office Open XML Text (.docx)

Microsoft Word 2007–365 (.docx, .dotx)

Microsoft Word 97–2003 (.doc)

Microsoft Word 2003 XML (.xml)

Rich Text Format (.rtf)

Text (.txt)

Text Encoded (.txt)

Unified Office Format text (.uot, .uof)

HTML Document (.html and .htm)

DocBook (.xml)

Encryption support within the Microsoft Word 97/2000/XP filter allows password protected Microsoft Word documents to be saved.

Note

The .rtf format is a common format for transferring text files between applications, but you are likely to experience loss of formatting and images. For this reason, other formats should be used.

Saving spreadsheet files

In addition to OpenDocument formats (.ods, .ots, and .fods), Calc can save in these formats:

Office Open XML Spreadsheet (.xlsx)

Data Interchange Format (.dif)

Microsoft Excel 2007–365 XML (.xlsx)

dBase (.dbf)

Microsoft Excel 97–2003 (.xls and .xlw)

SYLK (.slk)

Microsoft Excel 97–2003 Template (.xlt)

Text CSV (.csv and .txt)

Microsoft Excel 2003 XML (.xml)

Unified Office Format spreadsheet (.uos)

HTML Document (Calc) (.html and .htm)

 

Saving presentations

In addition to OpenDocument formats (.odp, .otp, .fodp, and .odg), Impress can save in these formats:

Microsoft PowerPoint 2007–365 (.pptx, .potm)
Microsoft PowerPoint 2007–365 AutoPlay (.ppsx)
Microsoft PowerPoint 97–2003 (.ppt)
Microsoft PowerPoint 97–2003 Template (.pot)
Microsoft PowerPoint 97–2003 AutoPlay (.pps)
Office Open XML Presentation (.pptx, .potm, .ppsx)
Unified Office Format presentation (.uop)

Impress can also export to any of the graphics formats listed for Draw.

Saving drawings

Draw can save in the OpenDocument Drawing formats (.odg, .otg, and .fodg).

Draw can export to any of the following graphics formats: BMP, EMF, EPS, GIF, JPEG, PNG, SVG, TIFF, and WMF.

Note

Adobe [Macromedia] Flash (.swf) export has been removed from LibreOffice 7. Flash Player reached end-of-life in December 2020.

Saving Writer/Web documents

Writer/Web can save to these formats:

HTML document (.html and .htm), as HTML 4.0 Transitional
Text and Text Encoded (LibreOffice Writer/Web) (.txt)

Exporting files

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 (not available in Math) for additional types.

Two popular formats that LibreOffice can export to are PDF (Writer, Calc, Impress, and Draw) and EPUB (Writer only).

LibreOffice can also export files to HTML and XHTML. In addition, Draw and Impress can export to 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 desired format in the file format list and click the Export or Save button as appropriate.

Exporting to PDF

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

Warning

A document in PDF format is not protected against contents tampering or editing by default. The PDF document contents can be edited by specialized software tools, including LibreOffice Draw.

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

Tip

Unlike Save As, the Export command writes a copy of the current document in a new file with the chosen format, but keeps the current document and format open in your session.

Quick export to PDF

Click the Export Directly as PDF icon on the Standard toolbar to export the entire document using the PDF settings you most recently selected on the PDF Options dialog (see below). In Writer, Impress, and Draw, you can also use File > Export As > Export Directly as PDF. 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 > Export as PDF (Writer, Impress, and Draw) or File > Export as PDF (Calc and Math) on the Menu bar. The PDF Options dialog opens. This dialog has six tabs (General, Initial View, User Interface, Links, Security, and Digital Signatures). Select the appropriate settings, and then click Export. Then you are asked to enter the location and file name of the PDF to be created, and click Export to export the file.

Note

You can also export to PDF from File > Export (not Math). On the Export dialog, select the PDF file format, the file name and location, and click Export. The PDF Options dialog then opens. Select the appropriate settings and then click Export. The only difference between the two export methods is the sequence in which steps occur.

General tab of PDF Options dialog

On the General tab, you can choose which pages to include in the PDF, the type of compression to use for images (which affects the quality of images in the PDF), and other options. Figure 1 shows the Writer variant of the General tab – the corresponding tabs for other LibreOffice components have minor differences from this figure.

Figure 1: General tab of PDF Options dialog (Writer)

Image9

Range section

Images section

Note

EPS (Encapsulated PostScript) images with embedded previews are exported only as previews. EPS images without embedded previews are exported as empty placeholders.

Watermark section

General section

Structure section

Initial View tab of PDF Options dialog

On the Initial View tab (Figure 2), you can choose how the PDF opens by default in a PDF viewer. The selections should be self-explanatory.

If you have Complex Text Layout enabled (in Tools > Options > Language Settings > Languages), an additional selection is available under the Continuous facing option: First page is left (normally, the first page is on the right when using the Continuous facing option).

Figure 2: Initial View tab of PDF Options dialog

Image3

User Interface tab of PDF Options dialog

On the User Interface tab (Figure 3), you can choose more settings to control how a PDF viewer displays the file. Some of these choices are particularly useful when you are creating a PDF to be used as a presentation or a kiosk-type display.

Figure 3: User Interface tab of PDF Options dialog

Image15

Window Options section

User Interface Options section

Transitions

In Impress, displays slide transition effects as their respective PDF effects.

Collapse Outlines

Select how many heading levels are displayed in the outline, if Export outlines is selected on the General tab.

Links tab of PDF Options dialog

On the Links tab (Figure 4), you can choose how links are exported to PDF.

General

Figure 4: Links tab of PDF Options dialog

Image2

Cross-document Links

Defines the behavior of links clicked in PDF files. Select one among the following alternatives:

Security tab of PDF Options dialog

Figure 5: Security tab of PDF Options dialog

Image14

PDF export includes options to encrypt the PDF (so it cannot be opened without a password) and apply some digital rights management (DRM) features.

Note

Permissions settings are effective only if the user’s PDF viewer respects the settings.

Digital Signatures tab of PDF Options dialog

The Digital Signatures tab (Figure 6) contains the options for exporting a digitally signed PDF.

Figure 6: Digital Signatures tab of PDF Options dialog

Image6

Digital signatures are used to ensure that the PDF was really created by the original author (that is, you), and that the document has not been modified since it was signed.

The signed PDF export uses the keys and X.509 certificates already stored in your default key store location or on a smart card. The key store to be used can be selected under Tools > Options > LibreOffice > Security > Certificate (macOS and Linux only). When using a smart card, it must already be configured for use by your key store. This is usually done during installation of the smart card software. Details about using these features is outside the scope of this chapter.

Exporting to EPUB format (Writer only)

EPUB format has become popular since mobile devices such as smartphones, tablets, and e‑readers appeared on the market. The EPUB format is implemented as an archive file consisting of HTML files carrying the content, along with images and other supporting files.

Writer can export a file to EPUB. A text-only document generally exports well, but some contents (such as illustrations, tables, and cross-references) may not export correctly.

Tip

Other ways to export to EPUB from Writer (.odt) files include Calibre, an open-source e‑book manager that runs on Windows, macOS, and Linux. Calibre provides many e‑book conversion facilities (including PDF to EPUB) and allows editing of the result. See https://calibre-ebook.com/ for more information.

Quick export to EPUB

Choose File > Export As > Export Directly as EPUB to export the entire document using the EPUB settings you most recently selected on the EPUB Export dialog (see below). You are asked to enter the file name and location for the EPUB file, but you do not get a chance to select other options.

Controlling export to EPUB

For more control over the content and quality of the resulting EPUB file, use File > Export As > Export as EPUB. The EPUB Export dialog opens (Figure 7).

The EPUB Export dialog has the following fields:

Version

Choose the EPUB version for the exported file. Values are EPUB 2.0 and EPUB 3.0. Most new e-readers can read EPUB 3.0.

Split method

Select the method to start a new section. Choose Heading to start the section on a heading, according to the document’s chapter numbering. Choose Page break to start the section on a page break.

Layout method

Choose Reflowable to have the ebook display change to fit the screen size and the user’s preference (so page size and header/footer content is not exported). Choose Fixed to have the ebook layout remain the same under all conditions.

Figure 7: EPUB Export dialog

Image7

Customize

Cover image

The path to the image file for the cover page. If no image is specified, the EPUB file will automatically use any image with a name like cover.gif, cover.jpg, cover.png, or cover.svg. A custom cover image is embedded in the EPUB file.

Media directory

The path to the optional directory for the cover image, metadata, and multimedia files. If you do not specify a directory, the exporter looks for custom media and custom metadata in the current document directory inside a folder with the same name as the document file name.

Metadata

The basic information for the file that provides tags to help searches. These fields provide another chance to edit metadata that is picked up by default from File > Properties in Writer.

Saving and exporting documents as HTML files

The easiest way to create HTML documents in LibreOffice is to start with an existing document. In Writer, you can get a good idea of how it will appear as a web page by using View > Web. However, Web view does not show you which features will or will not be saved correctly in HTML format. Refer to Creating, editing, and saving HTML files using Writer/Web on page 1 for what to consider before creating a web page from a document.

Writer documents

Saving a Writer document as HTML

To save a Writer document as HTML, go to File > Save As on the Menu bar and select HTML Document (Writer) as the file type in the Save As dialog. You may be prompted to confirm that you wish to continue using the HTML format.

Saving a document as HTML produces a set of files. LibreOffice generates the image files and the HTML file necessary to create an HTML page in a browser. The number of files generated by the format conversion depends on the number of images and objects in the original text document.

Tip

Use an empty folder to save your document as HTML file and images.

The file names are created following a simple rule summarized in Table 1.

Table 1: File types created when saving as HTML format

File

Contents

Myfile.html

The text contents, page layout, text attributes, meta tags, and styles.

Myfile_html_[random number].gif

GIF images of visible contents of OLE objects.

Myfile_html_[random number].png, jpg, or bmp

Images inserted in the text document as PNG, BMP, or JPEG keep their original format.

Note

The HTML transformation of the text document is limited by the HTML 4.0 Transitional specification. Text documents in office suites have a richer set of resources that will not appear in HTML, for example page formatting. Do not expect the same layout fidelity when saving a file in HTML format.

Saving as HTML may require more work directly on the HTML code to adjust the layout of the web page. See “Creating, editing, and saving HTML files using Writer/Web” on page 1.

Exporting a single web page

Another way to create a HTML file is to use File > Export and specify XHTML (Extensible Hypertext Markup Language) as the file type. LibreOffice will generate one XHTML 1.1 file per text document. The image files are embedded in the XHTML file. XHTML files created by exporting a text document in LibreOffice have significantly better layout rendering but fail to render objects other than images.

Notes

Writer does not replace multiple spaces in the original document with the HTML code for non-breaking spaces. If you want to have extra spaces in your HTML file or web page, you need to insert non-breaking spaces in LibreOffice. To do this, press Ctrl+Spacebar or Ctrl+Shift+Spacebar (depending on the operating system), instead of just Spacebar.

The Tab character is not rendered on exporting to XHTML. Instead, use borderless tables to position contents instead of the Tab character in a line. This also affects bullet and number lists that insert by default a Tab character between the bullet or number and the text. Use a list style where the Tab character is replaced by a space.

Objects different from usual image formats are not rendered in LibreOffice XHTML output. These include drawings, spreadsheets, charts, and OLE object in general. To render an OLE object in XHTML, first transform its visible contents into an image and then replace the object in your document with the image.

The use of styles in the text document is strongly recommended for getting the best results when exporting to HTML or XHTML.

Saving as a series of web pages

Writer can save a large document as a series of web pages (HTML files) with a table of contents page.

1)  Decide which headings in the document should start on a new page and make sure all those headings have the same paragraph style (for example, Heading 1).

2)  Go to File > Send > Create HTML Document on the Menu bar to open the Name and Path of the HTML Document dialog (Figure 8).

3)  Type the file name to save the pages under.

4)  Specify which style indicates a new page by using the separated by drop-down list at the bottom of the dialog (for example, Outline: Level 1).

5)  Click Save to create the multi-page HTML document. The resulting HTML files conform to the HTML 4.0 Transitional standard.

Figure 8: Creating a series of web pages from one document

Image30

Calc spreadsheets

Calc can save files as HTML documents. Go to File > Save As on the Menu bar and select HTML Document (Calc) as the file type in the Save As dialog.

If the file contains more than one sheet, the additional sheets will follow one another in the HTML file. Links to each sheet will be placed at the top of the document.

Calc also allows the insertion of links directly into the spreadsheet using the Hyperlink dialog. See Chapter 4, Working with Styles, Templates and Hyperlinks, for more information on hyperlinks.

Impress presentations

Impress presentations cannot be saved in HTML format, but have to be exported as HTML documents. The HTML files created will then use the default settings that you have not changed.

Notes

Saving in HTML format does not retain animation and slide transitions.

You can click Create on the HTML Export dialog at any step in the following procedure.

1)  Go to File > Export on the Menu bar and specify the file name and location of where to save the web page version of your presentation.

2)  Select HTML Document (Impress) as the file type and click Export to open the HTML Export dialog / wizard (Figure 9).

3)  On the Assign Design page, you can choose to create a new design and select or delete an existing design. Select New design or Existing design and click Next >. If you have not previously saved a web page design, the Existing design choice is not available.

Figure 9: HTML Export dialog – Assign Design page

Image31

4)  Specify the publication type for the web pages (Figure 10), then click Next >. The publication type defines the basic settings for the intended export. The choices are:

Options are also provided to create a title page and to display your notes. For more information about the options on this page of the HTML Export dialog, click Help.

Figure 10: HTML Export dialog – publication type and options page

Image32

5)  Specify the options for saving images, monitor resolution, and effects used for the web pages (Figure 11), then click Next >. The options on this page are as follows:

For more information on the options available for this page of the HTML Export dialog, click Help to open the help pages.

Figure 11: HTML Export dialog – image format, monitor resolution, and effects page

Image33

6)  Specify the Information for the title page to be used with the web version of your presentation (Figure 12). The title page normally contains the author’s name, an email address, a home page address, and any additional information you want to include. This page is only available if you have selected to create a title page (option only applicable to the Standard HTML format and Standard HTML with frames publication types).

Figure 12: HTML Export dialog – title page information page

Image34

7)  Select Link to a copy of the original presentation if you want to create a hyperlink to download a copy of the presentation file, and then click Next >.

8)  Select the button style to be used for the web pages from the designs available (Figure 13) and then click Next >.

If you do not select a button style, LibreOffice will create a text navigator.

This page is not available if you have selected either Automatic or WebCast publication type.

Figure 13: HTML Export dialog – button style page

Image35

9)  Select the color scheme to be used for the web pages (Figure 14), including colors for text, links, and background. This page is not available if you have selected either Automatic or WebCast publication type.

Figure 14: HTML Export dialog – color scheme page

Image36

10)  Click Create.

11)  If you have created a new design for your web pages, a small Name HTML design dialog opens. Type a name for the design and click OK.

Note

Depending on the size of your presentation and the number of graphics it contains, the HTML export function creates several HTML, JPG, and GIF files. It is recommended to create a folder to hold all the files created for the web version of your presentation. If you simply save to your desktop and not in a specific folder, these separate HTML and graphics files will be placed all over your desktop.

Draw documents

Draw documents cannot be saved in HTML format, but have to be exported as HTML documents. Exporting drawings from Draw is similar to exporting a presentation from Impress. Go to File > Export and select HTML Document (Draw) as the file type, then follow the procedure above for exporting Impress presentations.

Creating, editing, and saving HTML files using Writer/Web

LibreOffice Writer can create, edit, and save files in HTML format using a configuration called Writer/Web.

Writer/Web display modes

In addition to the Normal and Web display modes for editing (Figure 15), Writer/Web has a third editing mode called HTML Source mode (Figure 16). You can select this view when creating a new HTML document or after opening an existing one. With the HTML Source mode, you can directly edit HTML tags such as <p>, <ul>, <table>, and so on to compose web page elements. In that mode you must be familiar with the HTML markup language.

You normally add content to an HTML document using the Web display mode, because it will render the contents as if displayed in a browser. Use the HTML Source editing mode to tweak the formatting.

Note

Because HTML markup language has fewer formatting possibilities than a text document in OpenDocument Format, Writer/Web cannot provide all formatting features for HTML documents and some formatting dialogs have fewer options available. For example, a HTML paragraph has no tab settings.

Figure 15: Web display mode for Writer/Web

Image37

Figure 16: HTML Source display mode

Image38

Creating and editing a HTML document

To create a HTML document, choose File > New > HTML Document. Writer/Web opens a blank document in Web display mode. You can now add content to the document by typing or pasting text, images, tables, and other objects. Use all the Writer/Web formatting resources including styles to format the content. When you have finished, save the document with the HTML file type.

If you need to add HTML content directly into the document, enter HTML Source editing mode by clicking the HTML Source icon on the Standard toolbar, or choosing View > HTML Source on the Menu bar. If you haven’t saved a new document, Writer/Web will ask you to do so before it switches to HTML Source editing mode. In that mode, Writer/Web turns into a notepad-like text editor (Figure 16).

Note

The HTML markup content generated by Writer/Web is limited to the production of a displayable document in a web browser. It does not consider other components of a website such as external cascading style sheets (CSS), external JavaScript, or other script languages. Use the HTML Source mode to manually insert links to these external components into the page.

Checking a web page in a browser

It is important to check your web pages (HTML documents) in a web browser such as Mozilla Firefox, Google Chrome, Microsoft Edge, or Safari. Not all browsers render HTML files the same way, so if possible, check the contents in several browsers.

To make LibreOffice open your default web browser and display the contents of an HTML document, go to File > Preview in Web Browser on the Menu bar, or click the Preview in Web Browser icon on the Standard toolbar. You can also open any web browser and then open the HTML file in it.

Emailing documents

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

To send the current document in OpenDocument format:

1)  Choose File > Send > Email Document. LibreOffice opens your default email program (if installed). The document is attached to a new email. If no email program is installed, LibreOffice displays a message.

2)  In your email program, enter the recipient, subject, and any text you want to add, then send the email.

File > Send > Email as OpenDocument [Text, Spreadsheet] has the same effect in Writer or Calc.

If you choose Email as Microsoft [Word, Excel] in Writer or Calc, LibreOffice first creates a file in one of those formats and then opens your email program with the file attached to a new email.

Similarly, if you choose Email as PDF, LibreOffice opens the PDF Options dialog where you can select the settings you want, and then opens your email program with the PDF attached to a new email.

Emailing a document to several recipients

To email a document to several recipients, you can use the features in your email program or you can use LibreOffice Writer’s mail merge facilities to create the document and send it. See Chapter 14, Mail Merge, in the Writer Guide for details.

Opening and saving files on remote servers

LibreOffice can open and save files stored on remote servers. Keeping files on remote servers allows you to work with the documents using different computers. For example, you can work on a document in the office during the day and edit it at home for last-minute changes. Storing files on a remote server also backs up documents from computer loss or hard disk failure. Some servers are also able to check-in and check-out files, thus controlling their usage and access.

LibreOffice supports many document servers that use well known network protocols such as FTP, WebDav, Windows share, and SSH. It also supports popular services like Google Drive and Microsoft OneNote, as well as commercial and open source servers that implement the OASIS CMIS standard.

To enable a remote server connection, use one of these methods:

On the Remote Files dialog (Figure 17), click Manage Services / Add Service button in the upper right to open the File Services dialog (Figure 18). Depending on the type of file service you choose in the Type listbox, different parameters are necessary to fully qualify the connection to the remote server.

Figure 17: Remote Files dialog when connected to a server

Image29

Once the connection is defined, click OK to connect. The dialog will dim until the connection is established with the server. A dialog asking for the user name and the password may pop up to let you log in the server. Proceed entering your credentials.

The Remote Files dialog (Figure 17) which then appears has many parts. The upper list box contains the list of remote servers you have previously defined. The line below the list box shows the path to access the folder. On the left is the folder structure of the user space in the server. The main pane displays the files in the remote folder. Click the Open or Save button to proceed.

Image39

Figure 18: Remote server configuration

Digital signing of documents

To sign a document digitally, you need a personal key, also known as a certificate. A personal key is stored on your computer as a combination of a private key, which must be kept secret, and a public key, which you add to your documents when you sign them. You can get a certificate from a certification authority, which may be a private company or a governmental institution.

When you apply a digital signature to a document, a checksum is computed from the document’s content plus your personal key. The checksum and your public key are stored with the document.

When someone later opens the document on any computer with a recent version of LibreOffice, the program will compute the checksum again and compare it with the stored checksum. If both are the same, the program will signal that you see the original, unchanged document. In addition, the program can show you the public key information from the certificate. You can compare the public key with the public key that is published on the web site of the certificate authority. Whenever someone changes something in the document, this change breaks the digital signature.

For a more detailed description of how to get and manage a certificate, and signature validation, see “Applying Digital Signatures” in the LibreOffice Help.

Applying a digital signature

The following procedure is an example of how to digitally sign a document. The actual procedure depends on how your computer is set up and its operating system.

1)  Choose File > Digital Signatures > Digital Signatures.

2)  The Digital Signatures dialog (Figure 19) opens. It lists existing signatures together with their description (if they have any). Click the Sign Document button to add a new signature to the document.

3)  In the Select Certificate dialog (Figure 20), select your certificate, add an optional description, and click Sign to return to the Digital Signatures dialog.

  1. The certificate used is displayed in the dialog with an icon next to its name. This icon indicates the status of the digital signature.

4)  Click Close in the Digital Signatures dialog to apply the digital signature.

A signed document shows an icon in the status bar. You can double-click the icon to view the certificate. More than one signature can be added to a document.

Changing an existing description invalidates the signature. However, multiple signatures from the same author are allowed, because each signature can have a different description.

Figure 19: Signatures of the document

Image86

Figure 20: Signatures can have a description

Image87

Including a signature line (Writer and Calc)

You can generate a graphic box representing a signature line (Figure 22) and you can optionally sign the signature line using a digital certificate. To open the Signature Line dialog (Figure 21), select Insert > Signature Line on the Menu bar.

Figure 21: Creating a signature line for a document

Image22

Figure 22: Signature line example

Image23

Using document properties

To open the Properties dialog for a document, go to File > Properties on the Menu bar. The Properties dialog provides information about the document and allows you to set some of its properties. The dialog and its tabs are described below.

General

Contains basic information about the current file: file name and type; storage location; file size; date, time, and author of file creation and last modification; template used to create the file; date, time, and author of digital signature; date, time, and user name when the file was last printed; total editing time; and revision number.

Controls available:

Description

Contains optional editable descriptive information about the document, which may be exported as metadata to other file formats.

Custom Properties

Use this page to assign custom information fields to the document. In a new document, this page may be blank. If the new document is based on a template, this page may contain fields. You can change the name, type, and contents of each row. The information in the fields will be exported as metadata to other file formats.

Click Add Property to add a new custom property. Click Reset to delete all custom properties.

CMIS Properties

Used for documents stored on remote servers; not shown otherwise. See the Help for more information.

Security

Enables two password-protected security options.

Protect or Unprotect button protects the change recording state with a password. If change recording is protected for the current document, the button is named Unprotect. Click Unprotect and type the correct password to disable the protection.

Font

When Embed fonts in the document is selected, any fonts used in the document will be embedded into the document when it is saved. This may be useful if you are creating a PDF and want to control how it will look on other computer systems.

Only embed fonts that are used in documents – If fonts have been defined for the document (for example, in the template), but have not been used, select this option to not embed them.

Font scripts to embed – You can choose which types of fonts are embedded: Latin, Asian, Complex.

Statistics

Displays statistics for the current file, such as the number of pages, words, and characters.

Classifying document contents

Document classification and security are important for businesses and governments. Where sensitive information is exchanged between users and organizations, the parties agree how such information will be identified and handled. LibreOffice provides standardized means for sensitive information to be identified and protected, using a set of standard fields that can be used to hold sensitive information.

LibreOffice implemented the open standards produced by TSCP (Transglobal Secure Collaboration Participation, Inc.). It contains three BAF (Business Authentication Framework) categories: Intellectual Property, National Security and Export Control. Each category has four BAILS (Business Authorization Identification and Labeling Scheme) levels: Non-Business, General Business, Confidential, and Internal Only.

To enable document classification, open the TSCP bar (View > Toolbars > TSCP Classification). This toolbar contains list boxes to help in selecting the security of the document. LibreOffice then adds custom fields in the document properties (File > Properties, Custom Properties tab) to store the classification policy as document metadata.

To prevent a breach in security policy, contents with a higher classification level cannot be pasted into documents with a lower classification level.

Removing personal data

You may wish to ensure that personal data, versions, notes, hidden information, or recorded changes are removed from files before you send them to other people or create PDFs from them.

In Tools > Options > LibreOffice > Security, click the Options button to display a dialog where you can set LibreOffice to warn you when files contain certain information and/or automatically remove personal information on saving.

To remove personal and some other data from a file, go to File > Properties. On the General tab, uncheck Apply user data and click the Reset Properties button. This removes any names in the created and modified fields, deletes the modification and printing dates, and resets the editing time to zero, the creation date to the current date and time, and the version number to 1.

To remove version information, either go to File > Versions, select the versions from the list and click Delete; or use File > Save As and save the file with a different name.

Redaction

You can redact documents to remove or hide sensitive information, to allow the selective disclosure of information in a document while keeping other parts of the document secret. For example, when a document is subpoenaed in a court case, information not specifically relevant to the case at hand is often redacted.

To redact a document:

1)  Open the document in LibreOffice.

2)  Click Tools > Redact on the Menu bar, and wait for the document to be prepared for redaction and transferred to Draw. The Redaction toolbar (Figure 23) opens.

Figure 23: Redaction toolbar

Image4

3)  Do the redaction by using the Rectangle Redaction and Freeform Redaction tools on the Redaction toolbar. The shapes will be transparent and in gray so you can see what you are redacting.

4)  Optionally use the Export Directly as PDF tool to make an in-redaction copy of the document in PDF to use as a verbatim copy for review. The redacted items will be in transparent gray.

5)  To finalize the redaction, select the desired option (black or white) on the Redacted Export tool. The transparent gray shapes are converted to opaque black or white shapes and the document is exported as a pixelized PDF. There will be no selectable text in it, and the redacted content will be non-existent.

Auto-redaction

To partially automate the redaction process, you can define certain words (such as names) to be redacted wherever they are found in the document. To do this, choose Tools > Auto-Redact on the Menu bar to open the Automatic Redaction dialog (Figure 24). Here you can load a list of terms (targets), add targets, delete targets, edit targets, and save a list of targets.

This feature is not available in Draw.

Figure 24: Automatic Redaction dialog

Image20

Using password protection and OpenPGP encryption

LibreOffice provides two types of document protection: password protection and OpenPGP encryption. Files encrypted with the Save password option enabled cannot be decrypted without the password, which must be sent to each user who needs to decrypt the document. With OpenPGP encryption, the document is encrypted using an algorithm, which requires a key. Each key is used only once and is sent to the recipient along with the document.

Password protection

LibreOffice provides two levels of password protection: read-protect (file cannot be viewed without a password) and write-protect (file can be viewed in read-only mode but cannot be changed without a password). Thus you can make the content available for reading by one group of people and for reading and editing by a different group. This behavior is compatible with Microsoft Word file protection. The two levels can also be combined.

Figure 25: Save with password and Encrypt with GPG key options

Image21

To protect a document with passwords:

1)  Using the Save As command, select the Save with password option in the lower left of the Save As dialog or Save dialog (Figure 25).

2)  Click Save and the Set Password dialog opens (Figure 26).

3)  In the File Encryption Password section, enter a password to open the document and then enter the same password as confirmation.

4)  To restrict who can edit the document, click Options.

5)  In the File Sharing Password section, select Open file read-only, enter a password to allow editing, and then enter the same password as confirmation.

6)  Click OK and the dialog closes. If the passwords match, the document is saved password-protected. If either pair of passwords do not match, you receive an error message.

Caution

LibreOffice uses a very strong encryption mechanism that makes it almost impossible to recover the contents of a document if you lose or forget the password.

Figure 26: Set Password dialog

Image27

Changing the password

When a document is password-protected, you can change the password while the document is open. Go to File > Properties > General on the Menu bar and click the Change Password button. This opens the Set Password dialog where you can enter a new password.

OpenPGP encryption

LibreOffice uses the OpenPGP software installed on your computer. If no OpenPGP software is available, you must download and install one suitable for your operating system before you can use this option.

You must define a personal pair of cryptography keys with the OpenPGP application. Refer to the OpenPGP software installed on how to create a pair of keys. For more information on using this form of encryption, see the supplied Help.

OpenPGP encryption requires the use of the public key of the recipient; this key must be available in the OpenPGP key chain stored in your computer.

To encrypt a document:

1)  Choose File > Save As,

2)  In the Save As dialog, enter a name for the file.

3)  Select the Encrypt with GPG key option (see Figure 25).

4)  Click Save. The OpenPGP public key selection dialog opens.

5)  Choose the public key of the recipient. You can select multiple keys.

6)  Click OK to close the dialog and save the file encrypted with the selected public keys.

Note

GPG (GNU Privacy Guard) is an implementation of the Open PGP standard.

Contents