LibreOffice Logo

Getting Started Guide 7.5

Chapter 10
Working with File Formats, Security, and Exporting

Copyright

This document is Copyright © 2023 by the LibreOffice Documentation Team. Contributors are listed below. This document maybe distributed and/or modified 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

Contributors for this edition:

Peter Schofield

Contributors for previous editions:

Dave Barton

Hazel Russman

Jean Hollis Weber

John A Smith

Kees Kriek

Miklos Vajna

Olivier Hallot

Paul Figueiredo

Ron Faile Jr.

Skip Masonsmith

Steve Fanning

Winston Min Tjong

Feedback

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

Note

Everything sent to a forum, including email addresses and any other personal information that is written in the message, is publicly archived and cannot be deleted. Emails sent to the forum are moderated.

Publication date and software version

Published July 2023. Based on LibreOffice 7.5 Community.
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 used in this document. For a detailed list, see LibreOffice Help.

Windows or Linux

macOS equivalent

Effect

Tools > Options
menu selection

LibreOffice > Preferences

Access setup options

Right-click

Control+click, Ctrl+click, or right-click depending on computer setup

Open a context menu

Ctrl or Control

⌘ and/or Cmd or Command, depending on keyboard

Used with other keys

Alt

⌥ and/or Alt or Option depending on keyboard

Used with other keys

F11

+T

Open the Styles deck in the Sidebar

File formats

LibreOffice can open a wide variety of file formats as shown below in addition to the Open Document Format (ODF), including Portable Document Format (PDF).

Most file formats are automatically detected by LibreOffice and can be opened without explicitly selecting the document format in the file picker.

Text documents

In addition to Open Document text formats (.odt, .ott, .oth, .odm, and .fodt), Writer can open the following text formats and a variety of legacy formats that are not listed.

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

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)

Microsoft Works (.wps)

Abiword Document (.abw, .zabw)

MacWrite Document (.mw, .mcw)

Text CSV (.csv and .txt)

DocBook (.xml)

T602 Document (.602, .txt)

Apple Pages (.pages)

HTML Document (.htm, .html)

WordPerfect Document (.wpd)

Lotus WordPro (.lwp)

ClarisWorks/Appleworks Document (.cwk)

Rich Text Format (.rtf)

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

Unified Office Format text (.uot, .uof)

Hangul WP 97 (.hwp)

eBook (.pdb)

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

Spreadsheets

In addition to Open Document spreadsheet formats (.ods, .ots, and .fods), Calc can open the following spreadsheet formats and a variety of legacy formats that are not listed.

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)

Presentations

In addition to Open Document presentation 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)

Graphics

In addition to Open Document graphic file formats (.odg and .otg) and PDF files, 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)

Bitmap (*.bmp)

Joint Photographic Experts Group (*.jpeg, *.jpg)

Picture Exchange (*.pcx)

Sun Raster (*.ras)

Truevision TGA (*.tga, *.icb, *.vda, *.vst)

Drawing Exchange Format, or Drawing Interchange Format (*.dxf)

eMule Resource Files (*.met)

Portable Gray Map (*.pgm)

Open Office, or Star Office Draw (*.sda)

Tag Image File Format (*.tif, *.tiff)

Windows Metafile (*.wmf)

Enhanced Windows Metafile (*.emf)

Portable Bitmap Image (*.pbm)

Portable Network Graphics (*.png)

StarOffice Presentation (*.sdd)

Encapsulated Postscript (*.eps)

Kodak Photo CD (*.pcd)

Portable Pixmap (*.ppm)

Scalable Vector Graphics (*.svg)

X Window System or X BitMap (*.xbm)

Graphics Interchange Format (*.gif)

Macintosh Picture Image (*.pct)

Photoshop Document (*.psd)

StarView Metafile (*.svm(

X Windows System (*.xpm)

Formulas

In addition to Open Document Formula files (.odf), 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 (macOS LibreOffice > Preferences > Load/Save > Microsoft Office), the object is automatically converted to a LibreOffice Math object.

File formats for saving

Saving in ODF format guarantees the correct rendering of a file when it is transferred to another user, or when the file is reopened with a later version of LibreOffice, or with another application that can open ODF files. It is strongly recommended to use ODF as the default file format. However, files can be saved in other formats, if required.

Tip

When sharing a document that is not going to be modified, the preferred option is to convert the document to PDF. LibreOffice provides an easy method to convert documents to PDF.

Text documents

In addition to the ODF text format (.odt, .ott, and .fodt), Writer can save in the following 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)

Notes

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

The .rtf format is a common format for transferring text files between applications, but there is a loss of formatting and images. For this reason, it is preferable to use other formats.

Spreadsheets

In addition to the ODF spreadsheet format (.ods, .ots, and .fods), Calc can save in the following 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)

Presentations

In addition to the ODF presentation format (.odp, .otp, .fodp, and .odg), Impress can save in the following formats. Impress can also export to graphics formats listed as compatible with Draw.

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)

Drawings

Draw can save in the ODF Drawing format (.odg, .otg, and .fodg). Draw can also export to any of the 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.

Writer/Web documents

Writer/Web can save to the following 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 file operations where there is a change of file type. If the file type cannot be found in File > Save As on the Menu bar, check File > Export on the Menu bar (not available in Math) for additional file types.

LibreOffice can export in PDF format for Writer, Calc, Impress, and Draw, or EPUB for Writer only. Also, LibreOffice can export files in HTML and XHTML formats. Draw and Impress can also export in several image and graphic formats.

PDF format is a standard file format ideal for sending a file that can be viewed using Adobe Reader, or other PDF viewing applications. The process of PDF export and the dialogs used are similar for Writer, Calc, Impress, and Draw.

Note

When using the Export command, LibreOffice creates a copy of the file as a new file using the selected format. The original file remains open in LibreOffice.

Figure 1: Export dialog

Figure 1: Export dialog

PDF quick export

When quickly exporting a file in PDF format, the file format, page range, image compression, or PDF other options cannot be selected.

1)  Open the file in LibreOffice that is going to be exported in PDF format.

2)  To quickly export the file in PDF format and open the Export dialog (Figure 1), use one of the following methods:

3)  Enter a file name and navigate to the required location for the PDF file in the Export dialog.

4)  Click on Export to create the PDF file and close the Export dialog.

Note

By default, a file in PDF format is not protected against contents tampering, or editing. Contents of a PDF file can be edited by specialized software tools, including LibreOffice Draw.

Controlled PDF export

For more control over the content and quality when exporting in PDF format, the PDF Options dialog (Figure 2) has to be used.

1)  Open the file in LibreOffice that is going to be exported in PDF format.

2)  Go to File > Export As > Export as PDF on the Menu bar to open the PDF Options dialog.

Figure 2: PDF Options dialog — General page

Figure 2: PDF Options dialog — General page

3)  Select the various options required on each tabbed page of the PDF Options dialog.

4)  Click on Export to open the Export dialog.

5)  Navigate to the required folder for the PDF file.

6)  Enter a file name the PDF file and click on Export to save the PDF file in its selected location.

General PDF options

Refer to Figure 2 for the PDF options available on the General page of the PDF dialog.

Range

Sets the export options for the pages included in a PDF file.

All

Exports all defined print ranges. If no print range is defined, exports the entire document.

Pages

