Operation Manual

Saving and exporting documents as web pages
The easiest way to create HTML documents in LibreOffice is to start with an existing document.
You can get a good idea of how it will appear as a web page by using View > Web Layout.
However, web layout view does not show you which features will or will not be saved correctly in
HTML format. Refer to “Relative and absolute hyperlinks” on page 328 on what to consider before
creating a web page from a document.
Writer documents
Single web page
To save a document as a single web page (HTML format), go to File > Save As on the menu bar
and specify HTML Document (Writer) as the file type or File > Export and specify XHTML format
as the file type.
Note
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 instead of just Spacebar.
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 325).
3) Type the file name to save the pages under.
4) Specify which style indicates a new page using the Styles drop list at the bottom of the
dialog (for example Heading 1).
5) Click Save to create the multi-page HTML document. The resulting HTML files conforms to
the HTML 4 Transitional.
Calc spreadsheets
Calc can save files as HTML documents by going to File > Save As on the menu bar and select
HTML Document (Calc) format as the file type. This is similar to “Single web page” above.
If the file contains more than one sheet and the web pages are created using the Web Wizard (see
“Exporting web pages using the Web Wizard” on page 332), 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
“Creating hyperlinks” on page 329 for more information on hyperlinks.
Chapter 12 Creating Web Pages | 335