Exports the pages that have their page number entered in the box. To export a range of pages, use the format 3-6. To export single pages, use the format 7;9;11. If you want, you can export a combination of page ranges and single pages, by using a format like 3-6;8;10;12.

Selection

Exports all the current selection.

View PDF after export

Opens the exported PDF file in the default PDF viewer application.

Images

Sets the PDF export options for images in a PDF file.

Lossless compression

Selects a lossless compression of images. All pixels are preserved. This setting can create large files when used with photographs.

JPEG compression Quality

Enter the quality level for JPEG compression. With a high quality level, almost all pixels are preserved. With a low quality level, some pixels are lost and artifacts are introduced, but file sizes are reduced.

Reduce image resolution

Lower DPI (dots per inch) images have lower quality. Lower resolutions (100 DPI or less) may be sufficient for viewing on a computer screen, but many modern devices have much higher resolutions. For printing it is generally preferable to use at least 300 or 600 DPI, depending on the capability of the printer. Higher DPI settings increase the size of the exported file.

Note

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

Watermark

Add a centered, vertical, light green watermark text to the page background. The watermark is not part of the source document.

Sign with watermark

Insert the required text for the watermark signature. When this option is selected, a watermark signature appears on the PDF pages.

General

Sets general PDF export options.

Hybrid PDF (embed ODF file)

Use this setting to export the document as a PDF containing two file formats: PDF and ODF. In PDF viewers it behaves like a normal PDF file, but remains fully editable in LibreOffice.

Archive (PDF/A, ISO 19005)

Converts to the PDF/A-1b, PDF/A-2b, or PDF/A-3b format. All fonts used in the source document are embedded in the generated PDF file, and PDF tags are created. The primary purpose is to create an electronic document whose appearance is independent of device and application, making it suitable for long term preservation.

PDF/A-2b is recommended for most users, because it allows for layers and transparency with shapes and images. It also compresses better (JPEG 2000) than PDF/A-1b, usually producing smaller files. PDF/A-3b is identical to PDF/A-2b, but also accepts embedding of other file formats.

Universal Accessibility (PDF/UA)

Creates a universal, accessible PDF file that follows the requirements of PDF/UA (ISO 14289) specifications.

Tagged PDF (add document structure)

A tagged PDF contains information about the structure of document contents. This can help to display the document on devices with different screens and using screen reader applications. Some tags that are exported are table of contents, hyperlinks, and controls. This option can increase file sizes significantly.

Create PDF

Select the format for submitting forms from within the PDF file from the available options in the Submit format drop‑down list. This setting overrides the URL property that is set in the document. Only one is setting valid for the PDF document: PDF (sends the whole document); FDF (sends the control contents); HTML, and XML. Normally PDF format is selected.

Allow duplicate field names

Allows the use of the same field name for multiple fields in a generated PDF file. If disabled, field names are exported using the generated unique names.

Structure

Sets options for diverse features such as bookmarks, comments, page layout.

Export outlines

Select to export bookmarks of Writer documents as PDF bookmarks. Bookmarks are created for all outline paragraphs and for all table of contents entries where hyperlinks are assigned in the source document.

Only paragraphs with Outline level 1 — 10 are exported. The name of the Paragraph Style is irrelevant. For example, the default version of Paragraph Style Title is not exported when its Outline level is Text Body.

Export placeholders

The PDF file includes any defined placeholder fields, which can be filled in by users. This option is only available in Writer.

Comments as PDF annotations

If selected, comments are included in the PDF file as annotations.

To export comments of Writer documents as displayed in LibreOffice, select Tools > Options > LibreOffice Writer > Print (macOS LibreOffice > Preferences > LibreOffice Writer > Print) and select the In margins option in Comments. The exported pages are scaled down and the comments are placed into margins.

Export automatically inserted blank pages

If selected, blank pages are exported automatically inserted in the PDF file. This is recommended when printing the PDF file as a double-sided document. For example, books usually have chapters set to start on an odd-numbered (right-hand) page. When the previous chapter ends on an odd page, LibreOffice inserts a blank page between the two odd pages. This option controls whether to export that blank page.

Use reference Xobjects

This option affects how PDF images are exported back to a PDF file.

When this option is disabled, the first page of the PDF data is included in the output. The PDF export merges images, fonts and other resources during export. This is a complex operation, but the result can be viewed in various viewers.

When the option is enabled, then the reference XObject markup is used. This is a simple operation, but PDF viewers have to support this markup to show vector images. Otherwise a fallback bitmap is shown in the viewer.

More information can be found in the PDF specification, ISO 32000-2:2017 (https://www.iso.org/standard/63534.html).

Figure 3: PDF Options dialog — Initial View page

Figure 3: PDF Options dialog — Initial View page

Initial View PDF options

On the Initial View page in the PDF Options dialog (Figure 3), select how the PDF file opens by default in a PDF viewer.

Panes

Page only

Select to generate a PDF file that shows only page contents.

Outline and page

Select to generate a PDF file that shows a bookmarks palette and page contents.

Thumbnails and page

Select to generate a PDF file that shows a thumbnails palette and the page contents.

Open on page

Enter a page number to display that page when a PDF reader opens a PDF file.

Magnification

Default

Select to generate a PDF file that shows the page contents without zooming. If the PDF reader application is configured to use a zoom factor by default, the page displays with that zoom factor.

Fit in window

Select to generate a PDF file that displays the page zoomed to fit entirely into a PDF reader window.

Fit width

Select to generate a PDF file that displays the page zoomed to fit the width of a PDF reader window.

Fit visible

Select to generate a PDF file that displays the text and graphics on the page zoomed to fit the width of a PDF reader window.

Zoom factor

Enter a zoom factor when a PDF reader opens a PDF file.

Page layout

Default

Select to generate a PDF file that displays the pages according to the layout setting of the PDF reader application.

Single page

Select to generate a PDF file that displays one page at a time.

Continuous

Select to generate a PDF file that displays pages in a continuous vertical column.

Continuous facing

Select to generate a PDF file that displays pages side by side in a continuous column. For more than two pages, the first page is displayed on the right.

First page is left

Select to generate a PDF file that shows pages side by side in a continuous column. For more than two pages, the first page is displayed on the left. Complex Text Layout must be enabled in Tools > Options > Language Settings > Languages (macOS LibreOffice > Preferences Language Settings > Languages) for this option to be available.

User Interface PDF options

On the User Interface page in the PDF Options dialog (Figure 4), the options available specify how the user interface for an external PDF viewer appears. Some of the options are useful when creating a PDF file to be used as a presentation, or a kiosk-type display.

Window Options

Resize window to initial page

Select to generate a PDF file that is shown in a window displaying the whole initial page.

Center window on screen

Select to generate a PDF file that is shown in a PDF reader application centered on the display.

Open in full screen mode

Select to generate a PDF file that is shown in full screen in a PDF reader window and in front of all other windows.

Display document title

Select to generate a PDF file that is displays the PDF file title in the PDF reader title bar.

Figure 4: PDF Options dialog — User Interface page

Figure 4: PDF Options dialog — User Interface page

User Interface Options

Hide menubar

Select to hide the menu bar when a PDF file is active.

Hide toolbar

Select to hide the toolbar when a PDF file is active.

Hide window controls

Select to hide the reader controls when a PDF file is active.

Transitions

Use transition effects

Select to export Impress slide transition effects to respective PDF effects.

Collapse Outlines

Show All

Select to show all outline levels as bookmarks when a PDF reader opens a PDF file.

Visible levels

Select to show bookmarks down to the selected level when a PDF reader opens a PDF file.

Links PDF options

The Links page in the PDF Options dialog (Figure 5), specifies how outlines and hyperlinks are exported in a document.

General

Export outlines as named destinations

The bookmarks (targets of references) in PDF files are defined as rectangular areas. Additionally, bookmarks to named objects are defined by their names. Enable the checkbox to export the names of objects in a document as valid bookmark targets. This allows linking of these objects by name from other documents.

Convert document references to PDF targets

When selected, this option converts the URLs referencing other ODF files to PDF files with the same name. In the referencing URLs, the extensions .odt, .odp, .ods, .odg, and .odm are converted to the extension .pdf.

Export URLs relative to file system

Enable this option to export URLs to other documents as relative URLs in the file system.

Cross-document links

Specify how to handle hyperlinks from a PDF file to other files.

Figure 5: PDF Options dialog — Links page

Figure 5: PDF Options dialog — Links page

Default mode

Links from a PDF document to other documents are handled as specified in the computer operating system.

Open with PDF reader application

Cross-document links are opened with the PDF reader application that currently shows the document. The PDF reader application must be able to handle the specified file type inside the hyperlink.

Open with Internet browser

Cross-document links are opened with the Internet browser. The Internet browser must be able to handle the specified file type inside the hyperlink.

Security PDF options

The Security page in the PDF Options dialog (Figure 6), specifies the security options of the exported PDF file.

Note

The document permission restrictions set by a password are observed only by PDF readers compliant with the version 1.5 of the PDF format. For older PDF readers, these restrictions may have no effect.

File Encryption and Permission

Set passwords

Click on this option to open a dialog box where passwords are entered. Specify a password required for viewing a PDF file. Enter an optional password that allows a user viewing the PDF to edit and/or print the document.

Printing

Not permitted

Printing a document is not permitted.

Low resolution (150 dpi)

The document can only be printed in low resolution (150 dpi). Some PDF readers ignore the setting of this option.

Figure 6: PDF Options dialog — Security page

Figure 6: PDF Options dialog — Security page

High resolution

The document can be printed in high resolution.

Changes

Not permitted

No changes of the content of the PDF file are permitted.

Inserting, deleting, and rotating pages

Only inserting, deleting, and rotating pages is permitted.

Filling in form fields

Only filling in form fields is permitted.

Commenting, filling in form fields

Only commenting and filling in form fields is permitted.

Any except extracting pages

All changes are permitted, except extracting pages.

Contents

Enable copying of content

Select to enable copying of content to the clipboard.

Enable text access for accessibility tools

Select to enable text access for accessibility tools.

Digital Signature PDF options

The Digital Signatures page in the PDF Options dialog (Figure 7), specifies the options for exporting to a digitally signed PDF file.

Certificate

Use this certificate to digitally sign PDF documents

Allows selection of a certificate to be used for signing a PDF export.

Select

Opens the Select Certificate dialog.

All certificates found in the selected key store are displayed. If the key store is protected by a password, there is a prompt to enter a password. When using a smart card that is protected by a PIN, there is a prompt to enter the PIN.

Select the certificate to use for digitally signing the exported PDF by clicking on the corresponding line, then click OK.

All other fields on the Digital Signatures page are accessible only after a certificate has been selected.

Certificate password

Enter the password used for protecting the private key associated with the selected certificate. Usually this is the key store password.

Figure 7: PDF Options dialog — Digital Signatures page

Figure 7: PDF Options dialog — Digital Signatures page

Notes

If the key store password has already been entered in the Select Certificate dialog box, the key store may already be unlocked and not require the password again. But to be on the safe side, enter the password.

When using a smart card, enter the PIN here. Some smart card software prompts for the PIN again before signing. This is cumbersome, but that is how smart cards work.

Location, Contact information, Reason

These three fields optionally allow additional information to be entered about the digital signature that is applied to the PDF (Where, by whom and why it was made). It is embedded in the appropriate PDF fields and is visible to anyone viewing the PDF. Each, or all of the three fields, may be left blank.

Time Stamp Authority

During the PDF signing process, the Time Stamp Authority (TSA) is used to obtain a digitally signed timestamp that is then embedded in the signature. This (RFC 3161) timestamp allows viewing of the PDF to verify when the document was signed.

If no TSA URL is selected (the default), the signature is timestamped, but uses the current time from the local computer.

EPUB format export (Writer only)

EPUB is standard for electronic book files with the extension .epub that can be downloaded and read on devices like smartphones, tablets, computers or e-readers. 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.

Quick EPUB export

When quickly exporting a Writer file as an EPUB file, there is no control over content and quality of the EPUB file.

1)  Open the Writer file that is going to be converted.

2)  Go to File > Export As > Export Directly as EPUB on the Menu bar and the Export dialog opens.

3)  Navigate to the folder where the EPUB file is going to be saved.

4)  Enter a file name in the File name text box. The format of the exported file is fixed to EPUB Document (.epub).

5)  Click on Export and the Writer file is converted to an EPUB file and saved in the selected location.

Controlled EPUB export

To control the content and quality of the resulting EPUB file, a Writer file is exported as follows:

1)  Open the Writer file that is going to be converted.

2)  Go to File > Export As > Export as EPUB and open the EPUB Export dialog (Figure 8).

3)  Enter the necessary information into the various options in EPUB Export dialog. For more information, refer to “EPUB export optionsbelow.

4)  Click OK to close the EPUB Export dialog and open the Export dialog.

5)  Navigate to the folder where the EPUB file is going to be saved.

6)  Enter a file name in the File name text box. The format of the exported file is fixed to EPUB Document (.epub).

7)  Click on Export and the Writer file is converted to an EPUB file and saved in the selected location.

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 conversion. See https://calibre-ebook.com/ for more information.

EPUB export options

General

Version

Sets the version of the resulting EPUB file.

Split method

Select the type of start of the next EPUB section.

Heading — starts the next section on headings, according to the document outline numbering.

Page break — starts the new section on a page break.

Layout method

Determines the layout that is generated for the EPUB document.

Reflowable — content flows, or reflows, to fit the screen and to fit the needs of the user. This also means that page style information (for example page size or header/footer content) is not exported.

Fixed — gives greater control over presentation when a reflowable EPUB is not suitable for the content.

Figure 8: EPUB Export dialog

Figure 8: EPUB Export dialog

Customize

Custom cover image

Enter the full path of the custom cover image file. If the entry is empty, the exporter uses the cover image in the media directory when the name is one of the following: cover.gif, cover.jpg, cover.png, or cover.svg. The custom cover image is embedded in the EPUB file.

Custom media directory

Enter the custom media directory for the EPUB file. The media directory may contain a cover image as seen above, custom metadata and image links.

By default, the exporter looks for custom media and custom metadata in the current document directory inside a folder with the same name of the document file name. For example, if the document name is MyText.odt, the default media folder for cover and metadata is MyText in the current directory.

For custom metadata, provide a file with same name as the original filename and using the extension .xmp. The provided metadata overrides the internal document metadata. In the example above, the custom metadata must exist in the MyText directory as MyText.xmp.

Image links mean that if create relative links are created on images or text and they link an image that is available in the media directory, then this media is available in the EPUB export file as a pop-up.

Metadata

Enter the custom metadata to override the document default metadata. These text fields can be left empty.

Identifier

Enter a unique identifier for the publication.

Title

Enter the title of the publication.

Author

Enter the Author of the publication.

Language

Language of the publication (see RFC4646 and ISO 639 for possible values).

Date

Last modification date for the publication. The value of this property must be an XML Schema date Time conformant date in the form: CCYY-MM-DDThh:mm:ssZ. Default is the date and time when the export dialogue box opened.

Creating HTML files

The easiest way to create HTML documents in LibreOffice is to start with an existing text document. For example, in Writer, go to View > Web and the view changes to show how the text document appears as a web page. However, Web view does not show which features will, or will not be saved correctly in HTML format. Refer to “HTML files using Writer/Web” on page 1 for more information on creating a web page from a text document.

Text documents

Note

The use of styles in the text document is strongly recommended when saving, or exporting to HTML, or XHTML format.

Saving a text document as HTML is limited by the HTML 4.0 Transitional specification. Text documents in office suites normally use a richer set of resources that do not appear in HTML, for example page formatting. Do not expect the same layout when saving a file in HTML format.

Saving as HTML

A text document can be saved in HTML format so that it can be viewed in a web browser. If required, associate a page break with a specific heading paragraph style to generate a separate HTML page each time the style appears in the document. LibreOffice Writer automatically creates a page containing hyperlinks to each of these pages.

Saving a text document in HTML format, any graphics in the document are saved into the HTML document as embedded data streams. For graphics, JPEG, or SVG formats are saved as HTML and all other graphic formats are saved as PNG.

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. Refer to Table 1 for the file types created and file content when saving HTML format.

Table 1: File types created saving in 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.

Create a HTML file from a text document as follows:

1)  If necessary, create a new folder as a location for the HTML file and images.

2)  Go to File > Save As on the Menu bar to open the Save As dialog.

3)  Navigate to the required location in the Save As dialog.

4)  Enter a file name for the HTML file in the File name: text box.

5)  In File type:, select HTML Document (Writer) (.html) as the file type.

6)  Click on Save to save the file as HTML and close the Save As dialog.

7)  If necessary, click on Use HTML Document (Writer) Format in the Confirmation dialog that opens confirming the file is saved as HTML.

Export as HTML

When exporting a text document as a HTML file, LibreOffice generates an XHTML file for each text document. Image files are also embedded in the XHTML file. XHTML files created by exporting a text document using LibreOffice have better layout rendering, but fail to render objects other than images.

1)  If necessary, create a new folder as a location for the HTML file and images.

2)  Go to File > Export on the Menu bar to open the Export dialog (Figure 1 above).

3)  Navigate to the location of the new folder in the Export dialog.

4)  Enter a file name for the HTML file in the File name: text box.

5)  In File type:, select XHTML (Extensible Hypertext Markup Language) as the file type.

6)  Click on Export to save the file as XHTML and close the Export dialog.

Notes

Writer does not replace multiple spaces in the original document with the HTML code for non-breaking spaces. To create extra spaces in a HTML file or web page, insert non-breaking spaces in LibreOffice. To enter non-breaking spaces, use the keyboard shortcut Ctrl+Spacebar (macOS ⌘+Shift+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 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, create an image of the OLE object and replace the OLE object in the document with the image.

Series of web pages

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

1)  Decide which heading style in a document starts 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 and open the Name and Path of the HTML Document dialog (Figure 9).

Figure 9: Name and Path of the HTML Document dialog

Figure 9: Name and Path of the HTML Document dialog

3)  Navigate to the location of where the HTML file is going to be saved.

4)  Enter a file name in the File name: text box.

5)  In File type:, select HTML Document from options available.

6)  In separated by:, select the style from the drop-down list that is going to create a new page in the HTML file, for example Heading 1.

7)  Click on Save to create the multi-page HTML document and close the dialog. The HTML files created conform to the HTML 4.0 Transitional standard.

Spreadsheets

Calc can save spreadsheet files as HTML documents as follows. If the file contains more than one sheet, the additional sheets follow each other in the HTML file. Links to each sheet are placed at the top of the HTML document.

1)  If necessary, create a new folder as a location for the HTML file.

2)  Go to File > Save As on the Menu bar to open the Save As dialog.

3)  Navigate to the required location in the Save As dialog.

4)  Enter a file name for the HTML file in the File name: text box.

5)  In File type:, select HTML Document (Calc) (.html) as the file type.

6)  Click on Save to save the file as HTML and close the Save As dialog.

7)  If necessary, click on Use HTML Document (Calc) Format in the Confirmation dialog that opens confirming the file is saved as HTML.

Note

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

Presentations and drawings

Exporting

  1. Impress presentations and Draw drawings cannot be saved in HTML format, but can be exported as HTML documents. HTML files are created using the selected options in the HTML Export dialog.

Notes

Saving in HTML format does not retain any animation, or slide transitions that have been created in the Impress presentation.

Click on Create on the HTML Export dialog at any stage in the following procedure to create the HTML file.

If a web page design has not been previously created, the option Existing design is not available on the Assign Design page of the HTML Export dialog.

Depending on the size of a presentation, or drawing 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 a presentation, or drawing. Saving to the desktop and not to a specific folder, the HTML and graphics files are placed onto the desktop, which could create difficulties in locating the files.

1)  If necessary, create a new folder as a location for the HTML file.

2)  Go to File > Export on the Menu bar to open the Export dialog (Figure 1 above).

3)  Navigate to the location of the new folder in the Export dialog.

4)  Enter a file name for the HTML file in the File name: text box.

5)  In File type:, select HTML Document (Impress) (.html; .htm), or HTML Document (Draw) (.html; .htm) as the file type.

6)  Click on Export and open the HTML Export dialog (Figure 10).

7)  Select the required option, or enter the necessary information on each page of the HTML Export dialog, then click on Next to open the next page in the HTML Export dialog. See “HTML optionsbelow for more information on available options.

8)  When the HTML design is completed to design requirements, click on Create to close the HTML Export dialog and create the HTML file.

HTML options

Assign Design

Refer to Figure 10. On this page, select to create a new design, or select an existing design, or delete an existing design. If a design is deleted, only the design information is deleted in the Export dialog. An export file is not be deleted by this action.

New design

Creates a new design using the pages of the Export dialog.

Figure 10: HTML Export dialog — Assign Design page

Figure 10: HTML Export dialog — Assign Design page

Figure 11: HTML Export dialog — Publication Type page

Figure 11: HTML Export dialog — Publication Type page

Existing Design

Loads an existing design that is selected from the design list displayed and is used as a starting point in creating a HTML design.

Delete Selected Design

Deletes the selected design from the design list. Only available when an existing design is selected.

Publication type

Refer to Figure 11. Defines the basic settings for exporting the HTML file.

Standard HTML format

Creates standard HTML pages from export pages.

Standard HTML with frames

Creates standard HTML pages with frames. The exported page is placed in the main frame. The frame to the left displays a table of contents in using hyperlinks.

Single-document HTML

Creates a single file containing the text of the presentation, but not the layout, or images.

Automatic

Creates a default HTML presentation as a kiosk export, where pages are automatically advanced after a specified amount of time and does not depend on the document contents.

WebCast

In a WebCast export, automatic scripts are generated with Perl or ASP support. This enables the speaker (for example, a speaker in a telephone conference using a slide show on the Internet) to change pages in web browsers used by the audience. For more information on WebCast is available on the LibreOffice help pages.

Options

Refer to Figure 11.

Create title page

Creates a title page for a document.

Show notes

Specifies that notes are also displayed.

Save images as

Refer to Figure 12. Determines the image format and defines the compression value for export.

PNG

The files are exported as Portable Network Graphics (PNG). PNG files are compressed without loss of data, and can contain more than 256 colors.

GIF

The files are exported as Graphics Interchange Format (GIF). GIF files are compressed without loss of data, and have a maximum of 256 colors.

Figure 12: HTML Export dialog — Save images as page

Figure 12: HTML Export dialog — Save images as page

JPG

The files are exported as Joint Photographic Experts Group (JPEG) files. JPEG files are compressed with adjustable compression and can contain more than 256 colors.

Quality

Specifies the compression factor of the JPEG graphic. A 100% value offers the best quality for a large data range. A 25% factor indicates small files with inferior image quality.

Effects

Refer to Figure 12.

Export sounds when slide advances

Specifies that the sound files that are defined as a transition effect are exported.

Export hidden slides

Exports any hidden slides in a presentation.

Monitor resolution

Refer to Figure 12. Defines the resolution for the target screen. Depending on the selected resolution, the image may be displayed in a reduced size. A reduction of up to 80% from the original size can be specified.

Low (640 × 480 pixels)

Select low resolution to keep the file size small, even for presentations with many slides.

Medium (800 × 600 pixels)

Select medium resolution for a medium-sized presentation.

High (1024 × 768 pixels)

Select high resolution for a high quality display.

Full HD (1920 × 1080 pixels)

Select high definition resolution for a high quality display.

Information for the title page

Refer to Figure 13.

Author

Specifies the name of the author.

Figure 13: HTML Export dialog — Title page

Figure 13: HTML Export dialog — Title page

Figure 14: HTML Export dialog — Button page

Figure 14: HTML Export dialog — Button page

Email address

Specifies the email address of the author

Your homepage

Specifies the homepage of the author. A hyperlink is inserted in the HTML file.

Additional information

Specifies any additional text required for the title page.

Select button style

Refer to Figure 14. Specifies the style of navigation buttons inserted into a presentation.

Text only

Inserts only text hyperlinks instead of buttons.

Selection box

Displays the available button styles. Click on a button style to select it.

Select color scheme

Refer to Figure 15. Determines the color scheme and the colors for text and background.

Apply color scheme from document

Determines the colors from the styles used in the current document.

Use browser colors

Uses the default colors of a web browser.

Use custom color scheme

Allows definition of custom colors for some presentation objects.

Text

Opens the Color dialog where colors are selected for the text color in the presentation.

Hyperlink

Opens the Color dialog where colors are selected for the hyperlink color of the presentation.

Active Link

Opens the Color dialog where colors are selected for the active link color of the presentation.

Figure 15: HTML Export dialog — Color Scheme page

Figure 15: HTML Export dialog — Color Scheme page

Visited Link

Opens the Color dialog where colors are selected for the visited link color of the presentation.

Background

Opens the Color dialog where colors are selected for the background color of the presentation.

HTML files using Writer/Web

LibreOffice Writer can create, edit, and save files in HTML format using a configuration called Writer/Web. LibreOffice Writer/Web is only available when working with documents that are in HTML format.

Display modes

By default, an HTML file opens in Normal view in Writer/Web (Figure 16). To change to Web view in Writer/Web, go to View > Web on the Menu bar (Figure 17). If necessary, Normal or Web view are used to add to an HTML document, then edit and format the contents of the HTML document. The contents in an HTML document are rendered as if displayed in a browser.

Figure 16: Example of Normal view in Writer/Web

Figure 16: Example of Normal view in Writer/Web

Figure 17: Example of Web view in Writer/Web

Figure 17: Example of Web view in Writer/Web

Figure 18: Example of HTML Source view in Writer/Web

Figure 18: Example of HTML Source view in Writer/Web

Writer/Web also has a display mode to display the source code of an HTML document. Go to View > HTML Source on the Menu bar to open the source code display for an HTML document (Figure 18). The HTML Source display mode is used to change the formatting and page elements of a web page. Using this display mode for editing requires familiarity and knowledge of the HTML markup language.

Notes

HTML markup language has fewer formatting possibilities than a text document in ODF 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.

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. It is recommended to only use HTML Source display mode to manually insert links to any external components into the web page.

Creating and editing

Create and edit an HTML document as follows:

1)  Go to File > New > HTML Document and Writer/Web opens a blank document in Web display mode (Figure 17).

2)  Add content to the document by typing or pasting text, images, tables, and other objects.

3)  Use all the formatting resources available in Writer/Web, including styles to edit and format the content.

4)  When all editing is complete, go to File > Save As on the Menu bar and save the document as HTML file type.

5)  Preview the HTML document in a browser to make sure renders correctly.

Editing source code

Edit the source code of an HTML document as follows:

1)  Open, or create an HTML document.

2)  Open HTML source view (Figure 18) using one of the following methods:

3)  Add, or edit the HTML source code.

4)  When all editing is complete, go to File > Save As on the Menu bar and save the document as HTML file type.

5)  Preview the HTML document in a browser to make sure renders correctly.

Previewing HTML documents

It is important to preview, or check HTML documents in a web browser to make sure the document displays correctly, for example Firefox, Chrome, Edge, or Safari. Not all browsers render HTML files the same way, so it is recommended to preview an HTML document in several browsers, where possible.

To make LibreOffice open the default web browser and display an HTML document, use one of the following methods:

Writer/Web options

Go to Tools > Options > LibreOffice Writer/Web (macOS LibreOffice > Preferences > LibreOffice Writer/Web) on the Menu bar to open the Options LibreOffice Writer/Web dialog (Figure 19) and define the basic settings for LibreOffice documents in HTML format. For more information on the options available for Writer/Web, go to the LibreOffice Help website.

Click on a tab in the dialog to access the available options. The tabbed pages are as follows:

View

Defines the default settings for displaying objects in text documents and also the default settings for the window elements.

Figure 19: Options LibreOffice Writer/Web dialog

Figure 19: Options LibreOffice Writer/Web dialog

Formatting Aids

In LibreOffice text and HTML documents, defines the display for certain characters and for the direct cursor.

Grid

Specifies the settings for the configurable grid in document pages. This grid helps to determine the exact position of objects. Also, this grid can be set to align with the snap grid in LibreOffice.

Print

Specifies print settings within a text or HTML document.

Table

Defines the attributes of tables in text documents.

Background

Specifies the background for HTML documents. The background is valid for creating new HTML documents and for HTML documents already created. Any created HTML documents must not have a background defined to use this option.

Emailing documents

LibreOffice provides several ways to send documents quickly and easily as email attachments in one of three formats — Open Document Format (LibreOffice default format); Microsoft Office format; Portable Document Format.

1)  Go to File > Send on the Menu bar and use one of the following options:

2)  Enter the recipient name, subject, and message, then send the email.

Note

The above procedure is for sending text documents as an attachment to an email. When sending spreadsheets, presentations, or drawings, the email options change to reflect the type of document being attached to an email message.

Files on remote servers

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

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.

Access a remote server connection as follows. The following procedure is an example only. Actual procedure depends on operating system, computer setup and type of remote file service selected.

1)  Open the Remote Files dialog (Figure 20) using one of the following methods:

2)  Click on Manage Services, and select Add service to open the File Services dialog (Figure 21).

Figure 20: Remote Files dialog

Figure 20: Remote Files dialog

Figure 21: File Services dialog

Figure 21: File Services dialog

3)  Select the type of file service required from options available in the Type drop‑down list. Depending on the file service selected, different parameters are necessary for connection to a remote server.

4)  Enter the necessary information in the text boxes. The text boxes change depending on the type of service that has been selected in Type.

5)  If necessary, enter a label for the remote server in the Label text box.

6)  Click on OK to save the details and close the File Services dialog.

7)  In the Remote Files dialog, select the service from the Service drop-down list.

8)  Navigate to where the remote file is located and select the required file.

9)  Click on Open to open the file and close the Remote Files dialog.

Digital signatures

A digital signature is a mathematical scheme for verifying the authenticity of digital versions of drawings or documents.

To sign a drawing digitally, a personal key, also known as a certificate, is required. This personal key is stored on the computer being used as a combination of a private key, which must be kept secret, and a public key. These keys are added to a drawing when a digital signature is applied. A certificate is obtained from a certification authority, which may be a private company or a government institution.

When a digital signature is applied to a document, a checksum is computed from the document content, plus the personal key being used. The checksum and public key are stored together with the document.

When the document is opened on another computer with a recent version of LibreOffice, the program computes the checksum again and compares it with the stored checksum. If both checksums are the same, the program opens the original, unchanged document.

In addition, the program can display the public key information from the certificate. This information can then be compared with the public key that is published on the web site of the certificate authority. Whenever a document is changed, this change breaks the digital signature.

For a more information on digital signatures, see “About Digital Signatures” and “Applying Digital Signatures” on the LibreOffice Help website.

Figure 22: Digital Signatures dialog

Figure 22: Digital Signatures dialog

Figure 23: Select Certificate dialog

Figure 23: Select Certificate dialog

Applying digital signatures

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

1)  Go to File > Digital Signatures > Digital Signatures on the Menu bar and open the Digital Signatures dialog (Figure 22) listing the available digital signatures for the document.

2)  If a message box opens advising to save the document, click on Yes to save the document.

3)  If necessary, click on Sign Document to open the Select Certificate dialog (Figure 23).

4)  Select the required digital signature in the Select Certificate dialog.

5)  Click on Sign to apply the digital signature to the document and close the Select Certificate dialog.

6)  In the Digital Signatures dialog, select the required digital signature from the signature list.

7)  Click on Close to apply the selected digital signature to the document and close the Digital Signatures dialog.

8)  Go to File > Save on the Menu bar to save the document.

Notes

A signed document displays a Digital Signature icon in the Status Bar. Double‑click on this Digital Signature icon to view the certificate. More than one digital signature can be added to a document.

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

Signature line

Graphic boxes, that includes a signature line, can also be added to a document. This allows the user to optionally sign a document with their signature. This option is only available for Writer and Calc documents.

Add a graphic signature box to a Writer, or Calc document as follows:

1)  Go to Insert > Signature Line on the Menu bar to open the Signature Line dialog (Figure 24).

2)  Enter the necessary details and select the required options.

3)  Click OK to close the Signature Line dialog and a graphic box with a signature line is inserted into the document. An example is shown in Figure 25.

Figure 24: Signature Line dialog

Figure 24: Signature Line dialog

Figure 25: Example of a signature box

Figure 25: Example of a signature box

Figure 26: Drawing Object Properties dialog

Figure 26: Drawing Object Properties dialog

4)  Click on the signature box to select it and display the object selection handles.

5)  Use the keyboard arrow keys to move the signature box to the required position on the page. The normal position for a signature box is at the bottom of a page.

6)  Right click on the selected signature box to open the Drawing Object Properties toolbar (Figure 26).

7)  Click on Select anchor for object and select the required anchor type from the options available in the drop‑down list.

8)  If necessary, use the other tools available on the Drawing Object Properties toolbar to format the signature box to the document requirements.

9)  Deselect the signature box to close the Drawing Object Properties toolbar.

10)  Save the document fix the signature box into the document.

Document properties

To open the Properties dialog (Figure 27) for a document, go to File > Properties on the Menu bar. The tabbed pages in the Properties dialog provides information about the document and allows properties to be changed.

Figure 27: Properties dialog

Figure 27: Properties dialog

General

Contains basic information about the current file as follows:

File

Displays the file name.

Change Password

Opens a dialog to change the password. It is only active if a password has been set for the file.

Type

Displays the file type for the current document.

Location

Displays the path and the name of the directory where the file is stored.

Size

Displays the size of the current document in bytes.

Created

Displays the date and time and author when the file was first saved

Modified

Displays the date and time and author when the file was last saved in a LibreOffice file format.

Template

Displays the template that was used to create the file.

Digitally signed

Displays the date and the time when the file was last signed as well as the name of the author who signed the document.

Digital Signatures

Opens the Digital Signatures dialog box where digital signatures are managed for the current document.

Last printed

Displays the date, time and user name when the file was last printed.

Note

After printing, a document must be saved to preserve the Last printed data. No warning message is displayed if an unsaved document is closed.

Total editing time

Displays the amount of time that the file has been open for editing since the file was created. The editing time is updated when the file is saved.

Revision number

Displays the number of times that the file has been saved.

Apply user data

Saves the full name of the user with the file. The user data can be changed by going to Tools > Options > LibreOffice > User Data (macOS LibreOffice > Preferences > LibreOffice > User Data) on the Menu bar.

Reset Properties

Resets the editing time to zero, the creation date to the current date and time, and the version number to 1. The modification and printing dates are also deleted.

Save preview image with this document

Saves a thumbnail preview in PNG format inside the document. This image may be used by a file manager under certain conditions.

Preferred resolution for images

Select this option and enter a value in Points Per Inch (ppi) for the preferred image resolution. This is used as default when an image is inserted into a Writer, Impress, or Draw document and resize images according to the value in the list box.

Reset

Resets any changes made to the document and is available for all tabbed pages in the Properties dialog.

Description

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

Title

Enter a title for the document.

Subject

Enter a subject for the document. A subject can be used to group documents with similar contents.

Keywords

Enter the words that required to index the content of the document. Keywords must be separated by commas. A keyword can contain white space characters, or semicolons.

Comments

Enter comments to help identify the document.

Tip

Title, Subject and Keywords are exported to PDF files as PDF Document Properties. Entered values are exported and appear in the corresponding fields in the PDF Document Properties Description.

Custom Properties

Allows custom information fields to be added to a document. In a new document, this page may be blank. If the new document is based on a template, this page may contain custom properties.

Properties

Enter the Name, Type and Value for each custom property required. The custom properties are exported as metadata to other file formats.

Add

Click to add a new row to the custom property list.

Security

Sets the password options for the current document.

Open file read-only

Select to allow this document to be opened in read-only mode only.

Note

This file sharing option protects the document against accidental changes. It is still possible to edit a copy of the document and save that copy with the same name as the original.

Record changes

Select to enable recording changes. This is the same as Edit > Track Changes > Record on the Menu bar.

Tip

To protect the recording state with a password, select Protect and enter a password. Other users of this document can apply changes, but cannot disable change recording without knowing the password.

Protect/Unprotect

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.

Font Embedding

Select this option to embed document fonts into the document file and allow portability between different computer systems. The document with embedded fonts has a larger size and the fonts are used on the target computer for better rendering of the document layout.

Consider embedding fonts when a document use rare, or custom fonts not generally available in other computers.

Note

Font licenses may restrict embedding fonts in documents. Font files contain flags that indicate if and how they can be embedded within a document file. LibreOffice parses these flags and determines if and how it may be embedded in a document file. When opening a document containing embedded fonts, LibreOffice looks at these flags to determine if and how a document can be viewed or edited.

Font scripts to embed

Select which types of fonts are embedded: Latin, Asian, Complex.

Statistics

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

Document classification

Document classification and security is an important issue for businesses and governments. Information is exchanged between users and organizations that collaborate to pursue a business goal. Where sensitive information is involved, it is assumed that the parties have agreed what information is sensitive and how such information is identified and handled. Any recipient of a resource relies upon the provider of the information to follow the agreed procedures identifying the sensitivity of the information.

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

While this standard has been developed with the intent that it would be applicable in any domain of activity, LibreOffice retained the aerospace and defense industry nomenclature and categories, where sensitivity marking results from national security, export control and intellectual property policies.

To enable document classification, go to View > Toolbars > TSCP Classification on the Menu bar to open the TSCP toolbar. This toolbar contains list boxes helping in selection of security for a document. LibreOffice then adds custom fields in the document properties (File > Properties, Custom Properties on the Menu bar) 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.

BAF Categories

The default BAF categories for LibreOffice are listed below.

Intellectual Property

Intellectual property is a generic term for the nature of the contents of the document. Select this category for general purpose document classification.

Tip

Only the Intellectual Properties category modifies the layout of a document with a watermark, fields in the header and footer and an information bar on top of the document area. Each item inserted in the document is controlled by the classification configuration file.

National Security

Selects the category of a document for the national security policy type. The selected category is saved together with the document as BAILS metadata in the file properties and no modifications are carried in the document layout or the user interface.

Export Control

Selects the category of a document for the export control policy type. The selected category is saved together with the document as BAILS metadata in the file properties and no modifications are carried in the document layout or the user interface.

Note

Refer to the corporate data security policy and information security officers for support in document classification.

Default levels of classification

LibreOffice provides default levels of document classification (BAILS) shown below, sorted by increasing level of business sensitivity:

Non-Business

Information in document has no impact in business, if made public.

General Business

Minor impact. Information has impact in business, can generate embarrassments, minor damage in brand image, if made public.

Confidential

Modest impact. Information disclosed can damage business brand, can generate negative media coverage and loss of revenue.

Internal use only

Major damage. Negative national media, lawsuits, fines, long term brand damages.

Customizing classification levels

LibreOffice allows customization of the levels of classification for a business. To customize the number and the name of the levels, copy a file, for example newplan.odt, located in Tools > Options > LibreOffice > Paths > Classification (macOS LibreOffice > Preferences > LibreOffice > Paths > Classification) into a local folder and edit the contents. Save the file and make the required changes to the classification path to access the file.

Pasting contents

Pasting contents in documents with different levels of classification prevents a breach in the security policy, contents with high classification level pasted to documents with lower classification level are not allowed. LibreOffice displays a warning message wherever it detects that the contents of the clipboard have higher security classification than the target document.

User and personal data

Removing data

To make sure that any user or personal data, versions, notes, hidden information, or recorded changes are removed from files before sending them to other users, or create PDF files, is as follows:

1)  Go to Tools > Options > LibreOffice > Security (macOS LibreOffice > Preferences > LibreOffice > Security) on the Menu bar to open the Security page of the Options LibreOffice dialog.

2)  Click Options to open the Security Options and Warnings dialog (Figure 28).

3)  Select the required options to display warnings and/or set security options. See “Security options and warnings” on page 1 for more information.

4)  Click OK to close the Security Options and Warnings dialog.

5)  Go to File > Properties on the Menu bar to open the Properties dialog (Figure 27 above) and click on General to open the General page.

Figure 28: Security Options and Warnings dialog

Figure 28: Security Options and Warnings dialog

6)  Deselect the option Apply user data and click on Reset Properties and the following happens:

7)  Click OK to close the Properties dialog.

8)  Go to File > Versions on the Menu bar, select the versions from the Existing Versions list and click Delete. Alternatively, go to File > Save As on the Menu bar and save the file with a different name.

Security options and warnings

The Security Options and Warnings dialog contains the following options:

When saving or sending

Select to see a warning dialog when saving or sending a document that contains recorded changes, versions, or comments

When printing

Select to see a warning dialog when printing a document that contains recorded changes or comments.

When signing

Select to see a warning dialog when signing a document that contains recorded changes, versions, fields, references to other sources (for example linked sections or linked pictures), or comments.

When creating PDF files

Select to see a warning dialog when you exporting a document to PDF format that displays recorded changes in Writer, or displays comments.

Remove personal information on saving

Select to always remove user data from file properties, comments and tracked changes. The names of authors in comments and changes are replaced by generic values as "Author1", "Author2" and so forth. Time values are reset to a single standard value. If this option is not selected, personal information can still be removed for the current document using Reset Properties on the General page of the Properties dialog.

Recommend password protection on saving

Select to always enable the Save with password option in the file save dialogs. Deselect the option to save files by default without password.

Ctrl-click required to follow hyperlinks

If enabled, hold down the Ctrl key (macOS ⌘) while clicking a hyperlink to open the link. If not enabled, a click opens the hyperlink.

Block any links from documents not among the trusted locations (see Macro Security)

Blocks the use of linked images by documents not in the trusted locations defined in Trusted Sources of the Macro Security dialog. This can increase security if working with documents from untrusted sources (for example the internet) and are worried about vulnerabilities in image processing software components. Blocking the use of links means that images are not loaded in untrusted documents, only a placeholder frame is visible.

Redaction

Documents can be redacted to remove, or hide, any sensitive information allowing selective disclosure of information in a document while keeping other parts of the document secret. When a redacted document is redacted, it is exported as a new PDF file with all the redacted portions removed and replaced by redaction blocks of pixels preventing any attempt to restore or copy the original contents. A redacted document is exported in PDF format for publication, or sharing.

Any documents redacted in LibreOffice Writer, Calc, or Impress are automatically transferred as a copy to LibreOffice Draw where the redaction is carried out.

Redaction tools

The tools available on the Redaction toolbar (Figure 29) are as follows:

Rectangle Redaction

Used to mark the content for redaction by drawing transparent rectangles covering the content. Use the handles to resize the redaction rectangle.

Freeform Redaction

Allows the user to mark the content for redaction by drawing free-form lines, or polygons covering the content.

Redacted Export (Black)

Converts the semi-transparent redaction shape to opaque black and exports as pixels in the PDF file.

Redacted Export (White)

Converts the semi-transparent redaction shapes to opaque white shapes and exports as pixels in the PDF file.

Export Preview PDF

Makes a copy of the presentation as a PDF file to preview the redaction areas before making a redacted PDF file of the presentation.

Figure 29: Redaction toolbar

Figure 29: Redaction toolbar

Documents, spreadsheets, or presentations

A copy of a document, spreadsheet, or presentation is automatically transferred to LibreOffice Draw where the redaction is carried out.

1)  Open the document to be redacted in LibreOffice Writer, Calc or Impress, then go to Tools > Redact on the Menu bar and the following happens:

2)  Go to Tools > Redact on the Menu bar and click on Rectangle Redaction or Freeform Redaction in the Redaction toolbar.

3)  Draw the required shapes to redact the sensitive areas in the document. The redaction shape is gray allowing the sensitive areas in the document to be visible before they are redacted.

4)  If necessary, click on Export Preview PDF to create a preview copy of the PDF file to review the redaction areas before the redaction is finalized.

5)  If necessary, delete the PDF copy after reviewing the redaction areas in the file.

6)  Click on Redacted Export (White), or Redacted Export (Black) in the Redaction toolbar to export the presentation file as a redacted PDF file.

7)  Navigate to the folder in the file browser window that opens where the redact PDF file is going to be saved and enter a name for the file.

8)  Click on Save to create the redacted PDF file. The gray redaction shapes are converted to white, or black shapes and the document is exported as a PDF

Drawings

Open a drawing file in Draw, then use Steps 2) thru 8) in “Documents, spreadsheets, or presentations” on page 1 to create a redacted PDF copy of the drawing file.

Note

When a redacted document is exported as a new PDF file. Any redacted areas are removed from the new document and replaced by redaction blocks of pixels. This prevents any attempt to restore, or copying the original contents that have been redacted.

Automatic redaction

Automatic redaction is used to define words and patterns that are automatically marked for redaction. Automatic redaction is useful for documents that have multiple occurrences of names and other personal information (for example credit cards, phone numbers, and so on). Manually redacting this type information in a document would require significant effort, but automatic redaction makes redaction of a document easier and more efficient.

Figure 30: Automatic Redaction dialog

Figure 30: Automatic Redaction dialog

Figure 31: Add Target dialog

Figure 31: Add Target dialog

Creating targets

Targets are rules and patterns used by automatic redaction to find words and information in a document that are to be marked for automatic redaction.

1)  Open a document and go to Tools > Auto-Redact on the Menu bar to open the Automatic Redaction dialog (Figure 30).

2)  Click on Add Target to open the Add Target dialog (Figure 31).

3)  Enter a target name in the Name text box.

4)  Select a target type from the available options in the Type drop‑down list.

5)  Enter the content in the Content text box.

6)  If necessary, select the options Match case and Whole words only to help define which targets are auto-redacted.

7)  Click OK to close the Add Target dialog and the target is added to the Redaction Targets list in the Automatic Redaction dialog.

8)  Repeat Steps 2 thru 7 above until all targets required have been added to the document.

9)  Click OK to close the Automatic Redaction dialog. This opens the document as a drawing in LibreOffice Draw with all targets automatically redacted using Rectangle Redaction.

10)  Print the document, or export the document as a PDF file.

Exporting targets

1)  Open a document where targets for automatic redaction have been added.

2)  Go to Tools > Auto-Redact on the Menu bar to open the Automatic Redaction dialog.

3)  Select the targets for export in the Redaction Targets list.

4)  Click on Save Targets to open the Save Targets dialog and navigate to the location where the JSON file is going to be saved.

5)  Enter a file name for the JSON file in the File name text box.

6)  Click on Save to save the JSON file and close the Save Targets dialog.

7)  Click OK to close the Automatic Redaction dialog.

Importing targets

1)  Open a document where targets for automatic redaction are going to be used.

2)  Go to Tools > Auto-Redact on the Menu bar to open the Automatic Redaction dialog.

3)  Click on Load Targets to open the Load Targets dialog and navigate to the location of the JSON file.

4)  Select the required file and click on Open to import the targets into the document and close the Load Targets dialog.

5)  Click OK to close the Automatic Redaction dialog. This opens the document as a drawing in LibreOffice Draw with all targets automatically redacted using Rectangle Redaction.

6)  Print the document, or export the document as a PDF file.

Note

The automatic redaction targets are saved in a document. The targets are available after the document is saved and closed.

Password protection and OpenPGP encryption

LibreOffice provides two types of document protection: password protection and OpenPGP encryption.

Figure 32: Save as dialog

Figure 32: Save as dialog

Figure 33: Set Password dialog

Figure 33: Set Password dialog

Password protection

LibreOffice provides two levels of password protection:

The two options above make a document available for reading by one group of people and for reading and editing by a different group. This is compatible with Microsoft Word file protection.

Adding passwords

1)  Go to File > Save As on the Menu bar to open the Save as dialog (Figure 32).

2)  Navigate to the folder where the file is going to be saved.

3)  If necessary, enter a file name in the File name text box and select the file type from the available options in the File type drop‑down list.

4)  Select the Save with password option, then click on Save to open the Set Password dialog (Figure 33).

5)  In File Encryption Password, enter a password to open the document and then enter the same password as confirmation. Passwords are case sensitive.

6)  Click on Options to open File Sharing Password.

7)  Select Open file read-only to prevent any editing being carried out on the document.

8)  To allow editing of the document, enter a password in Enter password to allow editing and repeat the password as confirmation.

9)  Click OK and the Set Password dialog closes and the file is saved with password protection.

Notes

If the passwords match, the document is saved password protected. If either the passwords do not match, an error message is displayed.

LibreOffice uses a very strong encryption mechanism that makes it almost impossible to recover the contents of a document if the password is lost or forgotten.

Changing passwords

When a document is password protected, the password can be changed while the document is open.

1)  Go to File > Properties > General on the Menu bar to open the Properties dialog.

2)  Click on Change Password to open the Set Password dialog.

3)  Enter a new password to open the file and to allow editing of the document.

4)  Click OK to close the Set Password dialog.

5)  Click OK again to close the Properties dialog.

OpenPGP encryption

LibreOffice can encrypt documents confidentially using OpenPGP. The document is encrypted using a symmetric encryption algorithm, which requires a symmetric key. Each symmetric key is used only once and is also called a session key. The document and its session key are sent to the recipient. The session key must be sent to the recipients so they know how to decrypt the document. To protect the document during transmission, it is encrypted with the public key belonging to the recipient. Only the private key belonging to the recipient can decrypt the session key. For more information on using OpenPGP encryption, go to the LibreOffice Help website.

LibreOffice uses the OpenPGP software installed on a computer. If no OpenPGP software is available, download and install OpenPGP software that is compatible with the computer operating system before using OpenPGP encryption.

A personal pair of cryptography keys must be defined using the OpenPGP software. Refer to the OpenPGP software installed on how to create a pair of keys.

OpenPGP encryption requires the use of the public key belonging to the recipient. This key must be available in the OpenPGP key chain stored in the computer.

The following is an example of how to use OpenPGP encryption on a document:

1)  Set the preferred public key for OpenPGP encryption and digital signature. This preferred key is pre-selected in key selection dialog each time a document is signed or encrypted. This removes the requirement to select the preferred key when frequently signing a document with one specific key.

2)  Go to Tools > Options > LibreOffice > User Data (macOS LibreOffice > Preferences > LibreOffice > User Data) on the Menu bar and select the following options in the Cryptography section:

Note

Keep this option selected to allow decryption of documents that have been encrypted for other people.

3)  Go to File > Save As on the Menu bar to open the Save as dialog.

4)  Navigate to the required location for the file, then enter a file name and file type in the Save as dialog.

5)  Select Encrypt with GPG key option and click on Save to open the Select X.509 Certificate dialog.

6)  Select the public key for the recipient. Multiple keys can be selected.

7)  Click Encrypt to close the dialog and save the file encrypted with the selected public keys.

Contents